repositories

NixDaemon

NixOS pentest workstation as one flake — IceBreaker's successor

clonegit clone https://git.daemon-sec.xyz/NixDaemon.git
htb-writeup-tools.mdMarkdown179 lines12.4 KiBsource raw download

HTB writeup tool coverage#

Audited 2026-10-11 against the complete 0xdf writeups linked below, including their alternative paths and Beyond Root sections. The requested names Poc and SteamIO are interpreted as Pov and StreamIO, matching the CPTS machine list. These additions feed the existing flake package categories and portable development shells; no system activation is part of this change.

Box and source Tools used on the attacking machine Coverage added or clarified
Trick nmap, SMTP user enumeration, telnet, dig, wfuzz, feroxbuster, Burp, sqlmap, swaks, SSH, netcat, NetExec SMTP command checks, swaks, telnet, nc; corrected wordlist syntax below
Pov nmap, ffuf, feroxbuster, Burp, tcpdump, YSoSerial.NET, RunasCs, Metasploit, Chisel, Evil-WinRM, psgetsys tcpdump; full YSoSerial.NET distribution and psgetsys payload
TombWatcher NetExec, RustHound CE, BloodHound CE Python, bloodyAD, targetedKerberoast, hashcat, Certipy, Evil-WinRM-Py CE Python collector alongside legacy; targetedKerberoast; Evil-WinRM-Py; check both nxc and netexec commands
Media nmap, feroxbuster, Responder, NTLM theft file generation, hashcat, SSH/SCP, netcat; FullPowers and GodPotato payloads ntlm_theft with templates and a WAX generation check; existing FullPowers/GodPotato retained
VulnCicada nmap, feroxbuster, showmount/mount.nfs, NetExec/coerce_plus, bloodyAD, Certipy relay, Impacket NFS clients; existing NetExec PetitPotam coercion path covers the demonstrated Linux approach
StreamIO nmap, wfuzz, feroxbuster, Burp, hashcat, Hydra, Responder, NetExec, Evil-WinRM, Impacket SMB server, Firepwd, BloodHound, LDAP; PowerView payload Firepwd with Crypto/ASN.1 dependencies; existing sqlmap covers the alternative injection
Voleur NetExec, Kerberos, SMB clients, office2john, hashcat, RustHound CE, bloodyAD, RunasCs, Impacket DPAPI/secretsdump/wmiexec, SSH/SCP, strings office2john availability check; explicit SSH/strings; existing RunasCs and Impacket cover the main path
Authority NetExec, SMB client, dig, feroxbuster, ansible2john, hashcat, ansible-vault, Burp/Wireshark/Responder, Evil-WinRM, Certipy, Impacket, PassTheCert Ansible CLI, ansible2john check, PassTheCert with LDAP dependencies
Craft nmap, wfuzz, gobuster, curl/jq, Python requests/pdb, git, SSH, John/JWT tools Explicit HTTP/git/SSH clients in portable shells; John already handles the JWT cracking shown in Beyond Root
Redelegate nmap, feroxbuster, FTP, NetExec, keepass2john, hashcat, keepassxc-cli, Impacket MSSQL/getST/secretsdump/wmiexec, Metasploit, RustHound CE, Evil-WinRM-Py FTP client, KeePass CLI, keepass2john check, Evil-WinRM-Py, CE Python collector
Snoopy nmap, feroxbuster, ffuf, dig/nsupdate, Python requests/zipfile/aiosmtpd/Paramiko, SSH, git, strings, hex editor; genisoimage/dmg/bbe for public DMG construction aiosmtpd and Paramiko in pentest-python; hexedit, genisoimage, source-built dmg and bbe
Ghost nmap, ffuf, feroxbuster, Burp, Python requests, curl/jq, sqlite3, SSH, Kerbrute userenum, BloodHound CE collectors, Responder, dnstool, hashcat, NetExec, ADFSpoof, xxd, Impacket ADFSpoof with tested modern dependencies; explicit ADFSDump payload; CE Python collector; xxd; ropnop Kerbrute already staged
Fluffy nmap, NetExec, Responder, library-ms ZIP generator, hashcat, BloodHound CE, bloodyAD, Certipy, Evil-WinRM-Py Exact pinned ZIP generator staged; existing Certipy 5.1.0 supports the ESC16 path; Responder already included
Jeeves nmap, feroxbuster, SMB client, netcat/rlwrap, keepass2john, hashcat, kpcli, NetExec, Impacket psexec kpcli for KeePass 1.x .kdb; existing NetExec replaces the writeup's CrackMapExec syntax
Postman nmap, gobuster, redis-cli, SSH/ssh-keygen, ssh2john, John, Python requests, Burp, Metasploit, Wireshark redis-cli available in core without enabling the optional database category or a service; ssh2john.py command check
Administrator nmap, NetExec, BloodHound CE, bloodyAD, Evil-WinRM, FTP, Password Safe, hashcat, targetedKerberoast, Impacket secretsdump Password Safe GUI (pwsafe) for .psafe3; existing FTP and AD tools cover the remaining path

