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

## Agent Script

| Command | Description |
|---------|-------------|
| `configure --target <path>` | Configure C2 redirector server. |
| `rules --target <path>` | Generate redirector rules from C2 profile. |
| `test --target <path>` | Test redirector forwarding and filtering. |

## Usage Examples

```bash
# Configure C2 redirector server.
node scripts/agent.js configure --target ./sample

# Generate redirector rules from C2 profile.
node scripts/agent.js rules --target ./sample

# Test redirector forwarding and filtering.
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-c2-redirectors"
  }
}
```
