[GH-ISSUE #799] Have questionable (yet rewarding) self-tests run only with --test (ie. not before a crack run) #418

Closed
opened 2026-10-14 03:06:24 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @magnumripper on GitHub (Oct 10, 2014).
Original GitHub issue: https://github.com/openwall/john/issues/799

Originally assigned to: @magnumripper on GitHub.

I can't help worrying that the #753 and #757 tests can possibly be dangerous to some formats. They are good tests for catching some problems but they could possibly also thrash something that was pre-initialized (and then don't catch that themselves) leaving a subsequent crack in some bad state (false negatives). That would be awfully embarrassing if found out months or years later...

How about this: If we're doing a self-test before an actual crack session, we skip a number of Jumbo-specific tests including these. Only if we actually used --test, all self tests should be active. Isn't that a good idea? That definitely stops us from "ruining" real crack runs. In some cases (eg. GPU) it will also speed up self-tests before a crack considerably. Hmmm OK I convinced me, this is a no brainer. I'll have a look at it.

Originally created by @magnumripper on GitHub (Oct 10, 2014). Original GitHub issue: https://github.com/openwall/john/issues/799 Originally assigned to: @magnumripper on GitHub. I can't help worrying that the #753 and #757 tests can possibly be dangerous to some formats. They are good tests for catching some problems but they could possibly also thrash something that was pre-initialized (and then don't catch _that_ themselves) leaving a subsequent crack in some bad state (false negatives). That would be awfully embarrassing if found out months or years later... How about this: If we're doing a self-test before an actual crack session, we skip a number of Jumbo-specific tests including these. Only if we actually used `--test`, all self tests should be active. Isn't that a good idea? That definitely stops us from "ruining" real crack runs. In some cases (eg. GPU) it will also speed up self-tests before a crack considerably. Hmmm OK I convinced me, this is a no brainer. I'll have a look at it.
Author
Owner

@jfoug commented on GitHub (Oct 10, 2014):

I agree with this assessment. We have to be careful to NOT cause harm, when someone is actually RUNNING JtR. If there are things that have possible damage, then during a --test is where they should happen, and the only place they should happen.

<!-- gh-comment-id:58725685 --> @jfoug commented on GitHub (Oct 10, 2014): I agree with this assessment. We have to be careful to NOT cause harm, when someone is actually RUNNING JtR. If there are things that have possible damage, then during a --test is where they should happen, and the only place they should happen.
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#418
No description provided.