hashcat Forum
Mask Attacks with Mask File and Custom Charset - Printable Version

+- hashcat Forum (https://hashcat.net/forum)
+-- Forum: Support (https://hashcat.net/forum/forum-3.html)
+--- Forum: hashcat (https://hashcat.net/forum/forum-45.html)
+--- Thread: Mask Attacks with Mask File and Custom Charset (/thread-8281.html)



Mask Attacks with Mask File and Custom Charset - TopGun - 04-03-2019

Hello everyone,
i know where the wiki is https://hashcat.net/wiki/doku.php?id=mask_attack but I am struggling to get a custom charset to work with a mask file.
Below hcmask contains several masks. For example:
?l?1?d

I used:

Code:
./hashcat64.bin -m 0 -1 charsets/special/German/de_ISO-8859-1-special.hcchr -2 ?l?u?d?1 -a 3 hash masks/rockyou-1-60.german.hcmask 

./hashcat64.bin -m 0 -1 charsets/special/German/de_ISO-8859-1-special.hcchr -2 ?l?u?d?1 -a 3 hash [?1]masks/rockyou-1-60.german.hcmask 

./hashcat64.bin -m 0 -1 charsets/special/German/de_ISO-8859-1-special.hcchr -2 ?l?u?d?1 -a 3 hash [?1],masks/rockyou-1-60.german.hcmask 

./hashcat64.bin -m 0 -1 charsets/special/German/de_ISO-8859-1-special.hcchr -2 ?l?u?d?1 -a 3 hash [?1,]masks/rockyou-1-60.german.hcmask 

./hashcat64.bin -m 0 -1 charsets/special/German/de_ISO-8859-1-special.hcchr -2 ?l?u?d?1 -a 3 hash ?1,masks/rockyou-1-60.german.hcmask 

./hashcat64.bin -m 0 -1 charsets/special/German/de_ISO-8859-1-special.hcchr -2 ?l?u?d?1 -a 3 hash ?1masks/rockyou-1-60.german.hcmask 

./hashcat64.bin -m 0 -a 3 hash [charsets/special/German/de_ISO-8859-1-special.hcchr]masks/rockyou-1-60.german.hcmask 

./hashcat64.bin -m 0 -a 3 hash [charsets/special/German/de_ISO-8859-1-special.hcchr],masks/rockyou-1-60.german.hcmask 

./hashcat64.bin -m 0 -a 3 hash [charsets/special/German/de_ISO-8859-1-special.hcchr,]masks/rockyou-1-60.german.hcmask 


none of which works. The wiki is not being clear where to put the comma and the [], so i tried basically every combination i could think of.
Could anybody provide me a simple usage example for pipeing the first custom charset to the maskfile?
Thank you.


RE: Mask Attacks with Mask File and Custom Charset - philsmd - 04-03-2019

as the two guides from https://hashcat.net/wiki/?id=mask_attack#hashcat_mask_files and https://hashcat.net/faq#what_is_a_hashcat_mask_file already emphasize, you must specify all the hcchr and custom charset directly within the mask file (.hcmask)

my.hcmask
Code:
charsets/special/German/de_ISO-8859-1-special.hcchr,?l?u?d?1,?a?a?a?a?2?2?2?2

Code:
./hashcat64.bin -m 0 -a 3 hash my.hcmask



RE: Mask Attacks with Mask File and Custom Charset - TopGun - 04-03-2019

many thanks Smile