Service Exploitation
Basic commands when abusing services to elevate privileges after being identified with a tool such as WinPEAS.
Basic Commands
# Query the configuration of a service
sc.exe qc $service_name
# Query the current status of a service
sc.exe query $service_name
# Modify an option on a service
sc.exe config $service_name $option= $value
# Start and stop a service
net start/stop $service_nameAccesschk.exe
Use Accesschk.exe to validate service permissions:
.\accesschk.exe /accepteula -uwcqv user $service_nameNotes
Last updated