hashcat Forum
What's the point of a Mask? - Printable Version

+- hashcat Forum (https://hashcat.net/forum)
+-- Forum: Developer (https://hashcat.net/forum/forum-39.html)
+--- Forum: hashcat (https://hashcat.net/forum/forum-40.html)
+--- Thread: What's the point of a Mask? (/thread-11065.html)



What's the point of a Mask? - wifiguy - 10-15-2022

Here is my current command which is going to try crack a password that is numbers only, with increments starting from digits to 15 digits. At the end I have this mask of 15 characters ?d?d?d?d?d?d?d?d?d?d?d?d?d?d?d?d?d?d is it even necessary to add this to the end? If so, why? The increment of up to 15 characters is all it needs then why I have to add the mask on the end too? 


hashcat.exe -m 22000 hash.22000 -a 3 --increment --increment-min 8 --increment-max 15 -1 ?d  ?d?d?d?d?d?d?d?d?d?d?d?d?d?d?d?d?d?d


RE: What's the point of a Mask? - Banaanhangwagen - 10-15-2022

You use the attack-mode "-a 3", which expects a mask.
You specify your mask by typing 18 times ?d in your command, so you give the instruction to Hashcat to use a 18-long-digits mask.
Now, since you only want to try from 8 till 15 digits without each time manually needing to change the command, one can use the "--increment" with min and a max.

Some suggestions to clean-up your command:
- why do you use the custom mask "-1 ?d"; it's pointless because your mask does not contain ?1 but only ?d
- hashcat rejects automatically for -m 22000 everything below 8 char; so the increment-min is not necessary

This would be my suggestion in order to crack from 8 till 15 chars:
Code:
hashcat.exe -m 22000 hash.22000 -a 3 ?d?d?d?d?d?d?d?d?d?d?d?d?d?d?d -i



RE: What's the point of a Mask? - wifiguy - 10-17-2022

(10-15-2022, 12:15 PM)Banaanhangwagen Wrote: You use the attack-mode "-a 3", which expects a mask.
You specify your mask by typing 18 times ?d in your command, so you give the instruction to Hashcat to use a 18-long-digits mask.
Now, since you only want to try from 8 till 15 digits without each time manually needing to change the command, one can use the "--increment" with min and a max.

Some suggestions to clean-up your command:
- why do you use the custom mask "-1 ?d"; it's pointless because your mask does not contain ?1 but only ?d
- hashcat rejects automatically for -m 22000 everything below 8 char; so the increment-min is not necessary

This would be my suggestion in order to crack from 8 till 15 chars:
Code:
hashcat.exe -m 22000 hash.22000 -a 3 ?d?d?d?d?d?d?d?d?d?d?d?d?d?d?d -i

adding ?1 in your mask means it can be any character right? uppercase, lowercase, number, special characters? And ?d is digits only right?

If say the password is in this format: K8f3!fAh@3
then shouldn't I set my mask to:
?1?1?1?1?1?1?1?1?1?1