03. Enumeration
With a shell on the box, I enumerate privileges, groups, and services to find a path to SYSTEM.
Check Privileges and Groups
whoami /priv
Check the current user's groups:
whoami /groups
Look for Non-Default Services
This lists all the services on the system and filters out those inside the C:\Windows directory:
wmic service get name,displayname,pathname,startmode | findstr /v /i "C:\Windows"
Right away I can see that the service SystemExplorerHelpService has a PathName that is missing quotes. That means I can upload a payload as System.exe and begin the privesc.
Confirm the Service Details
Running sc qc SystemExplorerHelpService shows the service is running as LocalSystem:
Confirm that the directory is writable:
powershell "get-acl -Path 'C:\Program Files (x86)\System Explorer' | format-list"
Full control over this directory confirmed.