mirror of
https://github.com/mukul975/Anthropic-Cybersecurity-Skills.git
synced 2026-07-17 05:05:16 +03:00
c21af3347e
- Add scripts/agent.py and references/api-reference.md to all remaining skills - Update all 648 LICENSE files: copyright now reads 'Mahipal' - Add implementing-security-monitoring-with-datadog (new skill with full anatomy) - All 649 skills now have: SKILL.md, LICENSE, scripts/agent.py, references/api-reference.md
82 lines
1.8 KiB
Markdown
82 lines
1.8 KiB
Markdown
# API Reference: Red Team C2 Infrastructure with Havoc
|
|
|
|
> For authorized penetration testing and lab environments only.
|
|
|
|
## Havoc Teamserver API
|
|
```
|
|
Base URL: https://{teamserver}:{port}/api/
|
|
Authorization: Bearer {token}
|
|
```
|
|
|
|
## Listener Endpoints
|
|
| Method | Endpoint | Description |
|
|
|--------|----------|-------------|
|
|
| GET | `/api/listeners` | List active listeners |
|
|
| POST | `/api/listeners` | Create new listener |
|
|
| DELETE | `/api/listeners/{name}` | Remove listener |
|
|
|
|
## Agent (Demon) Endpoints
|
|
| Method | Endpoint | Description |
|
|
|--------|----------|-------------|
|
|
| GET | `/api/agents` | List connected agents |
|
|
| POST | `/api/agents/{id}/command` | Task agent |
|
|
| GET | `/api/agents/{id}/output` | Get task output |
|
|
|
|
## HTTPS Listener Config
|
|
```json
|
|
{
|
|
"name": "https-c2",
|
|
"protocol": "Https",
|
|
"host": "0.0.0.0",
|
|
"port": 443,
|
|
"hosts": ["c2.example.com"],
|
|
"secure": true,
|
|
"user_agent": "Mozilla/5.0 ..."
|
|
}
|
|
```
|
|
|
|
## SMB Listener Config
|
|
```json
|
|
{
|
|
"name": "smb-pivot",
|
|
"protocol": "Smb",
|
|
"pipe_name": "\\\\.\\pipe\\mojo_ipc"
|
|
}
|
|
```
|
|
|
|
## Payload Generation
|
|
```json
|
|
POST /api/payloads/generate
|
|
{
|
|
"listener": "https-c2",
|
|
"arch": "x64",
|
|
"format": "exe",
|
|
"config": {
|
|
"sleep": 5,
|
|
"jitter": 20,
|
|
"indirect_syscalls": true,
|
|
"sleep_technique": "WaitForSingleObjectEx"
|
|
}
|
|
}
|
|
```
|
|
|
|
## Payload Formats
|
|
| Format | Description |
|
|
|--------|-------------|
|
|
| `exe` | Windows PE executable |
|
|
| `dll` | DLL side-loading |
|
|
| `shellcode` | Raw shellcode |
|
|
| `service_exe` | Windows service binary |
|
|
|
|
## Agent Properties
|
|
| Field | Description |
|
|
|-------|-------------|
|
|
| `agent_id` | Unique identifier |
|
|
| `hostname` | Target hostname |
|
|
| `username` | Running user context |
|
|
| `os` | Operating system |
|
|
| `process_name` | Host process |
|
|
| `pid` | Process ID |
|
|
| `sleep` | Callback interval (seconds) |
|
|
| `last_callback` | Last check-in time |
|