Special Character for hashcat rules
#1
Hello,

I would like to create a hashcat rule that appends for example "_01" to the password. If I create for example a rule file and add "$_01", I receive the following error message

Code:
Skipping invalid or unsupported rule in file hashcat_

I assume that the issue is caused by the "_" because it might be interpreted as hashcat internal character. How do I escape such a character ? Unfortunately I didn't find any information to solve the question.

BR Martin
Reply
#2
Code:
$_ $0 $1



explanation:
to append more than one character, you need to apply more than one rule (https://hashcat.net/wiki/?id=rule_based_attack)
Reply
#3
(12-13-2019, 06:54 PM)philsmd Wrote:
Code:
$_ $0 $1

Thank you very much for you help.
My understanding was that "$" represents the password itself. This would means that if I use the Password "example" the rule "$_ $0 $1" would create the Password "example_ example0 example1". This is what I understood from the wiki page multi rule example.

Am I wrong ?

BR Martin
Reply
#4
yeah, you are completely wrong.

there is a whole table of "functions" (https://hashcat.net/wiki/?id=rule_based_..._functions) and $, ^, T, D, O, x etc are not referring to the password at all (none of them "are the password" itself or referring directly to it)... you are probably just "thinking" about it might work like you just described, but the whole page literally says that these are all rule functions.
Reply
#5
Ok, I will re-read this page because after I read it I came to this (wrong) conclusion.

Thank you very much for your comments and your help.
Reply