> For the complete documentation index, see [llms.txt](https://watchdogsacademy.gitbook.io/attacking-active-directory/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://watchdogsacademy.gitbook.io/attacking-active-directory/user-acl-exploits/hunting-with-bloodhound.md).

# Hunting with bloodhound

Now start neo4j and bloodhound

Upload the zips into neo4j

and now show all domains and computer

```
MATCH p = (d:Domain)-[r:Contains*1..]->(n:Computer) RETURN p
```

<figure><img src="https://755243087-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB2Dm6vWGbM7kQRITOyVl%2Fuploads%2FKFdEdnzUaxxrE4wQv42d%2Fimage.png?alt=media&amp;token=1735fd96-e03f-46af-8868-813fac052fed" alt=""><figcaption></figcaption></figure>

And show all the users

```
MATCH p = (d:Domain)-[r:Contains*1..]->(n:User) RETURN p

```

<figure><img src="https://755243087-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB2Dm6vWGbM7kQRITOyVl%2Fuploads%2FK8TeZZim2FUZZuf2VZT6%2Fimage.png?alt=media&amp;token=564470fc-49db-4eee-ad26-793918991987" alt=""><figcaption></figcaption></figure>

let see the overall map of domains/groups/users

```
MATCH q=(d:Domain)-[r:Contains*1..]->(n:Group)<-[s:MemberOf]-(u:User) RETURN q
```

<figure><img src="https://755243087-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB2Dm6vWGbM7kQRITOyVl%2Fuploads%2F3jSXzJuUQ9bhrvbY0GsZ%2Fimage.png?alt=media&amp;token=f25e2098-44a9-4d63-90d6-2d5c7a5bc273" alt=""><figcaption></figcaption></figure>

Let see the users ACL

<figure><img src="https://755243087-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB2Dm6vWGbM7kQRITOyVl%2Fuploads%2FG6HoCEyFL0PmUiY409Es%2Fimage.png?alt=media&amp;token=dbc94d0c-533b-4028-8230-821e6d5a8997" alt=""><figcaption></figcaption></figure>

```
MATCH p=(u:User)-[r1]->(n) WHERE r1.isacl=true and not tolower(u.name) contains 'vagrant' RETURN p
```

* If you want to dig more I recommend the following articles with a lot of useful informations and queries :
  * <https://en.hackndo.com/bloodhound/>
  * <https://hausec.com/2019/09/09/bloodhound-cypher-cheatsheet/>
