repositories

NixDaemon

NixOS pentest workstation as one flake — IceBreaker's successor

clonegit clone https://git.daemon-sec.xyz/NixDaemon.git
bloodhound.mdMarkdown97 lines4.2 KiBsource raw download

bloodhound — collect the graph, find the path to DA#

Dump AD into a graph, then let Cypher walk you from a foothold to Domain Admin. Get creds first (cheat nxc), roast/relay along the path (cheat ad).

Collect (the wrappers)#

bhce-collect corp.local jdoe 'Summer2026!' 10.10.11.50   # CE zip, targeted DC
bhce-collect corp.local jdoe 'Summer2026!'               # let it autodiscover

Raw collector — the flags that matter#

When the wrapper's defaults don't fit (weird DNS, Kerberos-only, quiet runs), call it directly:

bloodhound-ce-python -d corp.local -u jdoe -p 'pw' -ns 10.10.11.50 -c all --zip
Flag Meaning
-d AD domain (FQDN, e.g. corp.local)
-u / -p username / password (add --hashes LM:NT for pass-the-hash)
-dc domain controller hostname to query (not an IP)
-ns nameserver IP for DNS — set to the DC's IP when AD DNS won't resolve
-c all every collection method incl. sessions/LoggedOn — thorough but loud (touches every host)
-c DCOnly LDAP-only, talks to the DC alone — quiet, use in stealth engagements
-k / --zip Kerberos auth (needs a TGT) / bundle JSON into one importable zip

-c all sprays SMB/RPC at every box to map sessions — noisy. On a careful engagement start with -c DCOnly, then widen.

Ingest into the CE GUI#

Mark your wins, then chase the path#

Tag the principals you already control as Owned (right-click node → Mark as Owned, or via Cypher) so path queries can start from them:

MATCH (u:User {name:"JDOE@CORP.LOCAL"}) SET u.owned=true

Hunt — starter Cypher#

Paste into the CE Cypher tab. DA group objectid ends -512, Domain Users -513, Enterprise Admins -519.

Shortest paths from anything Owned → Domain Admins (the money query):

MATCH p=shortestPath((n {owned:true})-[*1..]->(g:Group))
WHERE g.objectid ENDS WITH "-512"
RETURN p

Kerberoastable users (have an SPN — offline-crackable, cheat ad):

MATCH (u:User {hasspn:true})
RETURN u.name, u.serviceprincipalnames

AS-REP roastable (pre-auth disabled — grab a hash with no creds):

MATCH (u:User {dontreqpreauth:true}) RETURN u.name

Unconstrained delegation (coerce a DC → full compromise), non-DC boxes:

MATCH (c:Computer {unconstraineddelegation:true}) RETURN c.name

Who can DCSync the domain (GetChanges + GetChangesAll → dump every hash):

MATCH p=(n)-[:DCSync|GetChanges|GetChangesAll]->(:Domain) RETURN p

Kerberoastable → Domain Admin paths (which roast actually gets you there):

MATCH p=shortestPath((u:User {hasspn:true})-[*1..]->(g:Group))
WHERE g.objectid ENDS WITH "-512"
RETURN p

Where Domain Users are local admin (quick lateral wins for any account):

MATCH p=(g:Group)-[:AdminTo]->(c:Computer)
WHERE g.objectid ENDS WITH "-513"
RETURN p

Owned principals with admin rights somewhere (map your blast radius):

MATCH p=(n {owned:true})-[:AdminTo]->(c:Computer) RETURN p

The graph is only as fresh as your zip — re-run bhce-collect after you own a new box and re-mark it Owned, then re-run the Owned→DA path. New edges appear as your foothold widens.