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 19:40:03 +0200
From: magnum <>
Subject: User-defined character class  (was: "valid character" class)

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
0 = áóúéíý
1 = €£$€¥
7 = [0-9a-fA-F]


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


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.