hashcat Forum
rule creation with special characters (utf8 issue?) - 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: rule creation with special characters (utf8 issue?) (/thread-8800.html)



rule creation with special characters (utf8 issue?) - Scriptmonkey_ - 11-29-2019

Trying to get a custom rule working for cracking some longer passwords that we've noticed a pattern in:

Namely: word digit digit digit special word-repeated

so came up with the series of rules that look similar to: 


Code:
$1$2$3$£d]]]]

Problem is I'm over in the UK. We use £ and sometimes the euro symbol too. So when trying to use this rule you get:

Code:
Skipping invalid or unsupported rule in file test.rule on line 1: $1$2$3$£d]]]]

How do you utilise utf-8 characters as part of your rule construction?


RE: rule creation with special characters (utf8 issue?) - philsmd - 11-29-2019

Hashcat added support for hexadecimal notation in rules too (see https://github.com/hashcat/hashcat/commit/b88c956d9754a56a99f45ebfa95767b65f8bf4eb)

for instance if the utf 8 character £ (\xc2\xa3) has to be added, it would be just be a rule adding 2 bytes like this:

Code:
$\xc2 $\xa3



RE: rule creation with special characters (utf8 issue?) - Scriptmonkey_ - 11-29-2019

(11-29-2019, 03:30 PM)philsmd Wrote: Hashcat added support for hexadecimal notation in rules too (see https://github.com/hashcat/hashcat/commit/b88c956d9754a56a99f45ebfa95767b65f8bf4eb)

for instance if the utf 8 character £ (\xc2\xa3) has to be added, it would be just be a rule adding 2 bytes like this:

Code:
$\xc2 $\xa3

Ah once again you've come to the rescue. Thank you again! I spent ages trying to find something for rule specific creation but just couldn't figure it out because of all the historical hashcat info about masks. Thanks!