Welcome
Summary
This target is a DC that comes with an assumed breach scenario, with provided credentials I was able to get access to SMB service and drop some files. One of the files was protected with a password that is easily cracked with john.
Enumerating further I was able to get Domain users through LDAP with the provided user. Put that together with the leaked password I had lateral movement to a second user.
With the second user I was able to find path to service accounts using bloodhound, this included Certificate Authority account. with access to SVC_CA account I was able to identify ESC1 vulnerability which leads to access to Administrator.
Nmap Scan
└─$ cat .nmap_scan
# Nmap 7.95 scan initiated Fri Nov 7 10:03:35 2025 as: /usr/lib/nmap/nmap --privileged -T4 -A -Pn -p- -v -oN .nmap_scan -iL .target
Nmap scan report for 10.0.27.244
Host is up (0.14s latency).
Not shown: 65516 filtered tcp ports (no-response)
PORT STATE SERVICE VERSION
53/tcp open domain Simple DNS Plus
88/tcp open kerberos-sec Microsoft Windows Kerberos (server time: 2025-11-07 09:12:22Z)
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: WELCOME.local0., Site: Default-First-Site-Name)
| ssl-cert: Subject: commonName=DC01.WELCOME.local
| Subject Alternative Name: othername: 1.3.6.1.4.1.311.25.1:<unsupported>, DNS:DC01.WELCOME.local
| Issuer: commonName=WELCOME-CA
| Public Key type: rsa
| Public Key bits: 2048
| Signature Algorithm: sha256WithRSAEncryption
| Not valid before: 2025-09-13T16:39:47
| Not valid after: 2026-09-13T16:39:47
| MD5: 2ded:dae3:3ecd:1cc4:58a7:dd02:4f41:2b6d
|_SHA-1: aa01:7b70:2f48:f3c8:4aa0:5357:aeb8:93e9:8cbd:53bc
|_ssl-date: 2025-11-07T09:14:00+00:00; 0s from scanner time.
445/tcp open microsoft-ds?
464/tcp open kpasswd5?
636/tcp open ssl/ldap Microsoft Windows Active Directory LDAP (Domain: WELCOME.local0., Site: Default-First-Site-Name)
|_ssl-date: 2025-11-07T09:14:00+00:00; 0s from scanner time.
| ssl-cert: Subject: commonName=DC01.WELCOME.local
| Subject Alternative Name: othername: 1.3.6.1.4.1.311.25.1:<unsupported>, DNS:DC01.WELCOME.local
| Issuer: commonName=WELCOME-CA
| Public Key type: rsa
| Public Key bits: 2048
| Signature Algorithm: sha256WithRSAEncryption
| Not valid before: 2025-09-13T16:39:47
| Not valid after: 2026-09-13T16:39:47
| MD5: 2ded:dae3:3ecd:1cc4:58a7:dd02:4f41:2b6d
|_SHA-1: aa01:7b70:2f48:f3c8:4aa0:5357:aeb8:93e9:8cbd:53bc
3268/tcp open ldap Microsoft Windows Active Directory LDAP (Domain: WELCOME.local0., Site: Default-First-Site-Name)
| ssl-cert: Subject: commonName=DC01.WELCOME.local
| Subject Alternative Name: othername: 1.3.6.1.4.1.311.25.1:<unsupported>, DNS:DC01.WELCOME.local
| Issuer: commonName=WELCOME-CA
| Public Key type: rsa
| Public Key bits: 2048
| Signature Algorithm: sha256WithRSAEncryption
| Not valid before: 2025-09-13T16:39:47
| Not valid after: 2026-09-13T16:39:47
| MD5: 2ded:dae3:3ecd:1cc4:58a7:dd02:4f41:2b6d
|_SHA-1: aa01:7b70:2f48:f3c8:4aa0:5357:aeb8:93e9:8cbd:53bc
|_ssl-date: 2025-11-07T09:14:00+00:00; 0s from scanner time.
3269/tcp open ssl/ldap Microsoft Windows Active Directory LDAP (Domain: WELCOME.local0., Site: Default-First-Site-Name)
| ssl-cert: Subject: commonName=DC01.WELCOME.local
| Subject Alternative Name: othername: 1.3.6.1.4.1.311.25.1:<unsupported>, DNS:DC01.WELCOME.local
| Issuer: commonName=WELCOME-CA
| Public Key type: rsa
| Public Key bits: 2048
| Signature Algorithm: sha256WithRSAEncryption
| Not valid before: 2025-09-13T16:39:47
| Not valid after: 2026-09-13T16:39:47
| MD5: 2ded:dae3:3ecd:1cc4:58a7:dd02:4f41:2b6d
|_SHA-1: aa01:7b70:2f48:f3c8:4aa0:5357:aeb8:93e9:8cbd:53bc
|_ssl-date: 2025-11-07T09:14:00+00:00; 0s from scanner time.
3389/tcp open ms-wbt-server Microsoft Terminal Services
| ssl-cert: Subject: commonName=DC01.WELCOME.local
| Issuer: commonName=DC01.WELCOME.local
| Public Key type: rsa
| Public Key bits: 2048
| Signature Algorithm: sha256WithRSAEncryption
| Not valid before: 2025-10-27T15:46:43
| Not valid after: 2026-04-28T15:46:43
| MD5: 242b:566d:674b:702d:f73e:cee4:a92d:6581
|_SHA-1: 848f:035b:09f0:1735:2bc9:40b7:0f02:bee2:82c0:da7a
| rdp-ntlm-info:
| Target_Name: WELCOME
| NetBIOS_Domain_Name: WELCOME
| NetBIOS_Computer_Name: DC01
| DNS_Domain_Name: WELCOME.local
| DNS_Computer_Name: DC01.WELCOME.local
| Product_Version: 10.0.20348
|_ System_Time: 2025-11-07T09:13:20+00:00
|_ssl-date: 2025-11-07T09:14:00+00:00; 0s from scanner time.
5985/tcp open http Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)
|_http-title: Not Found
|_http-server-header: Microsoft-HTTPAPI/2.0
9389/tcp open mc-nmf .NET Message Framing
49664/tcp open msrpc Microsoft Windows RPC
49667/tcp open msrpc Microsoft Windows RPC
49676/tcp open ncacn_http Microsoft Windows RPC over HTTP 1.0
49679/tcp open msrpc Microsoft Windows RPC
49706/tcp open msrpc Microsoft Windows RPC
49722/tcp open msrpc Microsoft Windows RPC
Warning: OSScan results may be unreliable because we could not find at least 1 open and 1 closed port
OS fingerprint not ideal because: Missing a closed TCP port so results incomplete
No OS matches for host
Uptime guess: 0.008 days (since Fri Nov 7 10:02:17 2025)
Network Distance: 3 hops
TCP Sequence Prediction: Difficulty=259 (Good luck!)
IP ID Sequence Generation: Incremental
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: 2025-11-07T09:13:22
|_ start_date: N/A
TRACEROUTE (using port 3389/tcp)
HOP RTT ADDRESS
1 154.82 ms 10.200.0.1
2 ...
3 154.85 ms 10.0.27.244
Read data files from: /usr/share/nmap
OS and Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
# Nmap done at Fri Nov 7 10:14:02 2025 -- 1 IP address (1 host up) scanned in 627.22 secondsfrom this scan I can see that the target is a DC (domain controller)
Initial Access
Initial access is achieved with assumed breach scenario, the credentials are provided in the lab
e.hills : Il0vemyj0b2025!This Lab is different from the usual scenario where I start with gaining a foothold that lead to initial access, this is already done for us, so the focus is more on Lateral movement and Privilege Escalation as in an internal pentest
Enumerarion
Nmap showed too many services, 19 services exactly on the target which could have been confusing, but since I have credentials already the obvious initial step would be spraying those credentials on these services to get more information about the system.
first step I will drop the username and password into local files to use for the spray, this way I can build on theses files and widen my spray attacks going on by adding new found credentials
Then I start the actual spraying,
This initial spray valited the credentials are working on SMB, LDAP and RDP services, so let’s use that to find some information, starting with SMB
I then connect to the share and find some PDF file, I go on and drop all the files to my local machine for analysis
I start with exiftools to check the files Metadata
┌──(dj4m㉿kali)-[~/Desktop/HackSmarter]
└─$ exiftool Wel*
======== Welcome 2025 Holiday Schedule.pdf
ExifTool Version Number : 13.25
File Name : Welcome 2025 Holiday Schedule.pdf
Directory : .
File Size : 85 kB
File Modification Date/Time : 2025:11:07 10:34:29+01:00
File Access Date/Time : 2025:11:07 10:34:28+01:00
File Inode Change Date/Time : 2025:11:07 10:34:29+01:00
File Permissions : -rw-r--r--
File Type : PDF
File Type Extension : pdf
MIME Type : application/pdf
PDF Version : 1.7
Linearized : No
Page Count : 1
Language : en
Tagged PDF : Yes
XMP Toolkit : 3.1-701
Producer : Microsoft® Word for Microsoft 365
Creator : Noah Heroldt
Creator Tool : Microsoft® Word for Microsoft 365
Create Date : 2025:09:13 18:07:31-04:00
Modify Date : 2025:09:13 18:07:31-04:00
Document ID : uuid:2CD77113-48EA-4E60-ABE5-84C403C7D92A
Instance ID : uuid:2CD77113-48EA-4E60-ABE5-84C403C7D92A
Author : Noah Heroldt
======== Welcome Benefits.pdf
ExifTool Version Number : 13.25
File Name : Welcome Benefits.pdf
Directory : .
File Size : 81 kB
File Modification Date/Time : 2025:11:07 10:34:30+01:00
File Access Date/Time : 2025:11:07 10:34:29+01:00
File Inode Change Date/Time : 2025:11:07 10:34:30+01:00
File Permissions : -rw-r--r--
File Type : PDF
File Type Extension : pdf
MIME Type : application/pdf
PDF Version : 1.7
Linearized : No
Page Count : 1
Language : en
Tagged PDF : Yes
XMP Toolkit : 3.1-701
Producer : Microsoft® Word for Microsoft 365
Creator : Noah Heroldt
Creator Tool : Microsoft® Word for Microsoft 365
Create Date : 2025:09:13 18:08:17-04:00
Modify Date : 2025:09:13 18:08:17-04:00
Document ID : uuid:3D02A64E-0A7E-46C7-A120-0749E34D19B3
Instance ID : uuid:3D02A64E-0A7E-46C7-A120-0749E34D19B3
Author : Noah Heroldt
======== Welcome Handbook Excerpts.pdf
ExifTool Version Number : 13.25
File Name : Welcome Handbook Excerpts.pdf
Directory : .
File Size : 83 kB
File Modification Date/Time : 2025:11:07 10:34:30+01:00
File Access Date/Time : 2025:11:07 10:34:30+01:00
File Inode Change Date/Time : 2025:11:07 10:34:30+01:00
File Permissions : -rw-r--r--
File Type : PDF
File Type Extension : pdf
MIME Type : application/pdf
PDF Version : 1.7
Linearized : No
Page Count : 1
Language : en
Tagged PDF : Yes
XMP Toolkit : 3.1-701
Producer : Microsoft® Word for Microsoft 365
Creator : Noah Heroldt
Creator Tool : Microsoft® Word for Microsoft 365
Create Date : 2025:09:13 18:09:52-04:00
Modify Date : 2025:09:13 18:09:52-04:00
Document ID : uuid:00C57D5D-FCF0-4EB7-BC8A-CC4ACAFF25B6
Instance ID : uuid:00C57D5D-FCF0-4EB7-BC8A-CC4ACAFF25B6
Author : Noah Heroldt
======== Welcome Performance Review Guide.pdf
ExifTool Version Number : 13.25
File Name : Welcome Performance Review Guide.pdf
Directory : .
File Size : 80 kB
File Modification Date/Time : 2025:11:07 10:34:31+01:00
File Access Date/Time : 2025:11:07 10:34:31+01:00
File Inode Change Date/Time : 2025:11:07 10:34:31+01:00
File Permissions : -rw-r--r--
File Type : PDF
File Type Extension : pdf
MIME Type : application/pdf
PDF Version : 1.7
Linearized : No
Page Count : 1
Language : en
Tagged PDF : Yes
XMP Toolkit : 3.1-701
Producer : Microsoft® Word for Microsoft 365
Creator : Noah Heroldt
Creator Tool : Microsoft® Word for Microsoft 365
Create Date : 2025:09:13 18:11:07-04:00
Modify Date : 2025:09:13 18:11:07-04:00
Document ID : uuid:DFD00EED-C664-4C8C-81BB-9796A48A08AC
Instance ID : uuid:DFD00EED-C664-4C8C-81BB-9796A48A08AC
Author : Noah Heroldt
======== Welcome Start Guide.pdf
ExifTool Version Number : 13.25
File Name : Welcome Start Guide.pdf
Directory : .
File Size : 90 kB
File Modification Date/Time : 2025:11:07 10:34:32+01:00
File Access Date/Time : 2025:11:07 10:34:32+01:00
File Inode Change Date/Time : 2025:11:07 10:34:32+01:00
File Permissions : -rw-r--r--
File Type : PDF
File Type Extension : pdf
MIME Type : application/pdf
PDF Version : 1.7
Linearized : No
Encryption : Standard V4.4 (128-bit)
User Access : Print, Modify, Copy, Fill forms, Extract, Print high-res
Warning : Document is password protected (use Password option)
5 image files readwhat I notice here is that all files are created by user ‘Noah Heroldt’ so I add that user to my names file following the same pattern from the already provided user and then I can see that only the last file ‘Welcome Start Guide.pdf’ is password protected so that file is probably more interesting then the rest, I start by cracking the password using pdf2john + john
now let’s check the content of the file
to summarize the finding, I have found the Default password for new accounts, the prefix for service accounts and 3 different potential user account names. I add the relevant user to my names list then do quick check of the other PDF file which did not show anything interesting at this time.
a new spray did not work with these new found usernames + default password which was somewhat expected as this password is supposed to work on new accounts or regular user accounts that forgot to reset it.
So I move my enumeration to LDAP service now and will go with enum4linux first (if this gives me more users on the target DC this might lead to a new spray attack that could work with the default password).
Get dj4m’s stories in your inbox
Join Medium for free to get updates from this writer.
While enum4linux did not work I was able to use nxc again to get domain users
Lateral Movement
I add found username to my names list and retry a spray which lead me a second user
spraying all available services also leads me a shell access with this new user through winrm
I connect to winrm with user ‘a.harris’ and get the user.txt flag
Privilege Escalation
My next step was to run a bloodhound scan and passign the generated ZIP file to bloodhound for analysis
I added my owned users and then checked the ‘shortest path from owned users’
this shows that ‘a.harris’ as part of ‘HR’ group has ‘GenericAll’ permission on user ‘i.park’ who is part of ‘IT’ group and ‘Helpdesk’ group that can reset apssword of service accounts ‘svc_web’ and ‘svc_ca’.
I will try lateral movement to user i.park and run another bloodhound scan, bloodhound will help with that showing me the commands to use to achieve that
I was able to successfully change the user password so I can use this user to run the second bloodhound scan, just in case this can lead to a new path based on IT group, unfortunately this was not the case, so I am still on the initial path identified and bloodhound showed the same command I already used in first step to exploit ‘forceChangePassword’ on service users
and I can see now the new password works on the exploited users
I tried again bloodhound with these new users but this did not show any extra paths but since I now have svc_ca which should be Certificate Authority I can try with certipy-ad to sccan for vulnerable certificate templates
and then checking the output file
So I can follow the steps here for the exploit
the command above returned a pfx file that was next used to authenticate to target and retrieve the NTLM hash of user Administrator
I then just used this hash to connect to target with winrm as administrator and gettign the roof.txt flag








