Skip to main content

Enumeration

Run Nmap Scan

Enumerating DNS

Zone Transfer (Failed)

Validating Domain

LDAP Null/Anonymous Session Binding

Save the list of enumerated users in users.txt

ASREPRoasting

Cracking the Hash

Finding the Credentials

Exploitation

Accessing the Svc-Alfresco Account using WinRM

Privilege Escalation

Bloodhound Ingester using Bloodhound-Python

https://github.com/dirkjanm/BloodHound.py

Collecting Bloodhound information

Bloodhound

Turn on neo4j

If you don’t have neo4j installed,
Execute neo4j

Turn on Bloodhound

If you don’t have bloodhound installed, https://github.com/BloodHoundAD/BloodHound Execute Bloodhound
Untitled
Warning: Don’t change the URI of the Neo4j Database
The default login credential is

Uploading Collected Data from Bloodhound-Python

Click “Upload Data” Untitled Select the collected data in .zip format. Untitled If the all the file uploads are complete, we can now do some connection analysis

Find the Path to the Domain Admin

Untitled

Disabiling “Special Edge Filtering”

Click on the “Flask” button, which is above the “Analysis” tab Untitled Click the eraser to disable all the special edge filtering (like below) Untitled

Finding Domain Admin

Click “Find all Domain Admins” to find all the domain admins Untitled Untitled There’s only one “Domain Admin” account which is “ADMINISTRATOR@HTB.LOCAL”

Finding the Attack Path

Clicking the “Road” icon to find the attack path Untitled Set the starting node to “SVC-ALFRESCO@HTB.LOCAL” and the target node to “ADMINISTRATOR@HTB.LOCAL” Untitled

Attack Path to the Administrator

Untitled

Exploiting through the Attack Path

Generate username

GenericAll to “Exchange Windows Permissions” Group

WriteDACL to DCSync svc-alfresco account to Domain Admins

Dumping NTDS hashes

The leaked hashes can be used without decryption to login!

Exploit - Accessing the Administator account