Skip to content

BloodHound.py

8 commands

A Python ingestor for BloodHound that collects Active Directory objects, ACLs and sessions from Linux, revealing attack paths to high-value targets.

  • Active Directory
  • BloodHound
  • enumeration
  • attack paths

Install BloodHound.py

pipx install bloodhound

Collection5

bloodhound-python -u <user> -p <pass> -d <domain> -ns <dc-ip> -c Default

Collects AD objects and relationships over LDAP and saves JSON for BloodHound.

Link
bloodhound-python -u <user> -p <pass> -d <domain> -ns <dc-ip> -c All

Runs every collection method, including session and local-admin enumeration.

Link
bloodhound-python -u <user> --hashes <lm>:<nt> -d <domain> -ns <dc-ip> -c All

Collects using pass-the-hash instead of a password.

Link
bloodhound-python -u <user> -p <pass> -d <domain> -ns <dc-ip> -c All --zip

Bundles the JSON output into a single zip for import.

Link
bloodhound-python -u <user> -p <pass> -d <domain> -dc <fqdn> -ns <ip> -c All

Targets a named domain controller when DNS is awkward.

Link

Using the data3

sudo neo4j console

Starts the Neo4j database that the BloodHound GUI reads.

bloodhound

Launches the BloodHound GUI; drag the collected zip onto it to import.

MATCH p=shortestPath((u {owned:true})-[*1..]->(g:Group {name:"DOMAIN ADMINS@CORP.LOCAL"})) RETURN p

A Cypher query in the GUI: the shortest path from an owned node to Domain Admins.