
A comprehensive educational repository demonstrating the evolution of a Windows reverse shell implant, from a simple proof‑of‑concept (v1.0) to a fully‑featured post‑exploitation agent with 150+ commands (v3.5). Includes C2 listeners, detailed technical documentation, and a universal cleaner tool for incident response training.
██▀███ ▓█████ ██▒ █▓ ██████ ██░ ██ ▓█████ ██▓ ██▓
▓██ ▒ ██▒▓█ ▀ ▓██░ █▒ ▒██ ▒ ▓██░ ██▒ ▓█ ▀ ▓██▒ ▓██▒
▓██ ░▄█ ▒▒███ ▓██ █▒░ ░ ▓██▄ ▒██▀▀██░ ▒███ ▒██░ ▒██░
▒██▀▀█▄ ▒▓█ ▄ ▒██ █░░ ▒ ██▒░▓█ ░██ ▒▓█ ▄ ▒██░ ▒██░
░██▓ ▒██▒░▒████▒ ▒▀█░ ▒██████▒▒░▓█▒░██▓ ░▒████▒░██████▒░██████▒
░ ▒▓ ░▒▓░░░ ▒░ ░ ░ ▐░ ▒ ▒▓▒ ▒ ░ ▒ ░░▒░▒ ░░ ▒░ ░░ ▒░▓ ░░ ▒░▓ ░
░▒ ░ ▒░ ░ ░ ░ ░ ░░ ░ ░▒ ░ ░ ▒ ░▒░ ░ ░ ░ ░░ ░ ▒ ░░ ░ ▒ ░
░░ ░ ░ ░░ ░ ░ ░ ░ ░░ ░ ░ ░ ░ ░ ░
░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░
░
RevShell is a comprehensive educational project that demonstrates the evolution of a Windows reverse shell from a simple proof‑of‑concept to a fully‑featured post‑exploitation agent. The project is structured into three major versions, each building upon the previous one with increased capabilities, better stealth, and more advanced techniques.
This repository is intended exclusively for cybersecurity education, authorized penetration testing, and defensive research. All code is provided as‑is for learning purposes.
.
├── v1.0/
│ ├── README.md # User guide for v1.0
│ ├── TECHNICAL.md # Technical deep‑dive for v1.0
│ ├── listener.py # C2 listener (attacker side)
│ └── victim_win.py # Implant (victim side)
│
├── v2.0/
│ ├── README.md # User guide for v2.0
│ ├── TECHNICAL.md # Technical deep‑dive for v2.0
│ ├── listener.py # Enhanced C2 listener
│ ├── victim_win.py # Implant with 40+ commands
│ └── victim_win_ADMIN.py # Same as above + auto‑elevation
│
└── v3.5/
├── README.md # User guide for v3.5 (in progress)
├── TECHNICAL.md # Technical deep‑dive for v3.5 (in progress)
├── listener.py # Advanced listener (RC4 encryption)
├── victim_win.py # Full implant with 150+ commands
└── victim_win_ADMIN.py # Full implant + admin capabilities
This project is designed for:
This software is provided for educational and research purposes only.
Using this software to access, monitor, or control any computer system, network, or device without explicit, written permission from the owner is a violation of:
Penalties may include:
You may only use this software in the following scenarios:
THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
By downloading, copying, installing, or using this software, you agree that you are solely responsible for your actions. The authors and contributors assume zero liability for any misuse, damage, or legal consequences resulting from the use of this software.
If you are unsure whether your intended use is legal, consult a qualified attorney before proceeding.
The techniques demonstrated in this project (reverse shells, persistence, credential harvesting, privilege escalation) are common knowledge in the cybersecurity field and are documented here to:
Understanding how attacks work is essential for building effective defenses. This project contributes to that goal by providing transparent, well‑commented code that can be studied and analyzed.
steal command, registry persistence.v1.0/v2.0/victim_win_ADMIN.py — same features + automatic UAC bypass (requests elevation on startup).v3.5/victim_win_ADMIN.py — full implant with integrated auto‑elevation and 20+ admin‑only commands.Edit the victim script (victim_win.py) and set:
ATTACKER_IP = "your.ip.here"
2. Start the Listener (Attacker Machine)
python listener.py
3. Deploy the Victim Script (Target Machine)
python victim_win.py
Once connected, you will have a shell> prompt where you can type commands. Type help to see available commands for that version.
My idea is to create a final v4.0 with the following changes and improvements:
Multihandler C2 Listener
A redesigned listener capable of managing multiple simultaneous sessions. New built‑in commands (:sessions, :interact, :broadcast, :kill, :back) will allow operators to switch between victims and send commands to all active implants at once.
DLL Payload Generation
Compilation of the Python agent into a native Windows DLL using Nuitka, enabling reflective injection into legitimate processes (explorer.exe, svchost.exe). This eliminates the visible python.exe process and significantly improves stealth.
Complete Resolution of Known Limitations
All v3.5 limitations will be addressed:
steal, download_dir).SeDebugPrivilege acquisition.These enhancements will transform RevShell into a professional‑grade educational C2 framework suitable for advanced red‑team simulations and defender training.
OWASP Reverse Shell Cheat Sheet
MITRE ATT&CK — Command and Control
Windows Internals — Persistence Mechanisms
Python Socket Programming
This project is licensed under the
Apache License 2.0.
You may obtain a copy of the license at:
https://www.apache.org/licenses/LICENSE-2.0
Copyright (c) 2026 Dragon56YT
This software is free to use, modify, and distribute under the terms of the Apache 2.0 License.
You may:
Provided that you:
This software is provided “as is”, without warranties or conditions of any kind, express or implied.
The author is not responsible for any damages, misuse, or consequences arising from the use of this software.
This project is intended for security research and educational purposes only.
Users are solely responsible for ensuring compliance with applicable laws and regulations in their jurisdiction.
Unauthorized access to computer systems, data, or networks without explicit permission is illegal.
This tool should only be used in:
Any unauthorized use is strictly prohibited.
| Feature | v1.0 | v2.0 | v3.5 |
|---|
| Encryption | XOR (single byte) | XOR (single byte) | RC4 + nonce + SHA‑256 |
| Persistence | Registry only | Registry + Task + Startup | Registry + Task + Startup + WMI + SYSTEM |
| Commands | 8 | 40+ | 150+ |
| File Transfer | ✅ | ✅ | ✅ + directory download |
| Keylogger | ❌ | ✅ | ✅ |
| Screenshot | ❌ | ✅ | ✅ + screen recording |
| Browser Stealer | ❌ | ✅ | ✅ |
| WiFi Passwords | ❌ | ✅ | ✅ |
| Privilege Escalation Checks | ❌ | ✅ | ✅ |
| Admin Commands | ❌ | disable_defender, dump_hashes | +20 admin commands (RDP, UAC, firewall, BSOD, etc.) |
| Anti‑VM / Sandbox | ❌ | ❌ | ✅ |
| Decoy GUI | ❌ | ❌ | ✅ |
| Beacon Jitter | ❌ | ❌ | ✅ |
| Port Forwarding | ❌ | ❌ | ✅ |
| Self‑Destruction | ❌ | ❌ | ✅ (autodestroy) |
| Auto‑Elevation (Admin) | ❌ | ❌ (separate version) | ✅ (integrated) |
winmm.dll without PowerShell.autodestroy that thoroughly wipes event logs and forensic traces.Removal of Anti‑VM / Sandbox Checks
While the anti‑VM routines in v3.5 served as an excellent learning exercise, they have proven problematic in practice. They can generate false VM detections on legitimate hardware, trigger antivirus heuristics with high reliability, and are unnecessary in controlled educational environments where the tool is intended to be used. All VM detection logic will be stripped out in v4.0, making the implant leaner, more compatible, and less prone to signature‑based detection.
Cross‑Platform Linux Agent
Once the Windows version is finalized, a dedicated Linux implant will be developed with feature parity: encrypted C2, persistence via cron/systemd, system enumeration, and native collection of SSH keys, bash history, and cloud credentials.