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.
Server
pip install flask requests
python3 server.pyPython Agent
python3 agent.pyGolang Agent
go mod init agent
go get github.com/google/uuid
go build -o agent agent.go
./agentSend 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_agentsThis is far from being a complete/useful implementation. There is NO security in place.