How bryanmax9/backdoor-malware-in-c-language works
This repository contains educational examples of a TCP command-and-control server and a Windows target agent. The principal workflow is an operator entering commands at the server, which sends them to the agent; the agent executes supported actions and returns responses. Separate agent capabilities include registry-based persistence and a keyboard-capture thread that writes a local log. The README describes an AWS/Kali analysis environment, but the source excerpts do not show deployment wiring or any transfer of the key log to the server.
Main entry points: servidor.c TCP control server · backdoor.c Command execution · keylogger.h Keyboard capture
Components 9
Command control
- TCP control server
servidor.c
Target agent
- Windows agent
backdoor.c - Command execution
backdoor.c - Registry persistence
backdoor.c
Key capture
- Keyboard capture
keylogger.h
Other components
- Operator
- Windows Run registry
- Local key log
- AWS EC2 environment
Connections 10
- Operator → TCP control server: enters commands
servidor.c - TCP control server → Windows agent: sends commands
servidor.c - Windows agent → TCP control server: connects by TCP
backdoor.c - Windows agent → Command execution: dispatches commands
backdoor.c - Command execution → TCP control server: sends responses
backdoor.c - Command execution → Registry persistence: calls on request
backdoor.c - Registry persistence → Windows Run registry: writes startup entry
backdoor.c - Command execution → Keyboard capture: starts thread
backdoor.c - Keyboard capture → Local key log: appends keystrokes
keylogger.h - AWS EC2 environment → TCP control server: hosts analysis server
README.md