mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #1774] SessionFileProtect problem in batch mode #1181
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#1181
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 (Sep 21, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1774
Without any mode option, john will fail when switching from --single mode to --wordlist mode.
May be we need to find a place to check this before forking. Too bad it can't be in the same place as LogFileProtect check.
@magnumripper commented on GitHub (Sep 21, 2015):
Maybe we can have -stdout call log_init() - but imply -nolog?
@frank-dittrich commented on GitHub (Sep 21, 2015):
That would work (and add one more core deviation).
@magnumripper commented on GitHub (Sep 21, 2015):
That's a deviation we can live with. The really bad merge troubles are core changes to loader/cracker stuff if we deviate much (or unwisely).
@magnumripper commented on GitHub (Oct 15, 2015):
@frank-dittrich -stdout now calls log_init(). Feel free to work with this if/when you got the time.
@magnumripper commented on GitHub (Nov 9, 2015):
Can't be done in log_init(). It's simply too early. I just added a hack for batch mode.
@magnumripper commented on GitHub (Nov 9, 2015):
I guess I should revert
f69d8d3d.@frank-dittrich commented on GitHub (Nov 10, 2015):
Why is checking for an existing .rec file in log_init() too early?
@magnumripper commented on GitHub (Nov 10, 2015):
I spent all of yesterday trying to make it work. Several problems, most stemming from the fact node number(s) are not known yet. I sort of got it working, with huge deviations from core and too messy to commit.
It's a pity though because it really bailed out immediately as opposed to after a spending a good while loading hashes and parsing pots. I still have the code, in case I get a lightbulb moment.
@frank-dittrich commented on GitHub (Nov 10, 2015):
@magnumripper Why would we care about node numbers?
Just check for the "main" .rec file.
If that one doesn't exist, a session.2.rec file is of little use anyway, so there would be no problem overwriting it.
@magnumripper commented on GitHub (Nov 10, 2015):
Yeah that works in the -fork case, but with MPI we already run n processes and they are almost totally unsynchronized (which is a feature and a design choice). This means the main node might create the (new) file and only then, node 163 checks for it and sees it's already there. And bails out.
Things like that. Many moving parts involved.