2024-09-07 19:12:14 +00:00
|
|
|
# Python C2 Server
|
|
|
|
An exercise in learning and experimenting with a C2 agent and server.
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
Start the server:
|
|
|
|
```bash
|
2024-09-07 19:23:32 +00:00
|
|
|
docker build -t python-c2 .
|
|
|
|
docker run --rm -p 9999:9999 python-c2
|
2024-09-07 19:12:14 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Make a connection and send JSON payload:
|
|
|
|
```bash
|
|
|
|
echo '{"platform": "windows", "processor": "x86", "memory": 1024, "disk": 2048}' | \
|
|
|
|
nc localhost 9999
|
|
|
|
```
|