Commands and compatibility#

The installed SMTP tool is cytopia/smtp-user-enum, whose hostname and port are positional arguments. -U takes a wordlist; -u takes one username:

smtp-user-enum -m VRFY -U "$seclists/Usernames/cirt-default-usernames.txt" "$TARGET" 25
smtp-user-enum -m VRFY -u root "$TARGET" 25

A bare wordlist path is parsed as the hostname and causes the IDNA label too long traceback. For an alternative, use nmap -p25 --script smtp-enum-users "$TARGET", or connect with telnet "$TARGET" 25 and enter VRFY root followed by QUIT. Results depend on whether the target enables SMTP enumeration.

Examples for the new tools:

pentest-python -m aiosmtpd --help
pentest-python sshpot.py              # Snoopy's Paramiko script from its writeup
ntlm_theft -g wax -s "$LHOST" -f media
firepwd -d ./firefox-profile/          # key4.db + logins.json from StreamIO
ansible2john.py encrypted-vault.txt
ansible-vault decrypt encrypted-vault.txt
keepass2john Shared.kdbx
keepassxc-cli export Shared.kdbx
office2john.py Access_Review.xlsx
targetedKerberoast --help
passthecert --help
ADFSpoof --help
bloodhound-ce-python --help
evil-winrm-py --help
kpcli --kdb CEH.kdb
ssh2john.py id_rsa > id_rsa.hash
redis-cli -h "$TARGET"
pwsafe Backup.psafe3
pentest-python "$PAYLOADS/scripts/ad/CVE-2025-24071.py" fluffy "$LHOST"

Fluffy's generator creates exploit.zip in the current directory and uses only Python's standard library. It matches the writeup's network location inside a .library-ms file, rather than ntlm_theft's different icon-reference template. The generator is pinned to an upstream commit. Responder remains available as responder in the AD category; it was already included before this audit.

kpcli reads both KeePass 1.x and 2.x formats. pwsafe is the Password Safe GUI from pwsafe/pwsafe, for Administrator's separate .psafe3 format. The shared Redis package exports only redis-cli to the toolkit's PATH.

bloodhound-python remains the legacy collector. For CE, use bloodhound-ce-python, rusthound-ce, or the staged CE SharpHound. TombWatcher and Redelegate combine Python and Rust collection to cover gaps. Each Python collector has its own closure so their identically named bloodhound Python modules do not overwrite one another.

The kerbrute userenum command in Ghost uses ropnop's Go Kerbrute. It is already staged at $PAYLOADS/ad/kerbrute/kerbrute-linux-amd64; the kerbrute on PATH is Tarlogic's different Python tool. Use the staged binary for that syntax.

For Pov, the full Windows .NET Framework release is at $PAYLOADS/web/ysoserial.net/Release/ysoserial.exe, including companion DLLs. Run it on a Windows environment with .NET Framework; it is not a Linux command. The PowerShell script is at $PAYLOADS/scripts/privesc/psgetsys.ps1. Ghost's dump tool is at $PAYLOADS/ad/ADFSDump.exe.

