diff --git a/Privesc/PowerUp.ps1 b/Privesc/PowerUp.ps1 index 072b03e6..67923f0c 100644 --- a/Privesc/PowerUp.ps1 +++ b/Privesc/PowerUp.ps1 @@ -1504,7 +1504,7 @@ function Get-ModifiableServiceFile { Get-WMIObject -Class win32_service | Where-Object {$_ -and $_.pathname} | ForEach-Object { $ServiceName = $_.name - $ServicePath = $_.pathname + $ServicePath = $_.pathname.split("/")[0] $ServiceStartName = $_.startname $ServicePath | Get-ModifiablePath | ForEach-Object {