Please note, this is a STATIC archive of website hashcat.net from October 2020, cach3.com does not collect or store any user information, there is no "phishing" involved.

Custom charset with mask files
#1
Hi,

How do I provide my custom charsets when using mask file?

For example, I'm able to crack my UTF-8 password this way:

Code:
hashcat64.exe -m 0 md5.txt -w 3 -O -a 3 -1 charsets\my1.hcchr -2 charsets\my2.hcchr -3 ?l ?1?2?1?2?3?3?3

But how do I put such mask into a mask file?
When I try:

Code:
hashcat64.exe -m 0 md5.txt -w 3 -O -a 3 -1 charsets\my1.hcchr -2 charsets\my2.hcchr -3 ?l test.hcmask

and put into test.hcmask

Code:
?1?2?1?2?3?3?3

I get error: Custom-charset 1 is undefined

If I try to put my custom charsets into mask file, like this:

Code:
charsets\my1.hcchr,charsets\my2.hcchr,?l,?1?2?1?2?3?3?3

And run like this:

Code:
hashcat64.exe -m 0 md5.txt -w 3 -O -a 3 test.hcmask

Then password is not found

Can you please suggest how to pass custom charset into a mask file
Thanks!
Reply
#2
I found 2 ways of doing this, you can ether pipe them or place them as hexchars in the attack command.
Both attacks have severe impact on performance.
2 example attack commands can be seen in my post: https://hashcat.net/forum/thread-7683.html
Reply
#3
(01-18-2019, 05:21 PM)Toetje Wrote: I found 2 ways of doing this, you can ether pipe them or place them as hexchars in the attack command.
Both attacks have severe impact on performance.
2 example attack commands can be seen in my post: https://hashcat.net/forum/thread-7683.html

Yes, hex chars did the trick, thanks. And yes, I have the same performance penalty as in your case - some generated unicode symbols are invalid. But it is still better than generating huge dictionary manually with a python script :/
Reply
#4
@swing
did you try putting my1.hcchr and my2.hcchr into the root directory of hashcat and use a mask like this:

my1.hcchr,my2.hcchr,?l,?1?2?1?2?3?3?3

I think it's just a matter of if the file is found correctly. also note that \ is a special character if it comes to hcmask syntax, so maybe you need to use \\ instead.

anyways, you could also put/copy the content of the files from my1.hcchr directly into the hcmask file or as suggested use --hex-charset
Reply