|
|
Message-ID: <20130731085505.GA27289@openwall.com>
Date: Wed, 31 Jul 2013 12:55:05 +0400
From: Solar Designer <solar@...nwall.com>
To: john-dev@...ts.openwall.com
Subject: Re: wordlist for mask mode
Sayantan,
On Wed, Jul 31, 2013 at 02:06:05PM +0530, Sayantan Datta wrote:
> On Wed, Jul 31, 2013 at 11:08 AM, Solar Designer <solar@...nwall.com> wrote:
> > Thus, what you probably want to do is change:
> >
> > {"mask", FLG_MASK_SET, FLG_CRACKING_CHK,
> > 0, OPT_REQ_PARAM, OPT_FMT_STR_ALLOC, &options.mask},
> >
> > to:
> >
> > {"mask", FLG_MASK_SET, FLG_MASK_CHK,
> > 0, OPT_REQ_PARAM, OPT_FMT_STR_ALLOC, &options.mask},
>
> This allows ./john --wordlist --mask to be specified but not ./john --mask
> --wordlist probably because FLG_CRACKING_CHK is present in FLG_MASK_SET and
> in flg_clr of
> {"wordlist", FLG_WORDLIST_SET, FLG_CRACKING_CHK,
> 0, 0, OPT_FMT_STR_ALLOC, &options.wordlist},
Right.
> One thing I could do is remove FLG_CRACKING_CHK from FLG_MASK_SET, then it
> would allow both combination.
See FLG_EXTERNAL_SET and do things similarly. Note that
FLG_EXTERNAL_SET uses FLG_CRACKING_SUP, whereas e.g. FLG_INC_SET uses
FLG_CRACKING_SET. I think you should similarly use FLG_CRACKING_SUP in
FLG_MASK_SET.
> Also mask mode needs to be higher in if-else ladder in john.c
This depends on how you implement the wordlist + mask mode combination -
which of the two modes is the primary and which is added on top of it or
invoked by it.
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.