Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Tue, 26 May 2015 20:47:20 -0400
From: Mathieu Laprise <mathlaprise@...il.com>
To: john-dev@...ts.openwall.com
Subject: [john-core] Getting John's stdout unbuffered for Johnny

In Johnny, there is an option to see console log of john. At the moment, we
have bugs because we don't get the stdout in real time and it's not in the
right order. For example, for the Loaded X hashes message, there is this
line in john.c with \n.
printf("Loaded %s (%s%s%s [%s])\n",
john_loaded_counts(),
database.format->params.label,
database.format->params.format_name[0] ? ", " : "",
database.format->params.format_name,
database.format->params.algorithm_name);

If I add fflush(stdout); after this line, Johnny will get it and print X
hashes loaded at the right time. I guess this happens with other important
strings in JtR. Could we get an unbuffered option in JtR ? Thanks.

For more details, here is the example I'm talking about:

19:59:06 : /home/math/jumbo/run/john
--session=/home/math/_john/johnny/default /home/math/3.raw-md5.pw

Warning: detected hash type "dynamic_0", but the string is also recognized
as "Raw-MD5"

Use the "--format=Raw-MD5" option to force loading these as that type
instead

Warning: poor OpenMP scalability for this hash type, consider --fork=2

Will run 2 OpenMP threads

Press 'q' or Ctrl-C to abort, almost any other key for status

Wait...

0g 0:00:00:26 3/3 0g/s 25490Kp/s 25490Kc/s 58603MC/s joch45t..joknme6

Loaded 2984 password hashes with no different salts (dynamic_0 [md5($p)
(raw-md5) 256/256 AVX2 8x3])

Remaining 2254 password hashes with no different salts

Session aborted

Content of type "text/html" skipped

Powered by blists - more mailing lists

Your e-mail address:

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