Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAFs9wnUUj8L-xnAG-cvJG9oHEbGxYgCNLzK2SHx9dVJdkmuJew@mail.gmail.com>
Date: Fri, 5 Mar 2021 23:42:43 +0100
From: MichaƂ Majchrowicz <sectroyer@...il.com>
To: john-users@...ts.openwall.com
Subject: Re: Splitting mask keyspace

> $ ./john -1=1d -mask='???1???1???1???1???1???1???1???1' -stdo | grep 'd.*d' | wc -l
> Press 'q' or Ctrl-C to abort, almost any other key for status
> 256p 0:00:00:00 100.00% (2015-10-23 19:12) 3657p/s ?d?d?d?d?d?d?d?d

This trick is awesome :) 247 would be an overkill for my current setup
but I have adapted as a script to print all candidates with two of any
kinds (single one already checked):

mask_char="$1"
john -1=1$mask_char -mask='???1???1???1???1???1???1???1???1' -stdout |
grep "^[^$mask_char]*$mask_char[^$mask_char]*$mask_char[^$mask_char]*$"

>
> I've then sorted these masks for decreasing number of d's (to test the
> smaller keyspace masks first), and I am now processing them like this
> (where "ms" was my list of 247 masks, sorted as I described):
>
> n=1; while read m; do echo $m > mask$n; n=$[$n+1]; done < ms
>
> and then I can run multiple commands like:
>
> for n in `seq 1 247`; do mv -v mask$n{,-w} && m=`cat mask$n-w` && echo "Trying mask $m" && ./john pw-e -form=descrypt-opencl -dev=6 -1='?l?u' -mask=$m -se=$n && mv -v mask$n-w mask$n-d; done
>
> for n in `seq 1 247`; do mv -v mask$n{,-w} && m=`cat mask$n-w` && echo "Trying mask $m" && ./john pw-e -form=descrypt -fork=15 -1='?l?u' -mask=$m -se=$n && mv -v mask$n-w mask$n-d; done
>
> I am running 5 of these now: for 3 GPUs, and for CPUs (two -fork=15's).
>
> This abuse of the filesystem provides pretty efficient poor man's
> parallel processing.  Whichever script instance is first to rename a
> mask file runs that mask on that script's device.

I have implemented something similar. Now when running mask attack
system accepts multiple masks and each node has it's own bash script
with command for each mask. Still a PoC but looks it does it's job :)

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.