This returns a list of users in the domain htb.local :
We can leverage the impacket suite to perform this attack:
Introduction Active Directory (AD) exploitation is a core skill for any penetration tester or red teamer. HackTheBox's is a classic, Windows-based machine designed to test your knowledge of AD enumeration, Kerberoasting, and privilege escalation via Access Control Lists (ACLs).
We have valid credentials and, luckily, WinRM is open on port 5985. We can use evil-winrm to get a remote shell on the machine: forest hackthebox walkthrough best
| Port | Service | State | |------|---------|-------| | 53 | DNS | open | | 88 | Kerberos | open | | 135 | MSRPC | open | | 139 | NetBIOS | open | | 389 | LDAP | open | | 445 | SMB | open | | 464 | Kerberos change pw | open | | 593 | RPC over HTTP | open | | 636 | LDAP SSL | open | | 3268 | Global Catalog | open | | 3269 | Global Catalog SSL | open | | 5985 | WinRM | open |
With DCSync permissions successfully assigned, use Impacket's secretsdump.py from your attack machine to extract the NT hashes directly from the domain controller:
With the permissions updated, perform a DCSync attack using Impacket’s secretsdump.py to extract the Administrator's NTLM hash directly from the Domain Controller. This returns a list of users in the domain htb
The output will contain the NTLM password hashes for all domain users, including the domain administrator. We are looking for the Administrator hash.
Now that our user john has DCSync privileges, we can use from Impacket (or Mimikatz) to remotely extract the NTLM password hash of all users, including the Domain Administrator :
The tool successfully retrieves a TGT hash for the user . Use John the Ripper or Hashcat to crack it against the rockyou.txt wordlist. john --wordlist=/usr/share/wordlists/rockyou.txt hashes.txt Use code with caution. Result Found: sebastien:EvilM0rd0r Establishing a Shell Log in remotely via WinRM using Evil-WinRM: evil-winrm -i 10.10.10.161 -u sebastien -p EvilM0rd0r Use code with caution. Grab the first flag at C:\Users\sebastien\Desktop\user.txt . 🩸 Step 4: Post-Exploitation & BloodHound Analysis We can use evil-winrm to get a remote
Inside your WinRM session, leverage your Account Operators status to create a new backdoor account. powershell net user hacker Password123! /add /domain Use code with caution. 2. Abuse Group Membership
Using PowerView, one can grant the current user the rights to perform directory replication (DCSync): powershell

(born November 30, 1941, in Zamość, died February 8, 2018, in Warsaw) - Erol was a Polish graphic artist, and an author of posters, counted among the so-called Polish school of designers.
He was the son of Mehmet Nuri Fazla Oglu (1916–1994), a baker by profession, and a Turk from 1934 living in Poland, and Cecylia Szyszkowska. He also had two brothers, Feridun (born 1938) and Enver (born 1943). From 1950 he lived in Łódź, Poland, where his father ran a pastry shop.
He studied under Henryk Tomaszewski at the Academy of Fine Arts in Warsaw, where he defended his thesis in 1968. He then collaborated with the National Publishing Agency and the Film Distribution Center (commonly known as Polish Film), for which he prepared several hundred film posters for Polish and foreign films.
He was a laureate of the Polish Biennale of Graphics (1973, 1985) and the International Poster Biennale (1986).
He is buried in the Old Cemetery in Łódź.
With regard to the Star Wars franchise, he is most famous for creating the theatrical poster artwork for Poland's advertising campaigns for both Star Wars (Gwiezdne wojny) and The Empire Strikes Back (Imperium kontratakuje).