Skip to content

Commit

Permalink
Service DACL false positive
Browse files Browse the repository at this point in the history
  • Loading branch information
monoxgas authored Sep 13, 2016
1 parent 5e2200b commit 5ac6c91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Privesc/PowerUp.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1404,7 +1404,7 @@ function Test-ServiceDaclPermission {
else {
ForEach($TargetPermission in $TargetPermissions) {
# check permissions || style
if (($ServiceDacl.AccessRights -band $AccessMask[$TargetPermission]) -eq $AccessMask[$TargetPermission]) {
if (($ServiceDacl.AceType -eq 'AccessAllowed') -and ($ServiceDacl.AccessRights -band $AccessMask[$TargetPermission]) -eq $AccessMask[$TargetPermission]) {
Write-Verbose "Current user has '$TargetPermission' for $IndividualService"
$TargetService
break
Expand Down

0 comments on commit 5ac6c91

Please sign in to comment.