Hack The Box: Pingpong Machine Walkthrough – Insane Difficulity

The privilege escalation begins with SQL Server's xp_cmdshell functionality, which provides an execution path for launching GodPotato-NET4.exe.
GodPotato is used to add PONG\C.Carlssen to the local Administrators group. After confirming the elevated membership, Impacket's secretsdump.py is executed using C. Carlssen's Kerberos credentials to extract local SAM hashes, cached domain credentials and LSA secrets.
Among the recovered credentials is the AES256 Kerberos key belonging to R. Martinelli. This key is used to obtain a TGT and authenticate against Active Directory.
With R. Martinelli's Kerberos access, bloodyAD modifies the SmartcardAuthentication certificate template. The msPKI-Certificate-Name-Flag attribute is updated, and GenericAll permissions are granted to Authenticated Users.
Certipy then requests a certificate impersonating the Administrator account. Successful certificate authentication provides an Administrator TGT and the associated NT hash.
Finally, Evil-WinRM establishes a remote PowerShell session as Administrator on DC1. Access to the Administrator profile allows retrieval of the root flag.
LinkedIn Post
LINKEDIN SUMMARY
Completed PingPong, an Insane difficulty machine on Hack The Box.
This challenge provided an interesting Active Directory environment involving Kerberos authentication, cross-domain trust relationships, certificate services and managed service accounts.
The user-level compromise involved exploiting certificate template misconfigurations, pivoting into an internal network, and leveraging cross-domain relationships to obtain additional privileges.
For the final escalation, SQL Server's xp_cmdshell and GodPotato provided local administrative access. Credential extraction then exposed Kerberos keys that enabled further abuse of Active Directory Certificate Services (AD CS), ultimately leading to Administrator access.
PingPong was a valuable exercise in understanding how seemingly separate Active Directory weaknesses can be chained together to compromise an environment.
Another machine completed, with plenty of notes and lessons learned along the way.
#HackTheBox #HTB #PingPong #ActiveDirectory #PenetrationTesting #RedTeam #Kerberos #ADCS #ESC13 #PrivilegeEscalation #CyberSecurity
Copy LinkedIn post








