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

## Agent Script

| Command | Description |
|---------|-------------|
| `configure --target <path>` | Configure domain fronting through CDN. |
| `test --target <path>` | Test domain fronting connectivity. |
| `detect --target <path>` | Detect domain fronting in network traffic. |

## Usage Examples

```bash
# Configure domain fronting through CDN.
node scripts/agent.js configure --target ./sample

# Test domain fronting connectivity.
node scripts/agent.js test --target ./sample

# Detect domain fronting in network traffic.
node scripts/agent.js detect --target ./sample
```

## Output Format

All commands return JSON with the following structure:

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