repositories

NixDaemon

NixOS pentest workstation as one flake — IceBreaker's successor

clonegit clone https://git.daemon-sec.xyz/NixDaemon.git
cracking.mdMarkdown56 lines4.7 KiBsource raw download

cracking — hashes in, plaintext out#

Hash cracking + password attacks. Hashes usually come from elsewhere first: cheat impacket (secretsdump, GetUserSPNs, GetNPUsers), cheat nxc (dumps + spraying), cheat ad for the AD kill-chain. $ROCKYOU is the default wordlist everywhere below.

Identify first (wrong -m = no crack)#

Crack (the fast path)#

hcrack auto-detect → mode: $krb5asrep$→18200 · $krb5tgs$→13100 · $2[aby]$→3200 · $6$→1800 · $5$→7400 · ::→5600 · 32hex:32hex→5500 · 32-hex→1000 (NTLM; try -m 0 MD5 if it whiffs). Unknown → falls back to hc.

hashcat -m modes — the ones you actually meet#

mode hash where it comes from
1000 NTLM secretsdump, SAM, NTDS.dit
5600 NetNTLMv2 Responder / ntlmrelayx capture
13100 Kerberoast (TGS-REP) GetUserSPNs
18200 AS-REP roast GetNPUsers (no-preauth)
3200 bcrypt $2*$ web app DBs (slow — small wl only)
1800 sha512crypt $6$ Linux /etc/shadow
0 / 100 MD5 / SHA1 generic web hashes

Extract hashes from files (john side)#

Spray & brute over the network (loud — noisy, lockout risk)#

Wordlists & tuning#

Order of operations: hid (or nth) to name it → hcrack to crack it. Don't hand-pick -m until hcrack can't. Cracked once = in the potfile forever, so hc-show/--show before you ever re-run a job.