Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sun, 7 Sep 2014 10:01:06 +0400
From: Solar Designer <>
Subject: Re: Desiring a List.External customized to my needs

On Sat, Sep 06, 2014 at 07:20:56AM -0500, Xt Xt wrote:
> 1) The first character is an upper-case letter or number.
> 2) The following characters, until maxlength - 2 to maxlength, will be
> lowercase letters
> 3) Characters in position of maxlength-3 to maxlength will be numbers or
> 'special' characters like !, $, @, #, *, etc; the generator will try first
> with rules #1 and #2 and maxlength being the special characters or number,
> then it will try with maxlength-1 to maxlength (the last 2 characters)
> being special or number, to maxlength-2 to maxlength.
> Is this difficult to write? I do program in C. Some guidance or an example
> of something like this would help me greatly.

In terms of external modes, it'd be easiest for you to start with the
[List.External:KnownForce] example in the default john.conf, and
customize its init() function (and only it) in four(?) different ways
(according to the different possible lengths of the trailing special
characters portion).  You could then proceed to turn those into just one
external mode, but I think this is not necessary.

Also, please note that recent bleeding-jumbo supports "mask mode", where
you can define patterns like this on the command line.  You'd need to
invoke it four(?) times, for different possible lengths of the trailing
special characters portion, or even more if the total length should also
be changing.  For example:

$ ./john --mask='[A-Z0-9]?l?l?l?l?s' --stdout | head
Press 'q' or Ctrl-C to abort, almost any other key for status
$ ./john --mask='[A-Z0-9]?l?l?l?l?s?s' --stdout > /dev/null
Press 'q' or Ctrl-C to abort, almost any other key for status
9981553p 0:00:00:02 0.06% (ETA: 10:58:18) 4869Kp/s Aanon^)
15115504p 0:00:00:03 0.08% (ETA: 10:57:44) 4955Kp/s Aaunw%<
20242297p 0:00:00:04 0.11% (ETA: 10:57:29) 4998Kp/s Abbmx}|
30496063p 0:00:00:06 0.17% (ETA: 10:57:13) 5040Kp/s Abplb\#
51015152p 0:00:00:10 0.28% (ETA: 10:57:00) 5076Kp/s Acrht`@
61992213p 0:00:00:12 0.35% (ETA: 10:56:16) 5068Kp/s Adgfl^{
Session aborted


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.