[GH-ISSUE #2223] ./john --show problem for some formats (odf, tc_sha512, tc_aes_xts) #1484

Closed
opened 2026-10-15 04:18:28 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @frank-dittrich on GitHub (Aug 19, 2016).
Original GitHub issue: https://github.com/openwall/john/issues/2223

Originally assigned to: @frank-dittrich on GitHub.

Found using jtrts.pl:

 (master)test $ ./jtrts.pl odf -v -stoponerror
-------------------------------------------------------------------------------
- JtR-TestSuite (jtrts). Version 1.13, Dec 21, 2014.  By, Jim Fougeron & others
- Testing:  John the Ripper 1.8.0.6-jumbo-1-2498-gf4352ad [linux-gnu 64-bit AVX-ac]
--------------------------------------------------------------------------------

John Jumbo build detected.
--nolog option is valid
--config=FILE option is valid
--field-separator-char=C option is valid
--pot=NAME option is valid
--encoding=NAME option is valid
ascii.chr found, inc_ascii_72acb6963bf12701dfb06c8d1b00cad4 added as a capability
alnum.chr found, inc_alnum_ee8763c850dee8e4b88ef547a8ed39b8 added as a capability
Types to filter on:
odf
Capabilities in this build of john:
jumbo core inc nolog_valid config_valid field_sep_valid local_pot_valid encode_valid utf8 cp1252 cp1251 koi8r cp437 cp737 cp850 cp858 cp866 iso8859-1 iso8859-15 inc_ascii_72acb6963bf12701dfb06c8d1b00cad4 inc_alnum_ee8763c850dee8e4b88ef547a8ed39b8

form=odf                          guesses: 1500 -show=1350 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED3!!!  ret_val=0]
Exiting on error. The .pot file tst-.pot contains the found data
The command used to run this test was:

../run/john -ses=tst-  -nolog -pot=tst-.pot odf_tst.in --wordlist=pw.dic
and
../run/john -show   -pot=tst-.pot odf_tst.in -form=odf
grep: tst-.log: No such file or directory
(master)test $ LC_ALL=C sort -u tst-.pot |wc -l
1500
(master)test $ ../run/john -ses=tst-  -nolog -pot=tst-.pot odf_tst.in --wordlist=pw.dic
Loaded 1500 password hashes with 30 different salts (ODF [SHA1/SHA256 128/128 AVX 4x BF/AES])
No password hashes left to crack (see FAQ)
(master)test $ ../run/john -show   -pot=tst-.pot odf_tst.in -form=odf |tail -n 5
u47-odf:swordfish:0:swordfish::
u48-odf:limiey:0:limiey::
u49-odf:asdfasfga:0:asdfasfga::

