Fixed to perform sleep on every ticket request instead of only when a ticket request was succesful

3.0-Beta
Sander 2018-03-06 20:29:11 +00:00
parent 0279541337
commit def50cdb66
1 changed files with 2 additions and 3 deletions

View File

@ -659,12 +659,11 @@ Outputs a custom object containing the SamAccountName, ServicePrincipalName, and
$Out | Add-Member Noteproperty 'ServicePrincipalName' $Ticket.ServicePrincipalName
$Out.PSObject.TypeNames.Insert(0, 'PowerView.SPNTicket')
Write-Output $Out
}
# sleep for our semi-randomized interval
Start-Sleep -Seconds $RandNo.Next((1-$Jitter)*$Delay, (1+$Jitter)*$Delay)
}
}
}
END {
if ($LogonToken) {