Spraying and Defaults
CPTS Notes
- Foundations
- Enumeration with Nmap
- Passwords
- Wordlists
- Cracking
- Protected Files
- Spraying and Defaults
- Hunting (Windows)
- Hunting (Linux)
- Hunting (Shares)
- Hunting (Traffic)
- Looting (Windows)
- Looting (Linux)
- File Services
- FTP
- SMB
- NFS
- Rsync
- Network
- DNS
- SNMP
- SMTP
- Mail Retrieval
- Cloud Mail
- Databases
- MySQL
- MSSQL
- Remote Access
- SSH
- R-Services
- RDP
- WinRM
- WMI
- Linux
- Reading Files
- Editing Files
- Searching Files
- Requests and Transfer
- Local Enumeration
- Privesc Primer
- File Transfer
- Choosing a Method
- Serving Files
- Windows Transfers
- Linux Transfers
- Code One-Liners
- Session Transfers
- Protected Transfers
- Detection & Evasion
- Windows
- Reading Files
- Editing Files
- Searching Files
- Requests and Transfer
- Local Enumeration
- Privesc Primer
- Reference
- Port References
- DNS Resolution
- The Mail Pipeline
- SMB & NetBIOS
TL;DR
Three online attacks that try credentials against a live service before you resort to brute forcing a full list. Spraying reuses one password across many users. Stuffing replays leaked user-password pairs. Defaults tries the credentials a product shipped with. All three beat brute force because the guess count stays low, so lockout rarely trips.
Cracking a captured hash offline is Cracking. This is the online side.
Password spraying
One password, every user. It wins where accounts share a default or seasonal password
(ChangeMe123!, Welcome1, Autumn2025!). Low and slow beats lockout: one password per round,
pause between rounds, and read the lockout policy first.
nxc smb 10.10.38.0/24 -u users.txt -p 'ChangeMe123!' --continue-on-success # spray a subnet, keep going after a hitkerbrute passwordspray -d domain.local users.txt 'ChangeMe123!' # AD pre-auth, quieter than SMB--continue-on-success keeps spraying after the first hit. Kerbrute sprays Kerberos pre-auth, which
is stealthier and skips SMB logging.
Credential stuffing
You replay leaked user:password pairs against another service, because people reuse passwords. Each
line pairs a user with a password, so hydra reads them whole with -C:
hydra -C user_pass.list ssh://$TARGET # each line is user:password, tried as a pairDefault credentials
Products ship with known credentials, and admins forget to change them. Try them before any brute force:
pip3 install defaultcreds-cheat-sheetcreds search linksys # known defaults for a product or vendorProduct documentation and router default-password lists are the other source. Build the hits into a
user:password list and feed it to the stuffing command above.
Spraying, stuffing, and defaults are the low-noise credential attacks: few guesses, high hit rate on bad password hygiene. Brute forcing a full list comes only after these fail.