Rule-based Attack - 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-based Attack (/thread-7608.html) |
Rule-based Attack - peppespe - 06-25-2018 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 To perform this search by Hashcat I tried to create a file called “myrules” that contains the following rules: Code: #Capitalise first character 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 RE: Rule-based Attack - undeath - 06-25-2018 You are mixing masks and rules here. That's not possible. RE: Rule-based Attack - lehrling - 06-26-2018 Each rule creates a new candidate. You need one rule that applies all of the modifications simultaneously. RE: Rule-based Attack - peppespe - 06-26-2018 (06-25-2018, 07:03 PM)undeath Wrote: You are mixing masks and rules here. That's not possible. I created a simple dictionary with one word in it (mydictionary.txt) and these 2 rule files:
Code: hashcat64.exe -r my_Upper-First-Prefix.rule my_suffix_rules.rule --stdout mydictionary.txt what am I doing wrong? RE: Rule-based Attack - undeath - 06-26-2018 First, you need -r for every rule file you specify. However, the error you got seems like a opencl problem. is hashcat generally working? RE: Rule-based Attack - peppespe - 06-27-2018 (06-26-2018, 07:53 PM)undeath Wrote: First, you need -r for every rule file you specify. However, the error you got seems like a opencl problem. is hashcat generally working? I got the same error message also with two -r Code: >hashcat64.exe -r my_Upper-First-Prefix.rule -r my_suffix_rules.rule --stdout mydictionary.txt As a rule hashcat work, even if my laptop use mainly the CPU. Code: >hashcat64.exe -b RE: Rule-based Attack - plaverty9 - 06-27-2018 To your original question: "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." Try something along the lines of: hashcat -m<value> <hash> -a3 -1 ?d?s ?u?a?a?a?a?1?1?1?1 --increment where you use as many ?a as you think are necessary, or if you know something about those characters, you can tighten that up with a smaller character set. RE: Rule-based Attack - undeath - 06-27-2018 mask attack/brute force should be your last resort, especially when you suspect the password is actually using a real word. Also that mask with --increment is going to try lots of invalid candidates. RE: Rule-based Attack - peppespe - 06-27-2018 (06-27-2018, 05:10 PM)plaverty9 Wrote: To your original question: I'd like to perform a rule-based attack because I know that my target uses generally common words (e.g. italian words, that in some occasions have the first character capitalised) followed by specific suffixes (e.g. a special character and from 2 to 4 digits). For this reason I think that a brute force attak, even if based on masks, it's not the best solution. RE: Rule-based Attack - undeath - 06-27-2018 regarding your opencl problem, I have no idea what exactly is wrong but I highly suspect something with your driver is kaput. |