~/spraying-and-defaults

Spraying and Defaults

CPTS Notes2 min read

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 hit
kerbrute 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 pair

Default credentials

Products ship with known credentials, and admins forget to change them. Try them before any brute force:

pip3 install defaultcreds-cheat-sheet
creds search linksys # known defaults for a product or vendor

Product 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.