Service Binary Hijacking
To get a list of installed windows services:
services.msc
(GUI)Get-Service
orGet-CimInstance
Winpeas or SharpUp (Automated)
Check for paths here and any unusual paths should be given extra attention.
Using icacls:
This will give us the permission we have over the service binary.
Replace the binary with msfvenom reverse shell.
Try to restart the service:
or
Shutdown Privileges
We could reboot the machine if automatic startup:
Check if the auto start is enabled
Check if we have SeShutdown Privileges using whoami /priv
Now to reboot:
Last updated