Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script fails while using --verbose #37

Open
ala76nl opened this issue Dec 21, 2022 · 0 comments
Open

Script fails while using --verbose #37

ala76nl opened this issue Dec 21, 2022 · 0 comments

Comments

@ala76nl
Copy link

ala76nl commented Dec 21, 2022

] Using .\north.users.txt as userlist to spray with
[
] Warning: Users will not be checked for lockout threshold.
Cannot index into a null array.
At C:\ad\tools\DomainPasswordSpray.ps1:569 char:5

  • $lockObservationWindow_attr = $DomainEntry.Properties['lockoutObs ...
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : NullArray

Method invocation failed because [System.String] does not contain a method named 'ConvertLargeIntegerToInt64'.
At C:\ad\tools\DomainPasswordSpray.ps1:570 char:5

  • $observation_window = $DomainEntry.ConvertLargeIntegerToInt64($lo ...
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : MethodNotFound

[] The domain password policy observation window is set to minutes.
[
] Setting a minute wait in between sprays.
[] Password spraying has begun with 1 passwords
[
] This might take a while depending on the total number of users
[] Now trying password --verbose against 15 users. Current time is 12:34 AM
[
] Password spraying is complete
[*] Any passwords that were successfully sprayed have been output to ./north-sprayed-creds.txt

I also had to change a line with write-host $message: to $message :

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant