Posts: 621
Threads: 57
Joined: May 2010
11-20-2012, 03:58 PM
(This post was last modified: 11-20-2012, 03:59 PM by mastercracker.)
Hi Atom. Here's an idea that could be pretty interesting. How about the possibility to modify the rejector (for length) as a parameter? Something like -x >12 or -x <8. This could be really helpful in many situation especially if you do combinatory attack and you want to focus on a certain keyspace. You could reject all the password combinations less than 12 characters and hash only the relevant ones. This would speed up some attacks that would be extremely long otherwise.
Posts: 5,185
Threads: 230
Joined: Apr 2010
That should be already possible with rules:
Quote:<N reject the word unless it is less than N characters long
>N reject the word unless it is greater than N characters long
'N truncate the word at length N
Posts: 621
Threads: 57
Joined: May 2010
I know the 'N rule but since when there is the <N and >N rules? It's not in the wiki at the very least.
Posts: 5,185
Threads: 230
Joined: Apr 2010
11-20-2012, 09:17 PM
(This post was last modified: 11-20-2012, 09:19 PM by atom.)
Yeah right, its not in the docs. I just forgot to mention them. But they are inside since ever, since the first hashcat version. The following rules are supported:
#define RULE_OP_REJECT_LESS '<'
#define RULE_OP_REJECT_GREATER '>'
#define RULE_OP_REJECT_CONTAIN '!'
#define RULE_OP_REJECT_NOT_CONTAIN '/'
#define RULE_OP_REJECT_EQUAL_FIRST '('
#define RULE_OP_REJECT_EQUAL_LAST ')'
#define RULE_OP_REJECT_EQUAL_AT '='
#define RULE_OP_REJECT_CONTAINS '%'
#define RULE_OP_REJECT_MEMORY 'Q'
Posts: 414
Threads: 14
Joined: Mar 2012
Posts: 2,936
Threads: 12
Joined: May 2012
They are JTR compatible rules.
Posts: 621
Threads: 57
Joined: May 2010
(11-20-2012, 09:17 PM)atom Wrote: Yeah right, its not in the docs. I just forgot to mention them. But they are inside since ever, since the first hashcat version. The following rules are supported:
#define RULE_OP_REJECT_LESS '<'
#define RULE_OP_REJECT_GREATER '>'
#define RULE_OP_REJECT_CONTAIN '!'
#define RULE_OP_REJECT_NOT_CONTAIN '/'
#define RULE_OP_REJECT_EQUAL_FIRST '('
#define RULE_OP_REJECT_EQUAL_LAST ')'
#define RULE_OP_REJECT_EQUAL_AT '='
#define RULE_OP_REJECT_CONTAINS '%'
#define RULE_OP_REJECT_MEMORY 'Q'
Are they available only in Hashcat or also in Oclhashcat-plus?
Posts: 5,185
Threads: 230
Joined: Apr 2010
They are available for CPU based rules (makes no sense for fast GPU engine). That is
1. hashcat cpu
2. oclHashcat-plus by using -j and -k
3. oclHashcat-plus if the algorithm is a slow one. That is 400, 500, 1600, 2100 or 2500.
Posts: 621
Threads: 57
Joined: May 2010
(11-21-2012, 11:05 AM)atom Wrote: They are available for CPU based rules (makes no sense for fast GPU engine). That is
1. hashcat cpu
2. oclHashcat-plus by using -j and -k
3. oclHashcat-plus if the algorithm is a slow one. That is 400, 500, 1600, 2100 or 2500.
Thanks. I will test those when I have a couple hours free time in front of me.