[GH-ISSUE #613] S/Key format eats LM hashes #280

Closed
opened 2026-10-14 02:59:43 +07:00 by bsakaguchi · 9 comments
Owner

Originally created by @magnumripper on GitHub (Jun 1, 2014).
Original GitHub issue: https://github.com/openwall/john/issues/613

$ cat test.lm
u0-LM:0:e52cac67419a9a2238f10713b629b565:0:0:PASSWORD1::
u1-LM:1:8d3ea132efff1cebdd4218f5e59dd23a:1:0:SOMETHING::
u2-LM:2:e52cac67419a9a22f96f275e1115b16f:2:0:PASSWORD2::

$ ./john test.lm -wo:test
Warning: only loading hashes of type "skey", but also saw type "LM"
Use the "--format=LM" option to force loading hashes of that type instead
Loaded 1 password hash (skey, S/Key [MD4/MD5/SHA1/RMD160 32/64])
Warning: no OpenMP support for this hash type, consider --fork=8
Press 'q' or Ctrl-C to abort, almost any other key for status
0g 0:00:00:00 DONE (2014-06-01 17:20) 0g/s 300.0p/s 300.0c/s 300.0C/s password2
Session completed

We probably want to put S/Key last.

Originally created by @magnumripper on GitHub (Jun 1, 2014). Original GitHub issue: https://github.com/openwall/john/issues/613 ``` $ cat test.lm u0-LM:0:e52cac67419a9a2238f10713b629b565:0:0:PASSWORD1:: u1-LM:1:8d3ea132efff1cebdd4218f5e59dd23a:1:0:SOMETHING:: u2-LM:2:e52cac67419a9a22f96f275e1115b16f:2:0:PASSWORD2:: $ ./john test.lm -wo:test Warning: only loading hashes of type "skey", but also saw type "LM" Use the "--format=LM" option to force loading hashes of that type instead Loaded 1 password hash (skey, S/Key [MD4/MD5/SHA1/RMD160 32/64]) Warning: no OpenMP support for this hash type, consider --fork=8 Press 'q' or Ctrl-C to abort, almost any other key for status 0g 0:00:00:00 DONE (2014-06-01 17:20) 0g/s 300.0p/s 300.0c/s 300.0C/s password2 Session completed ``` We probably want to put S/Key last.
bsakaguchi 2026-10-14 02:59:43 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@magnumripper commented on GitHub (Jun 1, 2014):

Hmm wtf how can this even happen? Plugin formats register later than core ones.

<!-- gh-comment-id:44787687 --> @magnumripper commented on GitHub (Jun 1, 2014): Hmm wtf how can this even happen? Plugin formats register later than core ones.
Author
Owner

@magnumripper commented on GitHub (Jun 1, 2014):

I can't even reproduce it.

<!-- gh-comment-id:44787926 --> @magnumripper commented on GitHub (Jun 1, 2014): I can't even reproduce it.
Author
Owner

@kholia commented on GitHub (Jun 2, 2014):

Applying "PEBCAK" label to it ;)

<!-- gh-comment-id:44824279 --> @kholia commented on GitHub (Jun 2, 2014): Applying "PEBCAK" label to it ;)
Author
Owner

@jfoug commented on GitHub (Jun 2, 2014):

WTF is PEBCAK. I can not reproduce this either. I do not see how could have been this way. Could it have been before you got the new john.c with the #if HAVE_SKEY code removed ?

<!-- gh-comment-id:44827982 --> @jfoug commented on GitHub (Jun 2, 2014): WTF is PEBCAK. I can not reproduce this either. I do not see how could have been this way. Could it have been before you got the new john.c with the #if HAVE_SKEY code removed ?
Author
Owner

@kholia commented on GitHub (Jun 2, 2014):

PEBCAK stands for "Problem Exists Between Chair And Keyboard".

<!-- gh-comment-id:44828071 --> @kholia commented on GitHub (Jun 2, 2014): PEBCAK stands for "Problem Exists Between Chair And Keyboard".
Author
Owner

@jfoug commented on GitHub (Jun 2, 2014):

I googled it, and have been laughing for a while. I also am not sure how this format jumped over LM, I see no way that it could have done that.

<!-- gh-comment-id:44829721 --> @jfoug commented on GitHub (Jun 2, 2014): I googled it, and have been laughing for a while. I also am not sure how this format jumped over LM, I see no way that it could have done that.
Author
Owner

@magnumripper commented on GitHub (Jun 2, 2014):

Naawww I got pebcak'ed.

Yeah I supposed I had missed a "make clean" or something. The problem can't really happen with a proper build as far as I'm aware.

<!-- gh-comment-id:44873690 --> @magnumripper commented on GitHub (Jun 2, 2014): Naawww I got pebcak'ed. Yeah I supposed I had missed a "make clean" or something. The problem can't really happen with a proper build as far as I'm aware.
Author
Owner

@magnumripper commented on GitHub (Jun 3, 2014):

Not PEBCAK! See 0461fb2b5

Try the TS without that patch, and try to understand what happens... took me a while!

<!-- gh-comment-id:44984930 --> @magnumripper commented on GitHub (Jun 3, 2014): **Not** PEBCAK! See 0461fb2b5 Try the TS without that patch, and try to understand what happens... took me a while!
Author
Owner

@jfoug commented on GitHub (Jun 3, 2014):

Keep in mind, NO ONE has used this format, in a LONG time. That it still worked (mostly), and compiled is pretty surprising. Btw, GOOD catch. That would have been ugly, is sent to the ppl :) Any input list not starting out with a valid item, may have been picked up by skey format.

<!-- gh-comment-id:44997597 --> @jfoug commented on GitHub (Jun 3, 2014): Keep in mind, NO ONE has used this format, in a LONG time. That it still worked (mostly), and compiled is pretty surprising. Btw, GOOD catch. That would have been ugly, is sent to the ppl :) Any input list not starting out with a valid item, may have been picked up by skey format.
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#280
No description provided.