PT0-002 · Question #507
A penetration tester wants to crack MD5 hashes more quickly. The tester knows that the first part of the password is Winter followed by four digits and a special character at the end. Which of the…
The correct answer is B. hashcat hash.txt -m 0 -a 6 seasons.txt ?d?d?d?d?s. The correct Hashcat command uses mode 0 for MD5, attack mode 6 for a hybrid wordlist and mask attack, and specifies the known 'Winter' prefix followed by four digits and a special character using '?d?d?d?d?s' mask.
Question
A penetration tester wants to crack MD5 hashes more quickly. The tester knows that the first part of the password is Winter followed by four digits and a special character at the end. Which of the following commands should the tester use?
Options
- Ajohn hash.txt --format=MD5 --wordlist=seasons.txt --fork=8 --rules=base64
- Bhashcat hash.txt -m 0 -a 6 seasons.txt ?d?d?d?d?s
- Cjohn hash.txt --format=Raw-MD5 --rules=jumbo --wordlist=seasons.txt
- Dhashcat hahs.txt -m 500 -a 7 --force -) -w 4 --opencl-device-types 1,2
How the community answered
(57 responses)- A16% (9)
- B72% (41)
- C9% (5)
- D4% (2)
Why each option
The correct Hashcat command uses mode 0 for MD5, attack mode 6 for a hybrid wordlist and mask attack, and specifies the known 'Winter' prefix followed by four digits and a special character using '?d?d?d?d?s' mask.
This John the Ripper command uses '--wordlist' and 'rules=base64', which doesn't directly implement the "Winter" prefix followed by four digits and a special character as a mask.
This Hashcat command correctly specifies the MD5 hash type ('-m 0'), the attack mode as a hybrid attack combining a wordlist and a mask ('-a 6'), and the mask 'Winter?d?d?d?d?s'. The 'Winter' prefix comes from the 'seasons.txt' (assuming 'seasons.txt' contains 'Winter'), and '?d?d?d?d?s' specifies four digits followed by a special character, matching the known password structure.
This John the Ripper command uses '--format=Raw-MD5' and '--rules=jumbo' but relies on a wordlist rather than a precise mask-based approach that combines a known prefix with specific character types.
This Hashcat command uses '-m 500' (which is for MD5crypt, not plain MD5), '-a 7' (for a bruteforce mask attack, which doesn't use a wordlist as a base), and the mask '-)' is incorrect and doesn't match the required structure.
Concept tested: Hash cracking with Hashcat
Source: https://hashcat.net/wiki/doku.php?id=hashcat
Topics
Community Discussion
No community discussion yet for this question.