Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 10 Aug 2011 14:24:34 -0400
From: Chao Mu <>
Subject: Re: User-defined character class (was: "valid character" class)

I love the idea of supporting user defined character classes. It would
definitely cut out a fair amount of clutter from my rules!

> # A user defined character class is named with a
> # single digit, ie. 0..9
Great. Keeping strictly to digits (that is to say, specifying an
unused domain) would prevent collisions with current and/or future
"built-in" classes

On Wed, Aug 10, 2011 at 1:40 PM, magnum <> wrote:
> On 2011-08-10 05:27, Solar Designer wrote:
>>> Do you mean user-defined as in john.conf, so eg. a ?2 class would
>>> correspond to characters defined in some section in the config file?
>> Yes.  Maybe even right in the rule, although then we'd want to split
>> processing of each rule into two parts (some of it could be precomputed).
> It's a cool idea. If going for the first alternative, would this be fine for
> john.conf?
> # A user defined character class is named with a
> # single digit, ie. 0..9
> [UserClasses]
> 0 = áóúéíý
> 1 = €£$€¥
> 7 = [0-9a-fA-F]
> [List.Rules.Example]
> %4?7Ap"[\\0]x"
> Naturally, ?7 would match any of 0123456789abcdefABCDEF. The brackets are
> not really needed for parsing but it may be more logical to the user if it's
> close to the rules pp syntax.
> Should the rules engine 'die' if an undefined class is used? I think so.
> I'm not sure that example rule would do exactly what I intended, lol
> magnum

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.