Rule-based Attack
#1
I'd like to carry out a rule-based attack where the password should have:
- capitalise first character
- append from one to four digits to the end
- append a special character and from one to four digits to the end.

As regular expression I could use this pattern:


Code:
[[:upper:]][[:alpha:]]*+[[:punct:]]*+[[:digit:]]*

that grab words such as:


Code:
Palermo01 Palermo.01

To perform this search by Hashcat I tried to create a file called “myrules” that contains the following rules:
Code:
#Capitalise first character c #Append a digit to the end $?d #Append a special character and a digit to the end $?s?d #Add two digits to the end $?d?d #Append a special character and two digits to the end $?s?d?d #Append three digits to the end $?d?d?d #Append a special character and three digits to the end $?s?d?d?d #Append four digits to the end $?d?d?d?d #Append a special character and four digits to the end $?s?d?d?d?d

But according hashcat these rules are not correct:

Code:
hashcat -m 0 Palermo-01_md5.txt rockyou.txt -r myrules --debug-mode=1 --debug-file=matched.rule <snip> Skipping invalid or unsupported rule in file myrules on line 8: $?d?d Skipping invalid or unsupported rule in file myrules on line 10: $?s?d?d Skipping invalid or unsupported rule in file myrules on line 12: $?d?d?d Skipping invalid or unsupported rule in file myrules on line 14: $?s?d?d?d Skipping invalid or unsupported rule in file myrules on line 16: $?d?d?d?d Skipping invalid or unsupported rule in file myrules on line 18: $?s?d?d?d?d <snip>
...


Messages In This Thread
Rule-based Attack - by peppespe - 06-25-2018, 06:29 PM
RE: Rule-based Attack - by undeath - 06-25-2018, 07:03 PM
RE: Rule-based Attack - by peppespe - 06-26-2018, 06:30 PM
RE: Rule-based Attack - by lehrling - 06-26-2018, 04:02 PM
RE: Rule-based Attack - by undeath - 06-26-2018, 07:53 PM
RE: Rule-based Attack - by peppespe - 06-27-2018, 10:38 AM
RE: Rule-based Attack - by plaverty9 - 06-27-2018, 05:10 PM
RE: Rule-based Attack - by peppespe - 06-27-2018, 05:51 PM
RE: Rule-based Attack - by undeath - 06-27-2018, 05:12 PM
RE: Rule-based Attack - by undeath - 06-27-2018, 05:54 PM