Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20100227150855.GA16875@openwall.com>
Date: Sat, 27 Feb 2010 18:08:55 +0300
From: Solar Designer <solar@...nwall.com>
To: john-users@...ts.openwall.com
Subject: Re: wordlist with 2 words : swap words

On Mon, Feb 22, 2010 at 08:26:46PM +0300, Solar Designer wrote:
> On Sat, Feb 20, 2010 at 03:11:18PM +0100, websiteaccess@...il.com wrote:
> >  red house -> house red
> >  john good -> good john
> >  etc...
> 
> On JtR 1.7.4+, you can do this with:
> 
> [List.Rules:Wordlist]
> =[1-9A-F]  ^  X\p[2-9A-G]z0 'l
> 
> or with:
> 
> =[1-9A-F]  x\p[2-9A-G]z $  X0\1z
> 
> but these are inefficient.
> 
> Maybe I should add a "search for character and assign position to
> numeric variable" command.

In JtR 1.7.5, I've modified the following existing rule commands:

/X	reject the word unless it contains character X
/?C	reject the word unless it contains a character in class C
%NX	reject the word unless it contains at least N instances of X
%N?C	reject the word unless it contains at least N characters of class C

to set the newly-introduced numeric variable "p" to the position of the
character last found with the command.  For example, "/ " will now not
only reject the input wordlist line if it does not contain a space
character, but also set "p" to the position of the first space character
when it is present.  This variable may then be used to extract portions
of the line, such as to swap two words.  I've posted some examples here:

http://www.openwall.com/lists/john-users/2010/02/27/5

Alexander

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.