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

## Agent Script

| Command | Description |
|---------|-------------|
| `setup --target <path>` | Configure DNS C2 infrastructure. |
| `tunnel --target <path>` | Establish DNS tunnel channel. |
| `test --target <path>` | Test DNS C2 channel connectivity. |

## Usage Examples

```bash
# Configure DNS C2 infrastructure.
node scripts/agent.js setup --target ./sample

# Establish DNS tunnel channel.
node scripts/agent.js tunnel --target ./sample

# Test DNS C2 channel connectivity.
node scripts/agent.js test --target ./sample
```

## Output Format

All commands return JSON with the following structure:

```json
{
  "action": "<command>",
  "result": {
    "action": "<command>",
    "status": "complete",
    "domain": "<domain>",
    "technique": "implementing-dns-c2-channels"
  }
}
```
