SafeSpray
A simple smb login password spraying tool written in go that aims to prevent account lockouts.
The difference between this tool and others is that it will only perform
password spraying on accounts that meet the following criteria:
- has a badpwdcount equal to 0
- has a username that is present in the provided userlist flag
- does not end in $ (computer accounts usually though this should not ever be hit since it only queries user objects)
- is not an account in ignoreArray (see isIgnorable function)
Also, to get this information it will query all ldap users at the time the password
spray is performed, therefore a valid user account is needed (in most environments).
Obviously this will not be applicable to all types of engagements, but it should work
great on internal (non-stealth) pentesting engagements.
This way you really shouldn't need to worry about the password policy as long as
it allows more than 1 failed login attempt.
All this said, test it on your own first, I am not responsible for account lockouts.