Reverse Shell Cheat Sheet

A reverse shell is a shell session established on a connection that is initiated from a remote machine a reverse shell is a type of shell in which the target machine communicates back to the attacking machine. The attacking machine has a listener port on which it receives the connection, which by using, code or command execution is achieved

Reverse Shell Content Replace

ip-address = Attacker ip address
port = Attacker port

Bash Reverse Shell

PHP Reverse Shell

Python Reverse Shell

Socat Reverse Shell

Attacker Payload Listener
Client Side

Perl Reverse Shell

Perl Windows Reverse Shell

Ruby Reverse Shell

Netcat Reverse Shell

Ncat Reverse Shell

Java Reverse Shell

Power-Shell Reverse Shell

xTerm Reverse Shell

AWK Reverse Shell

Reference : Reverse-shell-cheatsheet
Privilege Escalation link