> For the complete documentation index, see [llms.txt](https://notes.cavementech.com/pentesting-quick-reference/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://notes.cavementech.com/pentesting-quick-reference/active-directory-pentesting/active-directory/bloodhound/bloodhound-ce.md).

# Bloodhound CE

Bloodhound CE is the latest version. Sharphound collectors do not work with the legacy Bloodhound.

## New Method

### Installing and Launching BloodHound <a href="#user-content-installing-and-launching-bloodhound" id="user-content-installing-and-launching-bloodhound"></a>

{% embed url="<https://github.com/SpecterOps/bloodhound-cli>" %}

Before you ingest the data you collected, you need to spin up the BloodHound infrastructure (the web application, the Neo4j graph database, and the PostgreSQL app database).

With the new CLI, this entire process is automated.

**1. Download the bloodhound-cli release from Github:**

Link: <https://github.com/SpecterOps/bloodhound-cli/releases/tag/v0.2.1>

Be sure to download the correct version for your machine. For a standard Kali Linux install on Windows or Linux, you will want to download `bloodhound-cli-linux-amd64.tar.gz`

**2. Unzip the the tar file:**

```
tar -xf bloodhound-cli-linux-amd64.tar.gz
```

**3. Add the bloodhound-cli to your Path**

This allows you to use the bloodhound-cli binary from any folder on Kali Linux

```
sudo mv bloodhound-cli /usr/local/bin/
```

**4. Launch the bloodhound-cli**

```
sudo bloodhound-cli install 
```

![](https://images.coursestack.com/52dc0c39-4409-44ac-a4f6-dbdd70dfb7eb/2cdcf41c-d044-44d7-958e-78359b57d516)

**5. Capture the Credentials**

The CLI generates a secure, randomized initial password for you. Wait for the containers to report a Healthy status, and the CLI will output your credentials at the end of the run.

If you accidentally clear your terminal, you do not need to reinstall - just run this command:

```
sudo bloodhound-cli config get default_password
```

![](https://images.coursestack.com/52dc0c39-4409-44ac-a4f6-dbdd70dfb7eb/acd8ec84-6a48-4c66-beb0-3663960b87b3)

**6. Access the Interface**

Link: `http://127.0.0.1:8080/ui/login`

With the services running, open your web browser and navigate to the BloodHound GUI to log in with the `admin` username and your generated password. After login you will be prompted to set a new password.

<figure><img src="/files/x1TI5aL66dDyOsr0mrAE" alt=""><figcaption></figcaption></figure>

### Clear Previous Data

We have to go to admin management and clear the data

<figure><img src="/files/wTk1I6jSyVp7x4eBgOG1" alt=""><figcaption></figcaption></figure>

## Old Method

{% embed url="<https://m4lwhere.medium.com/the-ultimate-guide-for-bloodhound-community-edition-bhce-80b574595acf>" %}

{% embed url="<https://github.com/SpecterOps/BloodHound>" %}

### Install Docker compose on Kali

```
sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
```

```
sudo chmod +x /usr/local/bin/docker-compose
```

<figure><img src="/files/5NGLHIbKjmjje5fsJQbK" alt=""><figcaption></figcaption></figure>

### Launch the docker

First download the compose file

```
wget https://ghst.ly/getbhce -O docker-compose.yml
```

Then launch the container

```
docker-compose up
```

<figure><img src="/files/I9Rh6YJmZsDNI4JPRLPm" alt=""><figcaption></figcaption></figure>

We will get some initial password.

<figure><img src="/files/dAsCycpCHmfCYMznMEwf" alt=""><figcaption></figcaption></figure>

Then visit the following link to access it.

{% embed url="<http://localhost:8080/>" %}

Login with user admin and given password

<figure><img src="/files/SxcTVsZY0QQFxwnPkoWz" alt=""><figcaption></figcaption></figure>

Then upload data from admin panel.

<figure><img src="/files/Ykok9CxnaJsIxbUR18lf" alt=""><figcaption></figcaption></figure>
