Service Exploitation
Basic commands when abusing services to elevate privileges after being identified with a tool such as WinPEAS.
Basic Commands
Accesschk.exe
Use Accesschk.exe to validate service permissions:
What we are looking for in the output is the
SERVICE_START
andSERVICE_STOP
permissions.We also want to confirm that it is running under a user with higher privileges (e.g.,
LocalSystem
)
Notes
Validate if you can start/stop the service or the machine. If you cannot then you may not be able to use it to escalate your privileges.
Check if we can reboot the system with
whoami /priv
An easy way to escalate privileges utilizing a service is to modify the binaries path. The following demonstrates an example of this:
Last updated