Skip to content

Commit

Permalink
Update DomainPasswordSpray.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
pocahon authored Feb 8, 2023
1 parent 7e72587 commit f99fde9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions DomainPasswordSpray.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,10 @@ function Invoke-SpraySinglePassword
Function Get-ObservationWindowForLockouts($Domain)
{
# Get the account lockout observation window to prevent more than one password spray during the observation period.
if ($Domain.Properties -eq $null -or $Domain.Properties['lockoutObservationWindow'] -eq $null) {
return $null
}

$lockoutObservationWindowAttribute = $Domain.Properties['lockoutObservationWindow']
$observationWindowInSeconds = $Domain.ConvertLargeIntegerToInt64($lockoutObservationWindowAttribute.Value) / -60000000

Expand Down

0 comments on commit f99fde9

Please sign in to comment.