Lightweight Command & Control (C2) setup with a Flask server and Windows & linux Go agent for educational and penetration testing purposes.
Warning: Use only on systems you own or have explicit permission to test.
- Register multiple clients with unique IDs
- Send commands to specific or all clients
- Receive and display command output in real-time
- Automatic cleanup of disconnected clients
- Windows client runs commands via
cmd.exewith timeout
- Server: Python 3.8+, Flask
- Client: Windows, Go 1.18+
git clone https://github.com/Pwn3rx0/simple-c2.git
cd simple-c2
pip install Flask
python c2.pyAccess the web interface: http://0.0.0.0:8080
go build -o client.exe windows.go
Set SERVER_BASE in your Agent to your server URL.
- Start the server (i used deepnote as public server after enable Incoming connections port 8080).
- Run the client on target machine(s).
- Send commands via the web interface.
- View live outputs; use exit or quit to stop the client.
-
Improving UI, security, or client features
-
Submit pull requests responsibly