[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 12 Sep 2011 10:59:40 +0400
From: Solar Designer <solar@...nwall.com>
To: john-users@...ts.openwall.com
Subject: Re: Toggle every possible case
On Mon, Sep 12, 2011 at 08:25:23AM +0200, Maximilian Melcher wrote:
> I am trying to create a rule that toggles all combinations for a word eg.
> for aa (aa; Aa; aA; AA).
>
> I tried it with:
> -: T[0-7] T[0-7] T[0-7] T[0-7] T[0-7] T[0-7] T[0-7] T[0-7]
>
> But that blows up to 16Mio rules - whats wrong ? :)
That line produces a lot of effectively duplicate rules, e.g.:
T0 T0 T0 T0 T0 T0 T0 T1
and:
T0 T0 T0 T0 T0 T0 T1 T0
will both be produced by the above ruleset line, but they're effectively
the same.
> If I am not totally mistaken for a word with 8 letters it should be 128
> combinations, right?
It should be up to 256.
This will do what you need, also trying to avoid producing duplicates
for non-purely-alphabetical strings:
[List.Rules:Wordlist]
:
-c T0 Q
-c T1 Q T[z0]
-c T2 Q T[z0] T[z1]
-c T3 Q T[z0] T[z1] T[z2]
-c T4 Q T[z0] T[z1] T[z2] T[z3]
-c T5 Q T[z0] T[z1] T[z2] T[z3] T[z4]
-c T6 Q T[z0] T[z1] T[z2] T[z3] T[z4] T[z5]
-c T7 Q T[z0] T[z1] T[z2] T[z3] T[z4] T[z5] T[z6]
Also, there are similar samples in the default john.conf in
[List.Rules:Single] and [List.Rules:NT].
In case you're wondering, Tz is effectively a no-op.
Alexander
Powered by blists - more mailing lists
Powered by Openwall GNU/*/Linux -
Powered by OpenVZ