mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #1357] Markov mode: segfault #854
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#854
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 @loverszhaokai on GitHub (May 27, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1357
#1. Reproduce
$ ./configure && make -sj8
$ cat test_pw
$ ../john test_pw --markov:10:1:3
#2. GDB debug
$ gdb ../john
$ set args test_pw --markov:10:1:3
$ r
@magnumripper commented on GitHub (May 27, 2015):
That hash (or format) has nothing to do with it.
@magnumripper commented on GitHub (May 28, 2015):
So mkv_end is reset, but apparently it doesn't help in this case.
@jfoug commented on GitHub (Jun 1, 2015):
There are no words in level 10. Here is level 30.
MKV start (stats=$JOHN/stats, lvl=30 len=12 pwd=9)
c
m
s
a
b
p
d
l
8p 0:00:00:00 42.11% (ETA: 14:44:23) 41.88p/s l
The problem is that a level of 255 is returned. Problem (char)-1 but what happens is we offset an array at offset 255 (it is multipled, but level used is 255). This is a pretty easy fix (I think).\
With the syntax used, we are forcing the code to try to build a word, when there is none. HOWEVER, it is a quick check to see if the level is too high.
@jfoug commented on GitHub (Jun 1, 2015):
f3d5f9efixes the problem