mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #880] Salted formats which don't report tunable costs even if they should... #486
Labels
No labels
bug
core branch
documentation
enhancement
enhancement
fixed - pending verify
fuzz bug
good first issue
invalid
invalid
maintenance/cleanup
new cracking mode
new format
new tool
non-trivial
notes/external issues
portability
question
RFC / discussion
testing
WONTFIX
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
openwall/john#486
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @frank-dittrich on GitHub (Dec 14, 2014).
Original GitHub issue: https://github.com/openwall/john/issues/880
Originally assigned to: @frank-dittrich on GitHub.
Not sure how to find out which formats still need to report tunable costs.
These must be formats with salt size > 0.
We have 204 CPU formats with salt size > 0 which don't yet report tunable costs:
To find out which formats need to report tunable costs, we could compare test runs of individual hashes. Of ourse, this doesn't work for formats wich lack self tests for certain supported algorithms / varying cost parameters.
Out of the 204 formats, 9 just have a single self test:
But for the other formats, this might help:
Apparently, none of the self test passwords is among the first 1000000 candidates generated by my incremental mode run.
So we can just drop the top 537 lines, to get a suitable sample input file:
And now let's collect the password hashes:
Finally, a test run for each individual hash:
Then, you can compare the run time of individual hashes (e.g., from the last line of the log files).
And if the ratio of fastest vs. slowest run justifies reporting a cost parameter, look into the format and find out what causes the different run time...
Some more scripting is required to automate this. (And may be we need to look into formats that lack some important self tests before doing this.)
(Of course, you'd need a system which doesn't throttle the CPU clock rate due to temperature, so my laptop isn't suitable.)
Not sure whether we should aim to complete this before the next jumbo release...
@jfoug commented on GitHub (Dec 14, 2014):
No. Tunable costs is a bell that should not hold up any jumbo. Yes, the more that get 'properly' put in there ,the better. BUT it adds little to john per-se. Yes, it does add, BUT it really is pretty advanced, and someone advanced enough to know WHY to use it, probably already is smart enough to group hashes out anyway.
@magnumripper commented on GitHub (Dec 15, 2014):
Note that some formats (eg. RAR and 7z) get very different speed for different password lengths, so the length of the test vectors' cleartexts may falsely indicate there is some other cost involved.
@frank-dittrich commented on GitHub (Dec 15, 2014):
But doesn't --test use various passwords against these hashes, so that the length of the matching password shouldn't matter? (I admit I never really looked into the --test code.)
@magnumripper commented on GitHub (Dec 15, 2014):
No, the benchmark will use either the correct cleartexts, or cripple them if we indicated it's needed (the latter is a jumbo feature for formats that perform much worse while processing a positive). But even when crippled, length is same as original.
@frank-dittrich commented on GitHub (Dec 15, 2014):
OK, so I learned something new.
In my test run, however,
I'll use the same set of password candidates against all the individual hashes, avoiding all the passwords which would crack any of the test hashes.
So it should not matter for rar, 7z, etc.
But we might find formats where the run time depends on the length of the salt, on the variant of the algorithm, etc.
@solardiz commented on GitHub (May 25, 2024):
Skimming the comments from December 2014, this was an attempt by Frank to automatically identify formats missing tunable costs through benchmarking them. magnum pointed out that for some formats performance varies with password length, which we shouldn't treat as a tunable cost.
Despite this issue's title, it doesn't appear to list specific examples of "formats which don't report tunable costs even if they should..."
We probably still do have formats that need tunable costs added, but the comments on this issue look pretty useless for that now. Closing.
@solardiz commented on GitHub (May 25, 2024):
A more recent replacement for this issue is #3910.
[GH-ISSUE #880] Salted formats which don't report tunable costs even if they should...to [GH-ISSUE #880] Salted formats which don't report tunable costs even if they should...