xutil.dev
Login

Reverse Shell Cheatsheet

Reverse shell cheatsheet for security testing. Covers Bash, Python, PHP, Perl, Ruby, PowerShell, Netcat, Socat, and more with listener setup and shell upgrade techniques

Related Categories:Security

⚠️ This cheatsheet is for authorized security testing, CTF competitions, and educational purposes only. Unauthorized access to computer systems is illegal.

46 commands

Bash TCP

Bash TCP reverse shell

Bash UDP

Bash UDP reverse shell

Bash exec

Bash exec reverse shell

Bash fifo

Named pipe reverse shell

Bash -c

bash -c wrapper

Python3 socket

Python3 socket reverse shell

Python3 PTY

Python3 PTY reverse shell

Python2 socket

Python2 socket reverse shell

Python3 short

Python3 short version

Python Windows

Python Windows reverse shell

PHP exec

PHP exec reverse shell

PHP proc_open

PHP proc_open reverse shell

PHP shell_exec

PHP shell_exec reverse shell

PHP passthru

PHP passthru reverse shell

Perl socket

Perl socket reverse shell

Perl IO

Perl IO reverse shell

Perl bash exec

Perl bash exec reverse shell

Ruby socket

Ruby socket reverse shell

Ruby fork

Ruby fork reverse shell

Ruby IO.popen

Ruby IO.popen reverse shell

PS TCP client

PowerShell TCP client

PS Base64

Base64 encoded payload

PS download cradle

Download cradle

PS ConPTY

ConPTY shell

nc -e

Netcat -e option

nc without -e

Netcat without -e

ncat SSL

Ncat with SSL

nc Windows

Netcat Windows reverse shell

Socat TCP

Socat TCP reverse shell

Socat TTY

Socat full TTY reverse shell

Socat SSL

Socat SSL reverse shell

Node child_process

Node.js child_process

Node require exec

Node.js require exec

Node ES6

Node.js ES6 version

Java Runtime

Java Runtime exec

Java ProcessBuilder

Java ProcessBuilder

Groovy

Groovy reverse shell

nc listener

Netcat listener

ncat SSL listener

Ncat SSL listener

socat listener

Socat listener

socat SSL listener

Socat SSL listener

Python PTY spawn

Python PTY spawn

Script PTY

Script PTY

Stty raw

Set TTY to raw mode

Export TERM

Set TERM variable

Stty size

Set terminal size