Fixed to perform sleep on every ticket request instead of only when a ticket request was succesful
parent
0279541337
commit
def50cdb66
|
@ -659,12 +659,11 @@ Outputs a custom object containing the SamAccountName, ServicePrincipalName, and
|
||||||
$Out | Add-Member Noteproperty 'ServicePrincipalName' $Ticket.ServicePrincipalName
|
$Out | Add-Member Noteproperty 'ServicePrincipalName' $Ticket.ServicePrincipalName
|
||||||
$Out.PSObject.TypeNames.Insert(0, 'PowerView.SPNTicket')
|
$Out.PSObject.TypeNames.Insert(0, 'PowerView.SPNTicket')
|
||||||
Write-Output $Out
|
Write-Output $Out
|
||||||
|
}
|
||||||
# sleep for our semi-randomized interval
|
# sleep for our semi-randomized interval
|
||||||
Start-Sleep -Seconds $RandNo.Next((1-$Jitter)*$Delay, (1+$Jitter)*$Delay)
|
Start-Sleep -Seconds $RandNo.Next((1-$Jitter)*$Delay, (1+$Jitter)*$Delay)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
END {
|
END {
|
||||||
if ($LogonToken) {
|
if ($LogonToken) {
|
||||||
|
|
Loading…
Reference in New Issue