Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Sun, 27 May 2018 15:25:31 +0200
From: Solar Designer <solar@...nwall.com>
To: john-users@...ts.openwall.com
Subject: Re: john --make-charset=custom.chr: Can't get the hang of using it. :-(

On Sun, May 27, 2018 at 02:08:58PM +0100, Eric Watson wrote:
> Incremental mode excluding a list of characters which would not be 
> included in the password?

It's probably a poor fit for what you described so far, but in general
yes you can generate a custom incremental mode .chr file using "cracked
passwords" that never contain certain characters (the "excluded" ones),
and the passwords that incremental mode will generate using that file
will also never include those characters (except if you use "Extra =" in
the corresponding john.conf section, which in this case you won't).

You can do something like this:

$ cat > masks.txt << EOF
[*!][Ff]irstword11334[*!][Ss]econdword11334
[*!][Ff]irstword11334[*!][Ss]econdword43311
[*!][Ff]irstword43311[*!][Ss]econdword11334
[*!][Ff]irstword43311[*!][Ss]econdword43311
[*!][Ss]econdword11334[*!][Ff]irstword11334
[*!][Ss]econdword11334[*!][Ff]irstword43311
[*!][Ss]econdword43311[*!][Ff]irstword11334
[*!][Ss]econdword43311[*!][Ff]irstword43311
EOF
$ while read mask; do ./john --mask="$mask" --stdout; done < masks.txt | sed 's/^/:/' > john.pot
$ ./john --make-charset=custom.chr
$ ./john --incremental=custom passwd

where "$" denotes your shell prompt (so that you see that the masks and
the EOF line are input to "cat" and not to the shell).

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.