Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 20 Apr 2015 11:26:29 +0800
From: Kai Zhao <loverszhao@...il.com>
To: john-dev@...ts.openwall.com
Subject: Re: Advice on proposal: John the Ripper jumbo robustness

> How much speed does this change add?

It depends on the input file.

1. Without return after john_init()

1.1 invalid input

$ echo 'garbage' > test.pw
$ time ../john test_cases/test.pw --config=local.conf --format=7z
No password hashes loaded (see FAQ)

real 0m0.003s
user 0m0.001s
sys 0m0.002s

$ afl-fuzz -m none -t 100 -i test_cases/ -o out ../john @@ --nolog
--max-run-time=1  --skip-self-test --format=7z --config=local.conf

exec speed: 1300~1500/sec

1.2 valid input

$ echo
'$7z$0$19$0$1122$8$d1f50227759415890000000000000000$1412385885$112$112$5e5b8b734adf52a64c541a5a5369023d7cccb78bd910c0092535dfb013a5df84ac692c5311d2e7bbdc580f5b867f7b5dd43830f7b4f37e41c7277e228fb92a6dd854a31646ad117654182253706dae0c069d3f4ce46121d52b6f20741a0bb39fc61113ce14d22f9184adafd6b5333fb1'
> 7z_fmt
$ time ../john 7z_fmt --config=local.conf --format=7z
Loaded 1 password hash (7z, 7-Zip [SHA256 AES 32/64])
Will run 8 OpenMP threads
Note: This format may emit false positives, so it will keep trying even
after
finding a possible candidate.
No "Single" mode rules found in local.conf

real 0m0.783s
user 0m1.822s
sys 0m0.006s

$ afl-fuzz -m none -t 100 -i test_cases/ -o out ../john @@ --nolog
--max-run-time=1  --skip-self-test --format=7z --config=local.conf

exec speed: 1100~1150/sec

2. Return after john_init()

2.1 invalid input

$ echo 'garbage' > test.pw
$ time ../john test_cases/test.pw --config=local.conf --format=7z
No password hashes loaded (see FAQ)

real 0m0.003s
user 0m0.001s
sys 0m0.002s

$ afl-fuzz -m none -t 100 -i test_cases/ -o out ../john @@ --nolog
--max-run-time=1  --skip-self-test --format=7z --config=local.conf

exec speed: 1300~1500/sec

2.2 valid input

$ echo
'$7z$0$19$0$1122$8$d1f50227759415890000000000000000$1412385885$112$112$5e5b8b734adf52a64c541a5a5369023d7cccb78bd910c0092535dfb013a5df84ac692c5311d2e7bbdc580f5b867f7b5dd43830f7b4f37e41c7277e228fb92a6dd854a31646ad117654182253706dae0c069d3f4ce46121d52b6f20741a0bb39fc61113ce14d22f9184adafd6b5333fb1'
> 7z_fmt
$ time ../john 7z_fmt --config=local.conf --format=7z
Loaded 1 password hash (7z, 7-Zip [SHA256 AES 32/64])
Will run 8 OpenMP threads

real 0m0.009s
user 0m0.001s
sys 0m0.008s

$ afl-fuzz -m none -t 100 -i test_cases/ -o out ../john @@ --nolog
--max-run-time=1  --skip-self-test --format=7z --config=local.conf

exec speed: 1200~1250/sec

Conclusion: return after john_init() accelerates when the hash is valid.
It adds about 100 exec/sec when the hash is valid.

Thanks,

Kai

[ CONTENT OF TYPE text/html SKIPPED ]

Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