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

## Agent Script

| Command | Description |
|---------|-------------|
| `setup --target <path>` | Initialize and configure Sliver C2 server. |
| `generate --target <path>` | Generate Sliver implant binary. |
| `listener --target <path>` | Configure and start Sliver listener. |

## Usage Examples

```bash
# Initialize and configure Sliver C2 server.
node scripts/agent.js setup --target ./sample

# Generate Sliver implant binary.
node scripts/agent.js generate --target ./sample

# Configure and start Sliver listener.
node scripts/agent.js listener --target ./sample
```

## Output Format

All commands return JSON with the following structure:

```json
{
  "action": "<command>",
  "result": {
    "action": "<command>",
    "status": "complete",
    "domain": "<domain>",
    "technique": "configuring-sliver-c2"
  }
}
```
