Full custom backdoor development project implementing a Python-based reverse shell with a dedicated C2 listener on Kali Linux. The backdoor establishes outbound TCP connections, executes system commands remotely, navigates the filesystem, and exfiltrates files — while the listener provides an interactive command interface with reliable communication, connection resilience, and activity logging.
Client-server reverse shell model with reliable chunked transmission protocol over TCP.
The full implementation spans ~850 lines across two Python scripts. Below are architectural excerpts illustrating the design patterns used — not the complete source, but the key decision points that define the system's behavior.
The following snippets show architecture-level excerpts from the implementation. Variable names, error handling branches, and helper utilities have been condensed to illustrate the core logic flow.
The complete source includes additional utilities: packet builder, parser, retransmission logic, logging formatter, and the listener's threading controller (~850 lines total across both scripts).
Simulated operator session showing the backdoor interaction flow from the C2 listener perspective.
This is a simulated session demonstrating the real command flow. All commands and outputs mirror actual test results.
Multi-threaded listener with interactive shell, logging, and connection resilience.
Each incoming connection is handled in a dedicated daemon thread, allowing simultaneous control of multiple targets from a single listener instance.
All operator commands, timestamps, and target responses are recorded to a log file for post-operation review, reporting, and evidence collection.
Automatic cleanup on disconnect with thread reaping. The listener remains available for reconnection without restart. Chunked ACK ensures data integrity.
Quantitative and qualitative results from the controlled test environment.
ipconfig, whoami,
systeminfo, netstat,
tasklist, dir,
cd, pwd,
type, read. All returned output correctly.
.txt (1 KB), .docx (245 KB),
.png (1.2 MB). Large files chunked (1024B) and reassembled with
ACK verification. Binary integrity verified via SHA256 hash.
Offensive techniques mapped to the MITRE ATT&CK Enterprise framework.
T1059 — Command and Scripting Interpreter
T1106 — Native API
T1547 — Boot or Logon Autostart
T1053 — Scheduled Task
T1055 — Process Injection
T1562 — Impair Defenses
T1071 — Application Layer Protocol
T1573 — Encrypted Channel
Generate a printable executive summary of this backdoor deployment and C2 operations assessment.
Full source code available in the project repository.