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

## Agent Script

| Command | Description |
|---------|-------------|
| `emulate --target <path>` | Emulate shellcode and trace execution. |
| `decode --target <path>` | Decode encoded shellcode payload. |
| `extract_config --target <path>` | Extract C2 configuration from shellcode. |

## Usage Examples

```bash
# Emulate shellcode and trace execution.
node scripts/agent.js emulate --target ./sample

# Decode encoded shellcode payload.
node scripts/agent.js decode --target ./sample

# Extract C2 configuration from shellcode.
node scripts/agent.js extract_config --target ./sample
```

## Output Format

All commands return JSON with the following structure:

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