Custom charset with mask files - 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: Custom charset with mask files (/thread-8079.html) |
Custom charset with mask files - swing - 01-18-2019 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! RE: Custom charset with mask files - Toetje - 01-18-2019 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 RE: Custom charset with mask files - swing - 01-18-2019 (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. 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 :/ RE: Custom charset with mask files - philsmd - 01-18-2019 @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 |