aboutsummaryrefslogtreecommitdiff
path: root/Privesc
diff options
context:
space:
mode:
Diffstat (limited to 'Privesc')
-rw-r--r--Privesc/PowerUp.ps112
1 files changed, 6 insertions, 6 deletions
diff --git a/Privesc/PowerUp.ps1 b/Privesc/PowerUp.ps1
index 3769b71..0d71b14 100644
--- a/Privesc/PowerUp.ps1
+++ b/Privesc/PowerUp.ps1
@@ -155,7 +155,7 @@ function Test-ServiceDaclPermission {
return $False
}
- # try {
+ try {
# retrieve DACL from sc.exe
$Result = sc.exe sdshow $TargetService.Name | where {$_}
@@ -208,11 +208,11 @@ function Test-ServiceDaclPermission {
}
}
return $False
- # }
- # catch{
- # Write-Warning "Error: $_"
- # return $False
- # }
+ }
+ catch{
+ Write-Warning "Error: $_"
+ return $False
+ }
}
function Invoke-ServiceStart {