ADFSpoof uses the current Nix Python dependencies instead of upstream's old cryptography/signxml pins. Its compatibility patch retains Microsoft's byte-count encoding in the custom KDF and resolves templates relative to the installed script. Its install check compares key derivation with an independent HMAC calculation and generates then verifies a SAML signature using a temporary test certificate, entirely offline.

Snoopy's Python honeypot path is supported by Paramiko. Cowrie/Docker is an alternative in the writeup; it is not necessary for that path. DMG creation uses genisoimage, dmg, and bbe locally without the old Docker image. The DMG builder omits upstream's OpenSSL 1.0 FileVault encryption; plain DMG construction is supported.

Voleur's Beyond Root uses an unmerged NetExec tombstone module absent from the pinned NetExec. The main path restores the account through PowerShell's Restore-ADObject on the target, which requires no extra attacker package. The installed coerce_plus module supplies VulnCicada's PetitPotam path.

Programs supplied by the target itself are not host services: Craft's Vault CLI, StreamIO's sqlcmd, and the Windows AD/PowerShell commands run on the lab machine. Existing Impacket mssqlclient.py and the optional pentest-database shell supply local database clients. Git and ClamAV vulnerabilities are exploited on Snoopy; the laptop does not need vulnerable Git or ClamAV builds.

Reverse-shell generator listeners#

Audited the 21 choices in the local daemon-sec project's client/src/data/tools/revshells.ts and revshells-additions.ts. Their combined catalogue supplies the site's listener dropdown.

Listener choices Toolkit coverage
nc; nc freebsd; rlwrap + nc Existing OpenBSD nc and rlwrap
busybox nc Added busybox, exporting only the multicall binary
ncat; ncat (TLS) Existing Nmap ncat
ncat.exe Existing $PAYLOADS/recon/nmap/windows/nmap-7.92/ncat.exe, for Windows
rustcat Added Rustcat 3 (rcat)
openssl; openssl s_server (TLS) Existing openssl; supply the certificate and key named by the command
pwncat; pwncat (windows); pwncat-cs Added Caleb Stewart's pwncat-cs; use the commands below
windows ConPty Existing stty, cat, and nc; this dropdown entry is the Linux listener half
socat; socat (TTY); socat OPENSSL (TLS); socat (keep-alive) Existing socat; supply s.pem for OPENSSL
powercat Added a powercat launcher using pwsh, plus $PAYLOADS/shells/powercat.ps1 for Windows
msfconsole Existing Metasploit msfconsole
hoaxshell Added the pinned standalone HoaxShell listener as hoaxshell-listener (also hoaxshell)

Use these local commands instead of the site's Python module and curl forms:

pwncat-cs -lp "$LPORT"
pwncat-cs -m windows -lp "$LPORT"
hoaxshell-listener -t ps-iex -p "$LPORT"
hoaxshell-listener --list-payloads
rcat listen "$LPORT"
busybox nc -lp "$LPORT"
powercat -l -p "$LPORT"

The existing pwncat command is cytopia's TCP/UDP utility. It remains available; Caleb Stewart's Linux/Windows handler runs in its own Python environment through pwncat-cs. The global python3 -m pwncat command is not the entry point for that environment. Its Windows handler downloads upstream plugins on first use. The packaged handler replaces removed Python module-loading and resource APIs; an offline startup check loads its commands, modules, and local database.

HoaxShell uses the same standalone listener as the site, pinned locally instead of downloaded at runtime. Powercat's upstream script is dot-sourced by the launcher, which forwards named PowerShell parameters. Inside Windows PowerShell, dot-source the staged .ps1 before calling powercat.

Validation#

The category checks cover core, recon, AD, crack, Python, web, shells, GUI, and database; the toolkit collision check merges all package categories. The payload check also verifies the newly staged Windows files. These are builds and offline checks, not connections to lab targets and not system activation.

For the four additional boxes, core, crack, GUI, database, collision, and payload checks passed. Fluffy's pinned generator was also run offline with a documentation IP address: its ZIP member and parsed network-location XML matched the expected .library-ms output.

The listener additions passed the shells, collision, and payload checks, including offline Powercat argument forwarding and pwncat-cs startup.