[GH-ISSUE #507] Assorted ideas for automatic emission of status #205

Closed
opened 2026-10-14 02:56:18 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @magnumripper on GitHub (Feb 21, 2014).
Original GitHub issue: https://github.com/openwall/john/issues/507

http://www.openwall.com/lists/john-dev/2011/09/25/1

Originally created by @magnumripper on GitHub (Feb 21, 2014). Original GitHub issue: https://github.com/openwall/john/issues/507 http://www.openwall.com/lists/john-dev/2011/09/25/1
bsakaguchi 2026-10-14 02:56:18 +07:00
Author
Owner

@solardiz commented on GitHub (May 25, 2024):

This was about supporting more conditions for emitting the status line:

Date: Sun, 25 Sep 2011 20:52:03 +0400
From: Solar Designer <solar@...nwall.com>
To: john-dev@...ts.openwall.com
Subject: Re: Emit a status line at every cracked password

On Sat, Sep 24, 2011 at 07:07:50PM +0200, magnum wrote:
> When playing with the CRC-32 format I got this idea that I wanted a 
> status line output automagically at every crack. Very trivial patch. I 
> named the argument --crack-status so it doesn't mess with any old 
> abbreviation.

Shouldn't this be a john.conf setting instead?

Also, if we export the number of guesses as an external mode variable,
then it will be possible to do something like:

int prev_guesses;

void filter()
{
	if (guesses == prev_guesses)
		return;
	status = 1;
	prev_guesses = guesses;
}

("status" is already exported in current CVS tree.)

Of course, this will have performance impact, which may be significant
for some uses.  So I don't oppose having a john.conf setting to enable
status printing on guesses.

Oh, or we could introduce a new external mode function that is only
invoked on a successful guess.  So we'd do:

void on_guess()
{
	status = 1;
}

and it would have no performance impact.

Another reasonable thing could be to print status on guesses, but only
if at least one second elapsed since the previous status line printed.
We could even have this enabled by default - or maybe make it the only
new behavior?

Alexander

We already have:

--status[=NAME]            Print status of a session [called NAME]
--[no-]crack-status        Emit a status line whenever a password is cracked
--progress-every=N         Emit a status line every N seconds

and maybe that's actually sufficient for now, or if new demand appears we can revisit this.

I think we don't need this issue hanging around for 10+ years. Even if we do revisit this topic, we're unlikely to recall we have this issue in here. Closing.

<!-- gh-comment-id:2131297798 --> @solardiz commented on GitHub (May 25, 2024): This was about supporting more conditions for emitting the status line: ``` Date: Sun, 25 Sep 2011 20:52:03 +0400 From: Solar Designer <solar@...nwall.com> To: john-dev@...ts.openwall.com Subject: Re: Emit a status line at every cracked password On Sat, Sep 24, 2011 at 07:07:50PM +0200, magnum wrote: > When playing with the CRC-32 format I got this idea that I wanted a > status line output automagically at every crack. Very trivial patch. I > named the argument --crack-status so it doesn't mess with any old > abbreviation. Shouldn't this be a john.conf setting instead? Also, if we export the number of guesses as an external mode variable, then it will be possible to do something like: int prev_guesses; void filter() { if (guesses == prev_guesses) return; status = 1; prev_guesses = guesses; } ("status" is already exported in current CVS tree.) Of course, this will have performance impact, which may be significant for some uses. So I don't oppose having a john.conf setting to enable status printing on guesses. Oh, or we could introduce a new external mode function that is only invoked on a successful guess. So we'd do: void on_guess() { status = 1; } and it would have no performance impact. Another reasonable thing could be to print status on guesses, but only if at least one second elapsed since the previous status line printed. We could even have this enabled by default - or maybe make it the only new behavior? Alexander ``` We already have: ``` --status[=NAME] Print status of a session [called NAME] --[no-]crack-status Emit a status line whenever a password is cracked --progress-every=N Emit a status line every N seconds ``` and maybe that's actually sufficient for now, or if new demand appears we can revisit this. I think we don't need this issue hanging around for 10+ years. Even if we do revisit this topic, we're unlikely to recall we have this issue in here. Closing.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#205
No description provided.