Skip to content

hacksonabus/c2_system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimal Server/Agent (Command + Control) with some data persistance

Components

  • server.py - Flask + SQLite server to manage agents and commands.
  • agent.py - Python agent that polls the server and executes commands.
  • agent.go - Golang agent that polls the server and executes commands.

Setup

Server

pip install flask requests
python3 server.py

Python Agent

python3 agent.py

Golang Agent

go mod init agent
go get github.com/google/uuid
go build -o agent agent.go
./agent

Send commands:

curl -X POST http://localhost:5000/send_command      -H "Content-Type: application/json"      -d '{"agent_id": "<agent-id>", "command": "ping"}'

List agents:

curl http://localhost:5000/list_agents

Note

This is far from being a complete/useful implementation. There is NO security in place.

About

Minimal C2 System - Server and Agent - Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors