Skip to content

Commit 55fabd7

Browse files
committed
Removed commented blocks.
1 parent dae9d91 commit 55fabd7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Privesc/PowerUp.ps1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ function Test-ServiceDaclPermission {
155155
return $False
156156
}
157157

158-
# try {
158+
try {
159159
# retrieve DACL from sc.exe
160160
$Result = sc.exe sdshow $TargetService.Name | where {$_}
161161

@@ -208,11 +208,11 @@ function Test-ServiceDaclPermission {
208208
}
209209
}
210210
return $False
211-
# }
212-
# catch{
213-
# Write-Warning "Error: $_"
214-
# return $False
215-
# }
211+
}
212+
catch{
213+
Write-Warning "Error: $_"
214+
return $False
215+
}
216216
}
217217

218218
function Invoke-ServiceStart {

0 commit comments

Comments
 (0)