mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #1835] Some mask-mode formats don't handle "-test -mask" properly yet #1216
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#1216
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 @magnumripper on GitHub (Oct 15, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1835
Originally assigned to: @magnumripper, @sayan1an on GitHub.
At least DEScrypt and LM formats does not benchmark properly using
-test -mask. I had a look but haven't been able to fix it (when I tried they started crashing).I'm planning to change the MD4/5 and SHA1 formats to use shared auto-tune, hopefully they are no harder than NT or mscash which are already done and works just fine with mask benchmark.
@magnumripper commented on GitHub (Oct 15, 2015):
@Sayantan2048 I am experimenting with a shared function that can build a
struct db_main *fake_dbfrom any format's test vectors. Would that not be a good thing for these formats? I reckon it would remove much special handling in the code?@magnumripper commented on GitHub (Oct 15, 2015):
See fake_db.diff for an early version. Seems to work fine but I have yet to try using it.
@sayan1an commented on GitHub (Oct 18, 2015):
Yeah fake db would be awesome. It means I can eliminate test specific code. Regarding test mask - how are things handled during self-test when the session is for actual cracking with user specified mask? Is the default mask overruled with user specified mask ?
Also, I would be little less active for the next few days as it is festival season in my country. :)
@magnumripper commented on GitHub (Oct 18, 2015):
Actual cracking is not affected by latest changes. And self-test currently never involves mask-mode anyway, only benchmark does.
The default mask from john.conf is used unless you specify one.
@magnumripper commented on GitHub (Oct 18, 2015):
That function is added in
df94976. We might have to tweak it but it seems to produce a valid db.@magnumripper commented on GitHub (Oct 18, 2015):
We probably also have to change most/all
crypt_all(count, NULL)in format tests and benchmarks, tocrypt_all(count, db->salts).@magnumripper commented on GitHub (Oct 21, 2015):
http://www.openwall.com/lists/john-dev/2015/10/18/1
@magnumripper commented on GitHub (Oct 21, 2015):
Experiment topic branches, both seem to work fine (at least with nt-opencl)
Branch fakedb_core implement it in core, but only nt-opencl is modified (stripped from special code) accordingly. Other formats work fine too though, they just never use their special code.
Branch fakedb_format uses this in nt-opencl only. This still needed some core support so I doubt it's better in any way.
@magnumripper commented on GitHub (Oct 26, 2015):
Current (rebased and tweaked) fakedb_core branch fails real crack with nt-opencl for some reason. I'm investigating. Disregarding that problem I think this is the way ahead.
@magnumripper commented on GitHub (Oct 29, 2015):
Latest fakedb_core code (#1853) works fine. Special code for self-test dropped for NT and mscash. Maybe we should merge it but I'm still considering the alternatives.
@magnumripper commented on GitHub (Dec 8, 2015):
@Sayantan2048 I merged the "fake db" branch now, I think we really need it. If you look at commits like
e83f99f1and1c7b5dcdfyou can see how much simpler it gets in the format.