![[Pasted image 20261029202720.png]]
# Initial Enumeration
## nmap
```sh
PORT STATE SERVICE REASON VERSION
53/tcp open domain syn-ack Simple DNS Plus
88/tcp open kerberos-sec syn-ack Microsoft Windows Kerberos (server time: 2026-10-29 23:35:32Z)
135/tcp open msrpc syn-ack Microsoft Windows RPC
139/tcp open netbios-ssn syn-ack Microsoft Windows netbios-ssn
389/tcp open ldap syn-ack Microsoft Windows Active Directory LDAP (Domain: resourced.local0., Site: Default-First-Site-Name)
445/tcp open microsoft-ds? syn-ack
464/tcp open kpasswd5? syn-ack
593/tcp open ncacn_http syn-ack Microsoft Windows RPC over HTTP 1.0
636/tcp open tcpwrapped syn-ack
3268/tcp open ldap syn-ack Microsoft Windows Active Directory LDAP (Domain: resourced.local0., Site: Default-First-Site-Name)
3269/tcp open tcpwrapped syn-ack
3389/tcp open ms-wbt-server syn-ack Microsoft Terminal Services
| rdp-ntlm-info:
| Target_Name: resourced
| NetBIOS_Domain_Name: resourced
| NetBIOS_Computer_Name: RESOURCEDC
| DNS_Domain_Name: resourced.local
| DNS_Computer_Name: ResourceDC.resourced.local
| DNS_Tree_Name: resourced.local
| Product_Version: 10.0.17763
|_ System_Time: 2026-10-29T23:36:21+00:00
5985/tcp open http syn-ack 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 .NET Message Framing
Service Info: Host: RESOURCEDC; OS: Windows; CPE: cpe:/o:microsoft:windows
Host script results:
| smb2-time:
| date: 2026-10-29T23:36:26
|_ start_date: N/A
|_clock-skew: mean: 0s, deviation: 0s, median: 0s
| p2p-conficker:
| Checking for Conficker.C or higher...
| Check 1 (port 38525/tcp): CLEAN (Timeout)
| Check 2 (port 11462/tcp): CLEAN (Timeout)
| Check 3 (port 16785/udp): CLEAN (Timeout)
| Check 4 (port 22967/udp): CLEAN (Timeout)
|_ 0/4 checks are positive: Host is CLEAN or ports are blocked
| smb2-security-mode:
| 3:1:1:
|_ Message signing enabled and required
```
## Generate Host Files (DNS)
![[Pasted image 20261029184040.png]]
# TCP/445 SMB
![[Pasted image 20261029184328.png]]
# TCP/389 LDAP
![[Pasted image 20261029185058.png]]
No anonymous bind
# Enum4linux-ng
```sh
enum4linux-ng -P $target -A
```
![[Pasted image 20261029185645.png]]
`RPC Anonymous Bind`
![[Pasted image 20261029185956.png]]
- Lockout threshold set to `None`
# Access as `v.ventz`
![[Pasted image 20261029190425.png]]
`Password Audit` share is interesting
![[Pasted image 20261029190752.png]]
Oh no there's an `ntds.dit` in here
![[Pasted image 20261029190825.png]]
then there's the `SECURITY` and `SYSTEM` hive
## secretsdump
![[Pasted image 20261029191052.png]]
## Creating users.list
![[Pasted image 20261029191932.png]]
### Passwordspray
![[Pasted image 20261029192024.png]]
![[Pasted image 20261029192047.png]]
Looks like credentials were rotated, I was hoping we'd be able to craft a golden ticket with the `krbtgt` hash but it is invalid
# Access as `l.livingstone`
Before we continue I want a bloodhound scan
![[Pasted image 20261029193326.png]]
![[Pasted image 20261029193628.png]]
User flag
## bloodhound
![[Pasted image 20261029193449.png]]
Part of Remote Desktop Users and Remote Management Users
![[Pasted image 20261029193750.png]]
`l.livingstone` is a domain admin and has `GenericAll` over the domain controller
### RBCD
#### Add Computer
![[Pasted image 20261029200108.png]]
`LDAPS` was failing so switched to `SAMR`
#### Delegate our machine to domain controller
![[Pasted image 20261029200503.png]]
#### Getting TGT as Administrator
![[Pasted image 20261029200756.png]]
# Access as administrator
## netexec kerberos (TGT)
![[Pasted image 20261029201503.png]]
## psexec with kerberos (TGT)
![[Pasted image 20261029202537.png]]
## root flag
![[Pasted image 20261029202515.png]]