<!-- Copyright (c) 2026 defconxt. All rights reserved. -->
<!-- Licensed under AGPL-3.0 — see LICENSE file for details. -->
<!-- NERF is a trademark of defconxt. -->
# configuring-mythic-c2 — API Reference

## Agent Script

| Command | Description |
|---------|-------------|
| `deploy --target <path>` | Deploy Mythic C2 server with Docker. |
| `agent --target <path>` | Install and configure Mythic agent. |
| `payload --target <path>` | Generate Mythic payload for deployment. |

## Usage Examples

```bash
# Deploy Mythic C2 server with Docker.
node scripts/agent.js deploy --target ./sample

# Install and configure Mythic agent.
node scripts/agent.js agent --target ./sample

# Generate Mythic payload for deployment.
node scripts/agent.js payload --target ./sample
```

## Output Format

All commands return JSON with the following structure:

```json
{
  "action": "<command>",
  "result": {
    "action": "<command>",
    "status": "complete",
    "domain": "<domain>",
    "technique": "configuring-mythic-c2"
  }
}
```
