TheSprayer is a cross-platform tool designed to help penetration testers spray passwords against an Active Directory domain without locking out accounts.
Several helpful features are enabled by default such as user auto-discovery, current user discovery and a local sqlite db to track sprayed passwords.
To run it, you will need to update the parameters. I've covered off a bunch of common use cases below, you can mix and match too! 🔥
TheSprayer.exe -p Passwords.txt
TheSprayer.exe -u Users.txt
TheSprayer.exe -u DomainAdmin -p DefinitelyValidPassword
TheSprayer.exe -U Administrator -P Password1 -p Passwords.txt
TheSprayer.exe -d windomain.local -s 192.168.38.102 -p Passwords.txt
TheSprayer.exe -d windomain.local -s 192.168.38.102 -U Administrator -P Password1 -p Passwords.txt
TheSprayer.exe -p Passwords.txt -f
Note: This will spray even if it's detected as unsafe, use at your own risk!
TheSprayer.exe --Policy
TheSprayer.exe --Users
TheSprayer.exe --UsersCsv
-d, --Domain Required. The Active Directory domain (e.g. windomain.local)
-s, --Server Required. The IP or hostname of a domain controller
-U, --Username Required. Username for domain user to enumerate policies
-P, --Password Required. Password for domain user to enumerate policies
-u, --UserList A file containing a line delimited list of usernames or a single user to try
-p, --PasswordList Required. A file containing a line delimited list of passwords or a single password to try
-o, --OutFile File to output found credentials
-a, --AttemptsRemaining Amount of attempts to leave per-account before lockout (Default: 2)
-c, --Continuous Continuously spray credentials, waiting between attempts to prevent lockout.
-n, --NoDb Disable using a DB to store previously sprayed creds.
--Users Outputs a list of all users to the specified file
--UsersCsv Outputs a list of all users along with their domain info to the specified CSV file
--Policy Outputs the password policy(ies) to the terminal
-f, --Force Force authentication attempts, even users close to lockout
--help Display this help screen.