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

## Agent Script

| Command | Description |
|---------|-------------|
| `capture --target <path>` | Capture and analyze network protocol traffic. |
| `dissect --target <path>` | Dissect captured protocol messages. |
| `model --target <path>` | Build protocol state machine model. |

## Usage Examples

```bash
# Capture and analyze network protocol traffic.
node scripts/agent.js capture --target ./sample

# Dissect captured protocol messages.
node scripts/agent.js dissect --target ./sample

# Build protocol state machine model.
node scripts/agent.js model --target ./sample
```

## Output Format

All commands return JSON with the following structure:

```json
{
  "action": "<command>",
  "result": {
    "action": "<command>",
    "status": "complete",
    "domain": "<domain>",
    "technique": "reverse-engineering-network-protocols"
  }
}
```