1350 password hashes cracked, 150 left
(master)test $ ../run/john --list=build-info 
Version: 1.8.0.6-jumbo-1-2498-gf4352ad
Build: linux-gnu 64-bit AVX-ac
SIMD: AVX, interleaving: MD4:3 MD5:3 SHA1:1 SHA256:1 SHA512:1
$JOHN is ../run/
Format interface version: 14
Max. number of reported tunable costs: 3
Rec file version: REC4
Charset file version: CHR3
CHARSET_MIN: 1 (0x01)
CHARSET_MAX: 255 (0xff)
CHARSET_LENGTH: 24
SALT_HASH_SIZE: 1048576
Max. Markov mode level: 400
Max. Markov mode password length: 30
gcc version: 6.1.1
GNU libc version: 2.23 (loaded: 2.23)
Crypto library: OpenSSL
OpenSSL library version: 01000208f
OpenSSL 1.0.2h-fips  3 May 2016
GMP library version: 6.1.1
File locking: fcntl()
fseek(): fseek
ftell(): ftell
fopen(): fopen
memmem(): System's
Originally created by @frank-dittrich on GitHub (Aug 19, 2016). Original GitHub issue: https://github.com/openwall/john/issues/2223 Originally assigned to: @frank-dittrich on GitHub. Found using jtrts.pl: ``` (master)test $ ./jtrts.pl odf -v -stoponerror ------------------------------------------------------------------------------- - JtR-TestSuite (jtrts). Version 1.13, Dec 21, 2014. By, Jim Fougeron & others - Testing: John the Ripper 1.8.0.6-jumbo-1-2498-gf4352ad [linux-gnu 64-bit AVX-ac] -------------------------------------------------------------------------------- John Jumbo build detected. --nolog option is valid --config=FILE option is valid --field-separator-char=C option is valid --pot=NAME option is valid --encoding=NAME option is valid ascii.chr found, inc_ascii_72acb6963bf12701dfb06c8d1b00cad4 added as a capability alnum.chr found, inc_alnum_ee8763c850dee8e4b88ef547a8ed39b8 added as a capability Types to filter on: odf Capabilities in this build of john: jumbo core inc nolog_valid config_valid field_sep_valid local_pot_valid encode_valid utf8 cp1252 cp1251 koi8r cp437 cp737 cp850 cp858 cp866 iso8859-1 iso8859-15 inc_ascii_72acb6963bf12701dfb06c8d1b00cad4 inc_alnum_ee8763c850dee8e4b88ef547a8ed39b8 form=odf guesses: 1500 -show=1350 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED3!!! ret_val=0] Exiting on error. The .pot file tst-.pot contains the found data The command used to run this test was: ../run/john -ses=tst- -nolog -pot=tst-.pot odf_tst.in --wordlist=pw.dic and ../run/john -show -pot=tst-.pot odf_tst.in -form=odf grep: tst-.log: No such file or directory ``` ``` (master)test $ LC_ALL=C sort -u tst-.pot |wc -l 1500 (master)test $ ../run/john -ses=tst- -nolog -pot=tst-.pot odf_tst.in --wordlist=pw.dic Loaded 1500 password hashes with 30 different salts (ODF [SHA1/SHA256 128/128 AVX 4x BF/AES]) No password hashes left to crack (see FAQ) (master)test $ ../run/john -show -pot=tst-.pot odf_tst.in -form=odf |tail -n 5 u47-odf:swordfish:0:swordfish:: u48-odf:limiey:0:limiey:: u49-odf:asdfasfga:0:asdfasfga:: 1350 password hashes cracked, 150 left ``` ``` (master)test $ ../run/john --list=build-info Version: 1.8.0.6-jumbo-1-2498-gf4352ad Build: linux-gnu 64-bit AVX-ac SIMD: AVX, interleaving: MD4:3 MD5:3 SHA1:1 SHA256:1 SHA512:1 $JOHN is ../run/ Format interface version: 14 Max. number of reported tunable costs: 3 Rec file version: REC4 Charset file version: CHR3 CHARSET_MIN: 1 (0x01) CHARSET_MAX: 255 (0xff) CHARSET_LENGTH: 24 SALT_HASH_SIZE: 1048576 Max. Markov mode level: 400 Max. Markov mode password length: 30 gcc version: 6.1.1 GNU libc version: 2.23 (loaded: 2.23) Crypto library: OpenSSL OpenSSL library version: 01000208f OpenSSL 1.0.2h-fips 3 May 2016 GMP library version: 6.1.1 File locking: fcntl() fseek(): fseek ftell(): ftell fopen(): fopen memmem(): System's ```
Author
Owner

@frank-dittrich commented on GitHub (Aug 19, 2016):

I was able to get the same ./john --show problem with tc_sha512 and tc_aes_xts.
So, odf ist't the only format having this problem.

<!-- gh-comment-id:240995813 --> @frank-dittrich commented on GitHub (Aug 19, 2016): I was able to get the same ./john --show problem with tc_sha512 and tc_aes_xts. So, odf ist't the only format having this problem.
Author
Owner

@jfoug commented on GitHub (Aug 21, 2016):

4b5a6fb Please test with this update. This one had to do with computing a hash, trimming off only the bytes for SOURCE_HASH and not trimming them off for BIN_HASH

I think things are now fixed here.

<!-- gh-comment-id:241276768 --> @jfoug commented on GitHub (Aug 21, 2016): 4b5a6fb Please test with this update. This one had to do with computing a hash, trimming off only the bytes for $SOURCE_HASH$ and not trimming them off for $BIN_HASH$ I think things are now fixed here.
Author
Owner

@frank-dittrich commented on GitHub (Aug 21, 2016):

(master)test $ ./jtrts.pl odf -v -stoponerror
-------------------------------------------------------------------------------
- JtR-TestSuite (jtrts). Version 1.13, Dec 21, 2014.  By, Jim Fougeron & others
- Testing:  John the Ripper 1.8.0.6-jumbo-1-2516-g98202b5 [linux-gnu 64-bit AVX-ac]
--------------------------------------------------------------------------------

John Jumbo build detected.
--config=FILE option is valid
--field-separator-char=C option is valid
--pot=NAME option is valid
--encoding=NAME option is valid
ascii.chr found, inc_ascii_72acb6963bf12701dfb06c8d1b00cad4 added as a capability
alnum.chr found, inc_alnum_ee8763c850dee8e4b88ef547a8ed39b8 added as a capability
Types to filter on:
odf
Capabilities in this build of john:
jumbo core inc config_valid field_sep_valid local_pot_valid encode_valid utf8 cp1252 cp1251 koi8r cp437 cp737 cp850 cp858 cp866 iso8859-1 iso8859-15 inc_ascii_72acb6963bf12701dfb06c8d1b00cad4 inc_alnum_ee8763c850dee8e4b88ef547a8ed39b8

form=odf                          guesses: 1500 0:00:00:00 DONE  [PASSED]
.pot CHK:odf                      guesses: 1350 0:00:00:00 DONE  [PASSED] (1350 val-pwd)

form=odf_1                        guesses: 1500 0:00:00:00 DONE  [PASSED]
.pot CHK:odf_1                    guesses: 1350 0:00:00:00 DONE  [PASSED] (1350 val-pwd)

