Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Fri, 3 Feb 2017 16:34:58 +0100
From: Solar Designer <solar@...nwall.com>
To: john-users@...ts.openwall.com
Subject: Re: to Single or not to Single

On Fri, Feb 03, 2017 at 04:01:42PM +0100, Patrick Proniewski wrote:
> $ time ./john --single=None --nolog --verbosity=1 pw-1M  --pot=pw-1M.pot
> Using default input encoding: UTF-8
> Loaded 1000000 password hashes with 1000000 different salts (dynamic_25 [sha1($s.$p) 128/128 AVX 4x1])
> Press 'q' or Ctrl-C to abort, almost any other key for status
> 1000000g 0:00:00:06 DONE (2017-02-03 15:45) 166449g/s 166449p/s 166449c/s 166449C/s abtvb
> Session completed
> 
> real    0m12.747s
> user    0m8.558s
> sys     0m1.874s
> 
> not so far, then. That's strange :/

What salt length(s) do your hashes use?

Meanwhile, you may try this:

Change SINGLE_HASH_LOG to 0 in params.h.  There are two places where
it's defined differently depending on build type - you may simply edit
both to set this value to 0.

Then build with:

make distclean
./configure --disable-native-tests CFLAGS='-O2 -mno-sse2 -mno-mmx -U__SSE__'
make -sj8

to produce a non-SIMD build, so that you'd have a lower min_keys_per_crypt.

Combined, these settings will save you some memory on allowing for much
smaller per-salt buffers of candidate passwords.  (Normally, "single
crack" mode buffers from 128 to 1024 candidate passwords per salt, to
benefit from bitslicing, SIMD, OpenMP, etc. and to amortize the overhead
of salt switching.)

$ time ./john --single=None --nolog --verbosity=1 pw-1M 
Using default input encoding: UTF-8
Loaded 1000000 password hashes with 1000000 different salts (dynamic_25 [sha1($s.$p) 64/64])
Press 'q' or Ctrl-C to abort, almost any other key for status
1000000g 0:00:00:03 DONE (2017-02-03 18:16) 332225g/s 332225p/s 332225c/s 332225C/s abtvb
Session completed

real    0m7.327s
user    0m5.576s
sys     0m0.679s

Per "top", this reaches 1.3 GB, which is worse than I'd like but isn't
as bad as it was without those settings (was ~9 GB).

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.