Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Thu, 14 Jan 2021 00:40:37 +0100
From: Solar Designer <solar@...nwall.com>
To: john-users@...ts.openwall.com
Subject: Re: Start john at 73%

Hi,

On Wed, Jan 13, 2021 at 12:13:03PM +0000, freeroute wrote:
> Is it possible to start say 73% into a wordlist with john?
> 
> rec file is missing.

There's no feature like that built into JtR.  With a wordlist, it's
easiest and most reliable for you to create and use a partial wordlist
that only contains the portion left to search.  In a Unix shell, you can
do that with the "tail" command.  It can be something like this:

$ wc -l rockyou.txt 
14344391 rockyou.txt
$ echo 14344391*73/100 | bc
10471405
$ tail -n +10471405 rockyou.txt > 73percent-into-rockyou.txt
$ wc -l 73percent-into-rockyou.txt
3872987 73percent-into-rockyou.txt

Alternatively:

$ echo 14344391*(100-73)/100 | bc
3872985
$ tail -n -3872985 rockyou.txt > 73percent-into-rockyou.txt
$ wc -l 73percent-into-rockyou.txt
3872985 73percent-into-rockyou.txt

Alternatively to "bc", you can use the shell itself to do the
calculations, but I guess with larger wordlists this could result in
integer overflows on some systems (giving incorrect results):

$ echo $[14344391*73/100]
10471405
$ echo $[14344391*(100-73)/100]
3872985

(These are correct here, as you can see.)

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.