2019-10-30 18:06:12 +07:00
|
|
|
## [`obfu.py`](https://github.com/0xinfection/awesome-waf/blob/master/others/obfu.py)
|
2019-03-29 12:49:02 +07:00
|
|
|
> A small script to encode and obfuscate your payloads easily to your desired encodings.
|
|
|
|
|
|
|
|
### Usage:
|
|
|
|
```
|
|
|
|
$ python obfu.py -h
|
|
|
|
|
2019-03-29 13:35:31 +07:00
|
|
|
OBFUSCATOR
|
2019-03-29 12:49:02 +07:00
|
|
|
|
|
|
|
usage: python3 obfu.py [-h] [-s STR] [-e ENC] [-ueo] [-udi]
|
|
|
|
|
|
|
|
Required Arguments:
|
|
|
|
-s STR, --str STR String to obfuscate
|
|
|
|
-e ENC, --enc ENC Encoding type. eg: ibm037, utf16, etc
|
|
|
|
|
|
|
|
Optional Arguments:
|
|
|
|
-ueo URL Encode Output
|
|
|
|
-udi URL Decode Input
|
|
|
|
```
|
|
|
|
### Example Usage:
|
|
|
|
```
|
2019-04-29 11:11:28 +07:00
|
|
|
$ python3 obfu.py -s 'param=<svg/onload=prompt()//' -e ibm037 -ueo
|
2019-03-29 12:49:02 +07:00
|
|
|
```
|
|
|
|
```
|
|
|
|
OBFUSCATOR
|
|
|
|
|
|
|
|
Input: param=<svg/onload=prompt()//
|
|
|
|
Output: %97%81%99%81%94~L%A2%A5%87a%96%95%93%96%81%84~%97%99%96%94%97%A3M%5Daa
|
|
|
|
```
|
|
|
|
|
|
|
|
### Sidenote:
|
2019-04-29 11:11:28 +07:00
|
|
|
This script can encode in all types of formats which are supported by the Python Engine.
|