Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 17 Aug 2011 16:51:56 +0400
From: Aleksey Cherepanov <>
Subject: Re: -subformat key works better than documented

On Wed, Aug 17, 2011 at 03:35:46PM +0400, Solar Designer wrote:
> > I found on john-1.7.8-jumbo5 that -subformat key accepts following:
> > $ john -format:md5-gen -subformat:'md5_gen(0)' ...
> > It works for me like
> > $ john -format:'md5_gen(0)'
> > While documentation (doc/OPTIONS) does not say about -subformat key.
> > It says only about -subformat=LIST key that shows list of subformats.
> > However such behaviour seems to me to be intuitional.
> I'd say it's legacy.  In fact, we need to rename those md5_gen things,
> getting rid of the braces (which unnecessarily make things more
> difficult e.g. when passing "john ..." commands to remote servers via
> ssh) and of md5 in the name (as there's also SHA-1 support in the same
> md5_gen thing now).

Thanks! I fixed it in Johnny. Now I have two lists to choose format
(borrowed from --format=NAME part John's usage message)
and subformat (borrowed from 'john --subformat=LIST'). If user choose
'md5-gen(n)' as format then subformat list became available and format
in key is replaced with value chosen from subformat list.

I did two lists of formats because both lists are big and because list
of subformats keeps comments from 'john --subformat=LIST' so there are
'md5_gen(0): md5($p)  (raw-md5)' instead of just 'md5_gen(0)'. However
the second reason is not a problem for mixed list. So I could do mixed
list keeping comments.

By the way --format=NAME part of John's usage message says about
'md5-gen(n)' that seems to be 'md5_gen(n)'. At least it does not work
for me with dash instead of underscore.

> > Hence the question could I use such behaviour in Johnny? Or will it be
> > fixed to be like in documentation and I should not use it?
> Why would Johnny the GUI need to be aware of such things at all?  It is
> supposed to work with non-jumbo builds of JtR as well, which lack
> md5_gen completely.  I suggest that you only use "--format".

Without jumbo there are no problems at all. It worked and works well
with just John (subformats list is available but John says about unknown
cyphertext format now).

Johnny is aware of such things because I did separate lists for
formats and subformats. It seems that I did it more complicated than
needed. Should I merge lists together?

Aleksey Cherepanov

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.