A tester learns that a client's passwords are eight characters long, start with one capital letter, and end with two digits. Which attack BEST uses this knowledge to cut cracking time?
Show the answer
Correct answerB. Mask attack
AWhy not this: A dictionary attack tries whole wordlist entries and does not encode a positional pattern like capital first, digits last.
BWhy this is right: A mask fixes the character class at each position, so only candidates matching the known pattern are generated.
CWhy not this: Password spraying tries a few passwords across many accounts online; it does not generate candidates from a pattern.
DWhy not this: Brute force tries all characters in every position, ignoring the known structure and taking far longer.
A mask attack defines the character set for each position (for example ?u?l?l?l?l?l?d?d in hashcat), so only candidates matching the known pattern are tried. A plain brute-force attack tries every combination in every position and wastes time on candidates that cannot match.