Why the difference of 1500 and 1350, and the test PASSED?

And with tc_sha512 and tc_aes_xts, there isn't a .pot CHK line!

(master)test $ ./jtrts.pl tc_sha512 -stoponerror
-------------------------------------------------------------------------------
- JtR-TestSuite (jtrts). Version 1.13, Dec 21, 2014.  By, Jim Fougeron & others
- Testing:  John the Ripper 1.8.0.6-jumbo-1-2516-g98202b5 [linux-gnu 64-bit AVX-ac]
--------------------------------------------------------------------------------

John Jumbo build detected.

form=tc_sha512                    guesses: 1500 0:00:00:13 DONE  [PASSED]

All tests passed without error.  Performed 1 tests.  Time used was 15 seconds
(master)test $ ./jtrts.pl tc_aes_xts -stoponerror
-------------------------------------------------------------------------------
- JtR-TestSuite (jtrts). Version 1.13, Dec 21, 2014.  By, Jim Fougeron & others
- Testing:  John the Ripper 1.8.0.6-jumbo-1-2516-g98202b5 [linux-gnu 64-bit AVX-ac]
--------------------------------------------------------------------------------

John Jumbo build detected.

form=tc_aes_xts (3-types)         guesses: 1500 0:00:00:17 DONE  [PASSED]

All tests passed without error.  Performed 1 tests.  Time used was 17 seconds
<!-- gh-comment-id:241289324 --> @frank-dittrich commented on GitHub (Aug 21, 2016): ``` (master)test $ ./jtrts.pl odf -v -stoponerror ------------------------------------------------------------------------------- - JtR-TestSuite (jtrts). Version 1.13, Dec 21, 2014. By, Jim Fougeron & others - Testing: John the Ripper 1.8.0.6-jumbo-1-2516-g98202b5 [linux-gnu 64-bit AVX-ac] -------------------------------------------------------------------------------- John Jumbo build detected. --config=FILE option is valid --field-separator-char=C option is valid --pot=NAME option is valid --encoding=NAME option is valid ascii.chr found, inc_ascii_72acb6963bf12701dfb06c8d1b00cad4 added as a capability alnum.chr found, inc_alnum_ee8763c850dee8e4b88ef547a8ed39b8 added as a capability Types to filter on: odf Capabilities in this build of john: jumbo core inc config_valid field_sep_valid local_pot_valid encode_valid utf8 cp1252 cp1251 koi8r cp437 cp737 cp850 cp858 cp866 iso8859-1 iso8859-15 inc_ascii_72acb6963bf12701dfb06c8d1b00cad4 inc_alnum_ee8763c850dee8e4b88ef547a8ed39b8 form=odf guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:odf guesses: 1350 0:00:00:00 DONE [PASSED] (1350 val-pwd) form=odf_1 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:odf_1 guesses: 1350 0:00:00:00 DONE [PASSED] (1350 val-pwd) ``` Why the difference of 1500 and 1350, and the test PASSED? And with tc_sha512 and tc_aes_xts, there isn't a .pot CHK line! ``` (master)test $ ./jtrts.pl tc_sha512 -stoponerror ------------------------------------------------------------------------------- - JtR-TestSuite (jtrts). Version 1.13, Dec 21, 2014. By, Jim Fougeron & others - Testing: John the Ripper 1.8.0.6-jumbo-1-2516-g98202b5 [linux-gnu 64-bit AVX-ac] -------------------------------------------------------------------------------- John Jumbo build detected. form=tc_sha512 guesses: 1500 0:00:00:13 DONE [PASSED] All tests passed without error. Performed 1 tests. Time used was 15 seconds ``` ``` (master)test $ ./jtrts.pl tc_aes_xts -stoponerror ------------------------------------------------------------------------------- - JtR-TestSuite (jtrts). Version 1.13, Dec 21, 2014. By, Jim Fougeron & others - Testing: John the Ripper 1.8.0.6-jumbo-1-2516-g98202b5 [linux-gnu 64-bit AVX-ac] -------------------------------------------------------------------------------- John Jumbo build detected. form=tc_aes_xts (3-types) guesses: 1500 0:00:00:17 DONE [PASSED] All tests passed without error. Performed 1 tests. Time used was 17 seconds ```
Author
Owner

@jfoug commented on GitHub (Aug 22, 2016):

if ($elems[0] =~ m/$SOURCE_HASH$/) {
# Truncated pot lines can't be used for this test
$ignored_pot_checks++;
next;
}

This is why only 1350 for odf (150 pot chop lines), and NO check for the TC data (they ALL are)

<!-- gh-comment-id:241292257 --> @jfoug commented on GitHub (Aug 22, 2016): if ($elems[0] =~ m/\$SOURCE_HASH\$/) { # Truncated pot lines can't be used for this test $ignored_pot_checks++; next; } This is why only 1350 for odf (150 pot chop lines), and NO check for the TC data (they ALL are)
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#1484
No description provided.