revShell is a powerful and versatile tool for generating various types of reverse shells in multiple programming languages. This tool facilitates the quick and efficient generation of reverse shell commands, providing different methods and options for various situations and environments.
revShell
supports the generation of reverse shells in the following languages and environments:
- PHP: Use different methods such as
exec
,shell_exec
,system
,passthru
,popen
,proc_open
. - PowerShell: Provides multiple variants, including TLS encrypted connections.
- Python: Compatible with versions 2.x and 3.x, using sockets and
pty
. - Ruby: Shells with and without use of
sh
. - socat: With TTY support.
- SQLite3 and netcat: Combined use to create reverse shells.
- node.js: Using the
child_process
module. - Groovy: Uses sockets and
ProcessBuilder
. - telnet: Reverse shell using
telnet
. - zsh: Using
zmodload
andztcp
. - Lua: With
socket
andos
modules. - Golang: Reverse shell using
net
andos/exec
. - Vlang: Using
os.system
. - Awk: Using inet sockets.
- Dart: Using
dart:io
anddart:convert
. - Crystal: Using
process
andsocket
.
To install and configure revShell
, follow the steps below:
git clone https://github.com/D1se0/revShell.git
cd revShell
The requirements.sh script will install all the necessary dependencies and configure the tool so that it can be used from anywhere in the terminal.
sudo ./requirements.sh
After running the requirements script, verify that the tool is installed correctly:
revShell -h
or from the .py
script
python3 revShell.py -h
revShell
is extremely easy to use. Below are some examples of how to generate different types of reverse shells.
python3 revShell.py -i <HOST_IP> -p <PORT> -t <FORMAT>
Generate a Reverse Shell in bash:
python3 revShell.py -i 10.10.11.11 -p 7777 -t 'bash -i'
Generate a Reverse Shell in PHP:
python3 revShell.py -i 10.10.11.11 -p 7777 -t 'PHP proc_open'
Generate a Reverse Shell in PowerShell:
python3 revShell.py -i 10.10.11.11 -p 7777 -t 'PowerShell #1'
Generate a Reverse Shell in Python:
python3 revShell.py -i 10.10.11.11 -p 7777 -t 'Python #1'
Generate a Reverse Shell in Ruby:
python3 revShell.py -i 10.10.11.11 -p 7777 -t 'Ruby #1'
Other options:
revShell
supports many more options and languages. To see all available options:
python3 revShell.py -fh
Contributions are welcome. Please submit a pull request or open an issue to discuss the changes you would like to make.
This project is licensed under the terms of the MIT License.