repositories

NixDaemon

NixOS pentest workstation as one flake — IceBreaker's successor

clonegit clone https://git.daemon-sec.xyz/NixDaemon.git
htb.mdMarkdown72 lines5.2 KiBsource raw download

htb — lab lifecycle from the Mac#

The entry cheat for the whole rig: a Kali Docker container (htb-kali) you drive from macOS, because Docker Desktop can't hand a host VPN tunnel to a container — so the VPN, the tools, and the raw sockets all live inside the box. Set a target, bring the container up, connect the VPN, work. Next stops: cheat recon, cheat web, cheat nxc, cheat ad.

Aim — who you're hitting#

t seeds $TARGET/$RHOST; nearly every scanner and enum wrapper defaults to it, so set it once.

Boot the lab#

htb-up is the everyday verb — create / start / re-attach in one command, then it drops you into a shell in the container. Prefers docker compose, falls back to raw docker run.

Connect the VPN (inside the container)#

Drop your HTB .ovpn into ~/htb/vpn/ (mounted at /root/vpn); a bare call grabs the first one it finds.

Reach the lab from macOS (proxy)#

Burp / a Mac browser / curl can't route to HTB directly — the container can. htb-proxy opens a SOCKS5 hole through it.

GUI when you need a screen (Bloodhound, browsers)#

XFCE4 + VNC container (kali-htb-gui), separate from the headless one. Build once with htb-build-gui.

Organise the engagement#

Per-target scaffolding under ~/htb, plus /etc/hosts and Pro-Lab scope helpers.

htb-box <name>   mk boxes/<name>/{scans,loot,exploits,notes,www}  + cd
box  [name]      cd to a box   (bare: list boxes)
htb-lab <name>   mk pro-labs/<name>/{scans,loot,pivoting,exploits,notes,hosts} + cd
lab  [name]      cd to a lab   (bare: list labs)

tmux for a session#

Wordlists#

Pre-exported paths every wrapper reaches for — seed them once, then use the vars.

Var Points at
$COMMON Web-Content/common.txt — first dir-bust pass
$MEDIUM / $BIG / $SMALL directory-list-2.3-{medium,small} / big.txt
$DNS_SUB subdomains-top1million-5000.txt — vhost/subdomain fuzzing
$USERNAMES / $PASSWORDS names.txt / top-10000 passwords
$ROCKYOU rockyou.txt — the default crack list
$SECLISTS / $WORDLISTS the SecLists clone / your wordlist root

Build & nuke images#

Daily loop: htb-up-vpn → myip → t <ip> → hosts-box <name> → htb-box <name> → enumerate (cheat recon). Leave it running; htb-down between sessions, htb-rm/htb-delete only when something's wedged.