Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100414231328.GA3355@openwall.com>
Date: Thu, 15 Apr 2010 03:13:28 +0400
From: Solar Designer <solar@...nwall.com>
To: john-users@...ts.openwall.com
Subject: Re: rule with multi symbols

On Wed, Apr 14, 2010 at 07:46:44PM +0200, websiteaccess@...il.com wrote:
>  how to double symbols ?
> 
>  @john@ -> @@john@@
>  !john! -> !! john!!
>  etc..

This is easy.  Prefix/suffix with single characters:

^[@!&] $\0

Prefix/suffix with duplicate characters:

A0"[@!&]\0" Az"\0\0"

assuming that you have "john", etc. in your input wordlist.  BTW, it
should be slightly quicker to have the prefix command as the first one
and the suffix command as the second one (like I specified above), not
vice versa.  Also, the single-character prefix/suffix commands may be
quicker than the string ones when you only need to prepend/append a
single character.

You could also start these lines with the "<-" rejection command in
order to avoid producing effective duplicates with some other rules (that
you likely have) for length-limited hash types.

The default "single crack" mode ruleset has these lines:

# Both prefixing and suffixing...
<- l ^[1!@...^&*\-=_+.?|:'"] $\1
<- l ^[({[<] $\p[)}\]>]

This shows how you can approach the various braces (where the closing
brace character is different from the opening one).  To prefix/suffix
with duplicate braces, you can use:

A0"[({[<]\0" Az"\p0[)}\]>]\0"

If you literally wanted a rule that would duplicate the first and the
last character of a word (whatever those characters are), then it is:

X010 Xm1z

This turns "john" into "jjohnn", and indeed it also turns "@john@" into
"@@john@@".

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.