Skip to content

Pwn3rx0/simple-c2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SIMPLE C2

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.


Features

  • 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.exe with timeout

Requirements

  • Server: Python 3.8+, Flask
  • Client: Windows, Go 1.18+

Setup

Server:

git clone https://github.com/Pwn3rx0/simple-c2.git
cd simple-c2
pip install Flask
python c2.py

Access the web interface: http://0.0.0.0:8080

Agent:

go build -o client.exe windows.go

Set SERVER_BASE in your Agent to your server URL.

Usage

  • 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.

Contributing

  • Improving UI, security, or client features

  • Submit pull requests responsibly

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published