Please note, this is a STATIC archive of website hashcat.net from 08 Oct 2020, cach3.com does not collect or store any user information, there is no "phishing" involved.

hashcat Forum

Full Version: Question about rules.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys,

I know that I could execute oclHashcat multiple times with different rules, however, suppose that I want to put together a single rule file with multiple rules, what is the proper way to do it?

I'm curious if rules are created per line or not. I was thinking that the proper way should be cat rule1 rule2 rule 3 |sort|uniq > final-rule.txt

This would avoid duplicated rules, however I'm concerned if it will break the logic of the rules since I don't know if they have multiple lines.

Is there a proper way to do it? Or there is no easy solution?

Thanks.
Rules are always single-lined. However, sort -u might not filter all duplicates because there are many rules that do the same as other rules and there might be spaces in the rules which are ignored by the parser (but not all spaces, so you cannot simply remove all). eg "c" and "lT0" do the exact same thing.
Hi undeath,

Good to know that at least it will not break the logic. Do you know any tool that parse it and generate expected result??

Thanks.

Best regards.
There should be a parser as part of hashcat-utils, the rest is probably up to you. I'm not aware of any such tool you're looking for.