openwall / john

John the Ripper jumbo - advanced offline password cracker, which supports hundreds of hash and cipher types, and runs on many operating systems, CPUs, GPUs, and even some FPGAs
https://www.openwall.com/john/
Other
10.42k stars 2.11k forks source link

mask stretching stage is not reported by --status #3727

Open AlekseyCherepanov opened 5 years ago

AlekseyCherepanov commented 5 years ago

I run a long session with mask stretching. In parallel, I check status using --status, but it does not report stretching length. It may report ETA for current stage. ETA (and rounding of percents) relates to #3723.

$ echo aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa > pw-fake-md5
$ john pw-fake-md5 --format=raw-md5 --mask='?d' --min-length=1 --max-length=14
[...]
0g 0:00:00:53 10,85% (10) (ETA: 16:57:03) 0g/s 22682Kp/s 22682Kc/s 22682KC/s 6441459711..7571459711
other-term$ (inotifywait JohnTheRipper/run/john.rec && john --status) & killall -HUP john && killall -USR1 john; sleep 1
[...]
0g 0:00:00:54 10,00% (ETA: 16:57:54) 0g/s 22329Kp/s 22329Kc/s 22329KC/s

So (10) is shown only in terminal with running john.

magnumripper commented 5 years ago

I never intended current length to be included in --status but as long as we report ETA and progress I agree we need to do so.