National Cyber Warfare Foundation (NCWF)login

Inside OffensiveReverseShellCheatSheet: how a curated payload reference organizes red team tradecraft


0 user ratings
2026-10-29 21:33:07
milo
Red Team (CNA)
"Inside

A heavily starred cheat sheet that catalogs reverse shell one-liners across Bash, Netcat, PowerShell, Python and msfvenom for authorized red team operations and controlled lab practice.








Toold4t4s3c/OffensiveReverseShellCheatSheet — curated reference of reverse shell payloads and webshell techniques across many languages
CategoryOffensive security cheat sheet / payload reference
Primary UseQuick lookup of reverse shell variants during authorized penetration tests, OSCP practice labs, and CTF exercises
Safe UseThe README states explicitly that all content is for educational purposes and authorized security testing in controlled environments only, real or CTF; use solely against systems you own or are contractually authorized to test
Telemetry NoteEvery technique cataloged here produces loud, detectable events: outbound TCP/UDP sessions on unusual ports, nc/bash -i process artifacts, FIFO files in /tmp, webserver log entries, and encoded base64 command blobs — prime hunting ground for EDR and egress monitoring

d4t4s3c/OffensiveReverseShellCheatSheet is one of those repositories that has quietly become a fixture in the working toolkit of practitioners preparing for exams like the OSCP or running engagements inside scoped lab environments. With roughly 547 stars, a GPL-3.0 license, and PowerShell flagged as its primary language, the repo is not really a tool in the executable sense — it is a meticulously organized reference document, a cheat sheet whose value lies in taxonomy and completeness rather than automation. The author frames it squarely for Red Team Operations, Penetration Testing, and Security Research, and the README opens with a warning block restricting all content to educational purposes and authorized testing in controlled environments, whether real or CTF-style.


What immediately stands out from the table of contents is the breadth of interpreter coverage. The sheet spans Bash, Netcat, cURL, Wget, Node-RED, Perl, Python, Python3, PHP, Ruby, Xterm, Ncat, Socat, PowerShell, Awk, Gawk, Golang, Telnet, Java, Node, and finally Msfvenom with its generated payload families. That coverage matters operationally because the perennial problem during an authorized engagement is not knowing that a reverse shell exists — it is finding the one variant that fits the constraints of a compromised context: an embedded system with only busybox, a hardened host without nc -e support, or a Windows box where only PowerShell is realistic.


The Bash section illustrates that philosophy well. The README groups variants by mechanism rather than by verbosity: the classic /dev/tcp redirect technique using file descriptor manipulation, a numbered-descriptor variant using file descriptor 196, a read line loop pattern, and a shorter descriptor-5 form. It also documents both TCP and UDP transports via /dev/tcp and /dev/udp, plus URL-encoded forms — basic and full — for contexts where the payload has to survive transit through a web parameter. For a defender reading the same document, this is a compact catalog of what Bash-only foothold traffic looks like from the process-arguments perspective.


The Netcat material is equally structured around environmental constraints. There are the straightforward -e and -c execution variants for Linux targets, an explicit NO -e -c fallback section, a BusyBox subsection for stripped-down embedded environments (including whitespace-evasion forms using ${IFS} and + separators), and the classic FIFO-pipe pattern that stages a named pipe under /tmp to relay a shell without execution flags. The sheet also shows base64-wrapped delivery variants, where the one-liner is encoded on the operator side and decoded on the target — a good reminder to blue teams that base64 -d piped into a shell is itself a high-signal detection pattern regardless of the payload behind it.


Beyond classic shells, the repository dedicates substantial space to webshells and post-exploitation pivots. The table of contents enumerates an Exif Data webshell concept, ASP and PHP webshells split by GET/POST parameter handling, an extensive Log Poisoning family covering SSH, FTP, HTTP, and RSYNC log vectors, and a Server Side Template Injection (SSTI) section. There are also named-vulnerability and platform-specific sections — Shellshock (with SSH and HTTP variants), UnrealIRCd, and CMS-oriented entries for WordPress, October, and Jenkins on both Windows and Linux. From a documentary standpoint, the structure reads like a field manual organized by the delivery surface rather than by language alone.


The Msfvenom section is the most module-like part of the sheet. It is divided into Web Payloads (PHP, WAR for Tomcat, JAR, JSP, ASPX), Linux Payloads, and Windows Payloads, each with matching listener guidance using either plain Netcat or a Metasploit Multi Handler. This pairing of payload generation with the corresponding catch infrastructure is pedagogically useful: it teaches the full request-response shape of a handler session, which is exactly the mental model a junior operator needs before touching a lab range, and exactly the traffic pattern a SOC analyst needs to recognize in NetFlow and listener telemetry.


There are also shorter but interesting sections that reveal the author's attention to odd delivery channels. cURL and Wget entries describe fetching staged commands over a temporary python3 -m http.server listener, the Node-RED section documents an importable flow JSON that wires a tcp in node through an exec node back out via tcp out — a genuine IoT-automation abuse case — and Xterm and Telnet cover legacy-but-still-encountered environments. These are the kind of long-tail variants that rarely appear in shorter cheat sheets and justify the repository's popularity.


It is worth pausing on what this repository is not. Nothing here is novel research, zero-day material, or commodity malware; every technique is well-documented public knowledge that appears in training curricula, certification exams, and defensive detection literature. The value is curation — having the constrained-environment variant, the encoding variant, and the platform-specific variant indexed side by side. That also makes it a legitimate reference for defenders: building detection rules for the artifact families described here (FIFO files, descriptor redirects, busybox invocations, log-file writes followed by inclusion attempts) is squarely defensive work.


From a telemetry perspective, virtually everything in the sheet is noisy by design. Reverse shells require outbound connections, so egress on odd ports, long-lived interactive TCP sessions from servers that should never initiate them, nc or bash -i in process command lines, unexpected files under /tmp, and encoded command blobs in web logs are all observable consequences. The Log Poisoning family in particular presupposes writable log files being later included by the webserver — an action that generates distinctive request patterns worth alerting on in any hardened environment.


For acquisition, the repository is a simple clone away for offline study in a lab: git clone https://github.com/d4t4s3c/OffensiveReverseShellCheatSheet. There is no installation, no dependencies, and no build step — the entire artifact is a README.md on the master branch, which means it can be dropped into any note-taking system or rendered locally. Active commit-activity and contributor badges in the README suggest the sheet is maintained rather than abandoned, which matters for a reference of this kind since interpreter behaviors and encoding quirks drift over time.


In the ecosystem, this sits alongside references like pentestmonkey's classic one-liner list and PayloadsAllTheThings, but with a tighter scope and denser variant coverage per technique. For authorized professionals, its best use is pre-engagement study and mid-engagement lookup in scoped environments; for defenders and detection engineers, it doubles as a free curriculum of the outbound-connection patterns that cheap, tooling-light attackers actually produce. Used strictly within the authorization boundaries its own README mandates, it is a solid addition to a professional's reference shelf.



Official project repository for d4t4s3c/OffensiveReverseShellCheatSheet.

Download Tool

Educational analysis for authorized security professionals. Use only in controlled, authorized environments.






Source: OffensiveSec
Source Link: https://www.offsecblog.com/2026/10/inside-offensivereverseshellcheatsheet.html


Comments
new comment
Nobody has commented yet. Will you be the first?
 
Forum
Red Team (CNA)



Copyright 2012 through 2026 - National Cyber Warfare Foundation - All rights reserved worldwide.