Skip to main content

Enumeration

Run Nmap Scan

Add Nameserver to resolv.conf

Enumerating DNS

Zone Transfer (Failed)

Validating Domain

Enumerating SMB

We can see, downloading /Replication folder is available with guest account
Downloaded the /Replication folder using smbget

Exploitation

Checking the downloaded /Replication folder

Here the only file that is not either .inf and .ini is Group.xml file!

Group.xml

We found name="active.htb\SVC_TGS" and cpassword="edBSHOwhZLTjt/QS9FeIcJ83mjWA98gw9guKOhJOdcqh+ZGMeXOsQbCpZ3xUjTLfCuNH8pG5aSVYdYw/NglVmQ", which maybe useful for our further enumeration

Decrypting the cPassword

https://github.com/t0thkr1s/gpp-decrypt

Finding Credentials

Enumerating SMB using the Credentials gained

Here we found Users directory that contains our user directories!

Logging into SMB

Privilege Escalation

Kerberoasting

To perform Kerberoasting, only a domain account that can request for TGSs is necessary, which is anyone since no special privileges are required. - HackTricks.xyz
Since our service account username is “SVC_TGS”, we can assume the account can request TGS.
When the script finish, it will generate the users.kerberoast file that contains the Administrator hash

Cracking the Administrator account Hash

Finding Credentials

Logging into SMB

Reference