mirror of
https://github.com/mukul975/Anthropic-Cybersecurity-Skills.git
synced 2026-06-13 06:34:57 +03:00
c21af3347e
- Add scripts/agent.py and references/api-reference.md to all remaining skills - Update all 648 LICENSE files: copyright now reads 'Mahipal' - Add implementing-security-monitoring-with-datadog (new skill with full anatomy) - All 649 skills now have: SKILL.md, LICENSE, scripts/agent.py, references/api-reference.md
53 lines
1.6 KiB
Markdown
53 lines
1.6 KiB
Markdown
# API Reference: Sliver C2 Framework
|
|
|
|
## Sliver CLI Commands
|
|
| Command | Description |
|
|
|---------|-------------|
|
|
| `generate --mtls host:port` | Generate session implant |
|
|
| `generate beacon --mtls host:port` | Generate beacon implant |
|
|
| `mtls --lhost IP --lport PORT` | Start mTLS listener |
|
|
| `https --lhost IP --lport PORT` | Start HTTPS listener |
|
|
| `dns --domains domain.com` | Start DNS listener |
|
|
| `sessions` | List active sessions |
|
|
| `beacons` | List active beacons |
|
|
| `use SESSION_ID` | Interact with session |
|
|
|
|
## Generate Options
|
|
| Flag | Description |
|
|
|------|-------------|
|
|
| `--name` | Implant name |
|
|
| `--os` | Target OS (windows/linux/darwin) |
|
|
| `--arch` | Architecture (amd64/386/arm64) |
|
|
| `--format` | exe/shellcode/shared-lib |
|
|
| `--seconds` | Beacon callback interval |
|
|
| `--jitter` | Beacon jitter percentage |
|
|
| `--mtls` | mTLS C2 endpoint |
|
|
| `--https` | HTTPS C2 endpoint |
|
|
| `--dns` | DNS C2 domain |
|
|
|
|
## Listener Types
|
|
| Type | Port | Use Case |
|
|
|------|------|----------|
|
|
| mTLS | 8888 | Encrypted, reliable |
|
|
| HTTPS | 443 | Blends with web traffic |
|
|
| DNS | 53 | Bypasses network filters |
|
|
| WireGuard | 51820 | VPN-based C2 |
|
|
|
|
## Post-Exploitation
|
|
```
|
|
execute-assembly # .NET assembly in memory
|
|
sideload # DLL sideloading
|
|
shell # Interactive shell
|
|
upload/download # File transfer
|
|
portfwd # Port forwarding
|
|
socks5 # SOCKS5 proxy
|
|
```
|
|
|
|
## Sliver gRPC API (Protobuf)
|
|
```python
|
|
import grpc
|
|
from sliverpb import client_pb2_grpc
|
|
channel = grpc.secure_channel("localhost:31337", credentials)
|
|
stub = client_pb2_grpc.SliverRPCStub(channel)
|
|
```
|