Unquoted Service Path
Search for Unquoted Path
The following command will search for all the paths except "C:\windows" since a normal user will not have executable permissions on this folder.
If a service is found with unquoted path check the permissions of the service with icacls. If we have permissions on any of the folders that leads to the executable then we can escalate our privileges.
Create an executable msfvenom payload
Replace and restart service.
Powersploit
Within powershell run the following.
Last updated