Skip to content

Simple script to generate commands to achieve reverse shells.

Notifications You must be signed in to change notification settings

Tib3rius/revshellgen

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 

Repository files navigation

revshellgen

Simple script to generate commands to achieve reverse shells. Thanks to DevoOverkill9 for the great idea!

Screenshot

Usage:

revshellgen.py [-h] [-i IPADDR] [-p PORT] [-t SHELL_TYPE] [-l] [-a]

python revshellgen.py --help

optional arguments:
  -h, --help            show this help message and exit
  -i IPADDR, --ipaddr IPADDR
                        IP address to connect back to
  -p PORT, --port PORT  Port to connect back to
  -t SHELL_TYPE, --type SHELL_TYPE
                        Type of reverse shell to generate
  -l, --list            List available shell types
  -a, --all             Generate all the shells!

Shell Types:
ASP
Bash
Java Server Page
Linux Binary
Lua
Netcat (regular, mknod, & mkfifo variants)
OSX Macho Binary
Perl
PHP
Powershell TCPClient
Powershell IEX
Python
Ruby
Socat (preferred for interactive sessions)
Telnet
War
Windows Binary
Xterm

Recommended Setup Steps:

For ease of use, it's recommended to add revshellgen to your path variable and give it executable permissions.

chmod +x /dir/to/revshellgen.py
export PATH=$PATH:/dir/to/revshellgen

Alternatively, you can integrate it with other Kali tools by performing the following:

chmod +x /dir/to/revshellgen.py
ln -s /dir/to/revshellgen.py /usr/bin/revshellgen

Keep in mind, this isn't ideal for systems with multiple users, and you should use root-privilege symbolic links with discretion. It's imperative that revshellgen.py is restricted from write access by untrusted users with this.

Another Example:

Screenshot

About

Simple script to generate commands to achieve reverse shells.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%