hashcat Forum
Should I be using a rule instead? - Printable Version

+- hashcat Forum (https://hashcat.net/forum)
+-- Forum: Support (https://hashcat.net/forum/forum-3.html)
+--- Forum: hashcat-utils, maskprocessor, statsprocessor, md5stress, wikistrip (https://hashcat.net/forum/forum-28.html)
+--- Thread: Should I be using a rule instead? (/thread-8667.html)



Should I be using a rule instead? - hack_papi - 09-25-2019

Hey all,
I am trying to write a mask of specific length such that involves a possible digit appended similar to this '?l?l?l?l?l?l?d' but a bit more complex, the thing is I would also like all entries without the digit to be brute forced too. Should I just write two separate masks:
Code:
?l?l?l?l?l?l

?l?l?l?l?l?l?d
or is there a way to accomplish this with just a single mask? I know that you can create a custom value character -1 ?l?d but the length of letters needs to be the same. Thank you.


RE: Should I be using a rule instead? - royce - 09-25-2019

There's no way for a single mask to express optional characters (that I'm aware of).

But if you pass a file containing the masks, they are processed in succession very quickly.


RE: Should I be using a rule instead? - philsmd - 09-25-2019

Code:
hashcat -m 0 -a 3 -w 3 --increment --increment-min 6 hash.txt ?l?l?l?l?l?l?d



RE: Should I be using a rule instead? - royce - 09-25-2019

Good point! True for this particular case, but not the more general case. Tongue Wink