> ## Documentation Index
> Fetch the complete documentation index at: https://notes.chaelsoo.me/llms.txt
> Use this file to discover all available pages before exploring further.

# BloodHound

Graphs AD relationships to find attack paths to Domain Admin: run collection first, then import the JSON and query from the UI.

## Collection

### Linux

Collect from your attack box using bloodhound-python or nxc: no need to touch the target host.

```bash wrap theme={"theme":{"light":"night-owl","dark":"night-owl"}}
bloodhound-python -u $USER -p $PASSWORD -d $DOMAIN -dc $DC_HOST -c all -ns $DC_IP
nxc ldap $IP -u $USER -p $PASSWORD --bloodhound -c all
```

### Windows

```powershell wrap theme={"theme":{"light":"night-owl","dark":"night-owl"}}
.\SharpHound.exe -c All
```

## Start BloodHound CE

```bash wrap theme={"theme":{"light":"night-owl","dark":"night-owl"}}
cd ~/tools/bloodhound
docker compose up -d
# http://localhost:8080
docker compose down
```

## Key Queries

Run these in order after importing data: they cover the most common privilege escalation paths.

* Shortest Path to Domain Admin
* Shortest Path from Owned Principals
* Find Principals with DCSync Rights
* Find Kerberoastable Users
* Find AS-REP Roastable Users
* Computers Where Domain Users are Local Admin
