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

## Agent Script

| Command | Description |
|---------|-------------|
| `generate --target <path>` | Generate rainbow table for hash algorithm. |
| `lookup --target <path>` | Look up hashes against rainbow tables. |
| `sort --target <path>` | Sort and optimize rainbow table file. |

## Usage Examples

```bash
# Generate rainbow table for hash algorithm.
node scripts/agent.js generate --target ./sample

# Look up hashes against rainbow tables.
node scripts/agent.js lookup --target ./sample

# Sort and optimize rainbow table file.
node scripts/agent.js sort --target ./sample
```

## Output Format

All commands return JSON with the following structure:

```json
{
  "action": "<command>",
  "result": {
    "action": "<command>",
    "status": "complete",
    "domain": "<domain>",
    "technique": "performing-rainbow-table-attacks"
  }
}
```
