[GH-ISSUE #993] mssql TS error for cp737 #593

Closed
opened 2026-10-14 03:14:40 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @frank-dittrich on GitHub (Jan 3, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/993

(master)test $ ./jtrts.pl -type mssql 
-------------------------------------------------------------------------------
- JtR-TestSuite (jtrts). Version 1.13, Dec 21, 2014.  By, Jim Fougeron & others
- Testing:  John the Ripper password cracker, version 1.8.0.2-jumbo-1-bleeding_omp [linux-gnu 64-bit AVX-autoconf]
--------------------------------------------------------------------------------

John Jumbo build detected.

form=MSSql                        guesses: 1500 0:00:00:00 DONE  [PASSED]
.pot CHK:MSSql                    guesses: 1500 0:00:00:00 DONE  [PASSED]

form=MSSql-8859-1                 guesses: 1500 0:00:00:00 DONE  [PASSED]
.pot CHK:MSSql-8859-1             guesses: 1500 0:00:00:00 DONE  [PASSED]

form=MSSql-8859-1-gen             guesses: 1500 0:00:00:00 DONE  [PASSED]
.pot CHK:MSSql-8859-1-gen         guesses: 1500 0:00:00:00 DONE  [PASSED]

form=mssql-utf8                   guesses: 1229 0:00:00:00 DONE  [PASSED]
.pot CHK:mssql-utf8               guesses: 1229 0:00:00:00 DONE  [PASSED]

form=mssql-koi8r-gen              guesses: 1500 0:00:00:00 DONE  [PASSED]
.pot CHK:mssql-koi8r-gen          guesses: 1500 0:00:00:00 DONE  [PASSED]

form=mssql-koi8r                  guesses: 1500 0:00:00:00 DONE  [PASSED]
.pot CHK:mssql-koi8r              guesses: 1500 0:00:00:00 DONE  [PASSED]

form=mssql-cp1251-gen             guesses: 1500 0:00:00:00 DONE  [PASSED]
.pot CHK:mssql-cp1251-gen         guesses: 1500 0:00:00:00 DONE  [PASSED]

form=mssql-cp1251                 guesses: 1500 0:00:00:00 DONE  [PASSED]
.pot CHK:mssql-cp1251             guesses: 1500 0:00:00:00 DONE  [PASSED]

form=mssql-cp866-gen              guesses: 1500 0:00:00:00 DONE  [PASSED]
.pot CHK:mssql-cp866-gen          guesses: 1500 0:00:00:00 DONE  [PASSED]

form=mssql-cp866                  guesses: 1500 0:00:00:00 DONE  [PASSED]
.pot CHK:mssql-cp866              guesses: 1500 0:00:00:00 DONE  [PASSED]

form=mssql-cp850                  guesses: 1500 0:00:00:00 DONE  [PASSED]
.pot CHK:mssql-cp850              guesses: 1500 0:00:00:00 DONE  [PASSED]

form=mssql-cp858                  guesses: 1500 0:00:00:00 DONE  [PASSED]
.pot CHK:mssql-cp858              guesses: 1500 0:00:00:00 DONE  [PASSED]

form=mssql-cp737                  guesses: 1500 0:00:00:00 DONE  [PASSED]
.pot CHK:mssql-cp737              guesses: 1310 -show=1310 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED!!!]

form=mssql-cp437                  guesses: 1500 0:00:00:00 DONE  [PASSED]
.pot CHK:mssql-cp437              guesses: 1500 0:00:00:00 DONE  [PASSED]

form=mssql-iso8859-15             guesses: 1500 0:00:00:00 DONE  [PASSED]
.pot CHK:mssql-iso8859-15         guesses: 1500 0:00:00:00 DONE  [PASSED]

form=mssql-cp1252                 guesses: 1500 0:00:00:00 DONE  [PASSED]
.pot CHK:mssql-cp1252             guesses: 1500 0:00:00:00 DONE  [PASSED]

Some tests had Errors. Performed 16 tests.  1 errors reprocessing the .POT files
Time used was 26 seconds
Originally created by @frank-dittrich on GitHub (Jan 3, 2015). Original GitHub issue: https://github.com/openwall/john/issues/993 ``` (master)test $ ./jtrts.pl -type mssql ------------------------------------------------------------------------------- - JtR-TestSuite (jtrts). Version 1.13, Dec 21, 2014. By, Jim Fougeron & others - Testing: John the Ripper password cracker, version 1.8.0.2-jumbo-1-bleeding_omp [linux-gnu 64-bit AVX-autoconf] -------------------------------------------------------------------------------- John Jumbo build detected. form=MSSql guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:MSSql guesses: 1500 0:00:00:00 DONE [PASSED] form=MSSql-8859-1 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:MSSql-8859-1 guesses: 1500 0:00:00:00 DONE [PASSED] form=MSSql-8859-1-gen guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:MSSql-8859-1-gen guesses: 1500 0:00:00:00 DONE [PASSED] form=mssql-utf8 guesses: 1229 0:00:00:00 DONE [PASSED] .pot CHK:mssql-utf8 guesses: 1229 0:00:00:00 DONE [PASSED] form=mssql-koi8r-gen guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:mssql-koi8r-gen guesses: 1500 0:00:00:00 DONE [PASSED] form=mssql-koi8r guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:mssql-koi8r guesses: 1500 0:00:00:00 DONE [PASSED] form=mssql-cp1251-gen guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:mssql-cp1251-gen guesses: 1500 0:00:00:00 DONE [PASSED] form=mssql-cp1251 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:mssql-cp1251 guesses: 1500 0:00:00:00 DONE [PASSED] form=mssql-cp866-gen guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:mssql-cp866-gen guesses: 1500 0:00:00:00 DONE [PASSED] form=mssql-cp866 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:mssql-cp866 guesses: 1500 0:00:00:00 DONE [PASSED] form=mssql-cp850 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:mssql-cp850 guesses: 1500 0:00:00:00 DONE [PASSED] form=mssql-cp858 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:mssql-cp858 guesses: 1500 0:00:00:00 DONE [PASSED] form=mssql-cp737 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:mssql-cp737 guesses: 1310 -show=1310 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED!!!] form=mssql-cp437 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:mssql-cp437 guesses: 1500 0:00:00:00 DONE [PASSED] form=mssql-iso8859-15 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:mssql-iso8859-15 guesses: 1500 0:00:00:00 DONE [PASSED] form=mssql-cp1252 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:mssql-cp1252 guesses: 1500 0:00:00:00 DONE [PASSED] Some tests had Errors. Performed 16 tests. 1 errors reprocessing the .POT files Time used was 26 seconds ```
bsakaguchi 2026-10-14 03:14:40 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@magnumripper commented on GitHub (Jan 4, 2015):

Happens with J1 too

<!-- gh-comment-id:68631213 --> @magnumripper commented on GitHub (Jan 4, 2015): Happens with J1 too
Author
Owner

@jfoug commented on GitHub (Jan 4, 2015):

I temp changed the usage of cut -d: -f2- into a perl thing, and I still get 1310 upon replaying found passwords in the .pot file.

I think this one 'may' be in the format itself. I think the TS is giving correct results. I even tried running by hand, and then using my text editor to cut the hash off each line. Same results, 1310.

<!-- gh-comment-id:68633387 --> @jfoug commented on GitHub (Jan 4, 2015): I temp changed the usage of cut -d: -f2- into a perl thing, and I still get 1310 upon replaying found passwords in the .pot file. I think this one 'may' be in the format itself. I think the TS is giving correct results. I even tried running by hand, and then using my text editor to cut the hash off each line. Same results, 1310.
Author
Owner

@jfoug commented on GitHub (Jan 4, 2015):

Ok, here is a single word. First the original word:

$ hexdump -C 1word-737.dic
00000000  aa ab ac ad ae af b0                              |.......|

Now the upper cased word found in the .pot file:

$ hexdump -C tst4.pot
00000000  30 78 30 31 30 30 38 35  34 38 42 35 37 32 41 41  |0x01008548B572AA|
00000010  34 38 35 44 46 41 32 38  44 33 41 46 36 37 34 39  |485DFA28D3AF6749|
00000020  41 36 41 33 30 39 34 45  34 35 35 46 41 43 35 35  |A6A3094E455FAC55|
00000030  38 36 44 42 38 39 35 39  41 45 44 37 46 33 41 35  |86DB8959AED7F3A5|
00000040  35 39 46 46 38 37 42 45  41 30 44 41 31 45 33 36  |59FF87BEA0DA1E36|
00000050  30 32 41 33 42 45 30 35  41 35 44 46 37 46 3a aa  |02A3BE05A5DF7F:.|
00000060  93 94 95 96 97 b0 0a                              |.......|
00000067

which is:   aa 93 94 95 96 97 b0

We need to check if the upper casing is working properly for this encoding.

AA is greek lower case final sigma. That does not get upcase in the .pot result.
B0 is 'light shade'.
AB is lower tau 93 is upper upsilon (92 is upper tau, so HERE is a bug)
AC is lower upsilon 94 is upper phi (93 is upper upsilon)

Looks like we have an encoding bug in 737, off by one, I think.

The data in encoding_data.h is off by one. We may have to hand edit this, OR regen it again. Possibly there was a bug in perl at one time, that was fixed. Didn't we generate these in 'auto' mode from perl?

<!-- gh-comment-id:68633858 --> @jfoug commented on GitHub (Jan 4, 2015): Ok, here is a single word. First the original word: ``` $ hexdump -C 1word-737.dic 00000000 aa ab ac ad ae af b0 |.......| ``` Now the upper cased word found in the .pot file: ``` $ hexdump -C tst4.pot 00000000 30 78 30 31 30 30 38 35 34 38 42 35 37 32 41 41 |0x01008548B572AA| 00000010 34 38 35 44 46 41 32 38 44 33 41 46 36 37 34 39 |485DFA28D3AF6749| 00000020 41 36 41 33 30 39 34 45 34 35 35 46 41 43 35 35 |A6A3094E455FAC55| 00000030 38 36 44 42 38 39 35 39 41 45 44 37 46 33 41 35 |86DB8959AED7F3A5| 00000040 35 39 46 46 38 37 42 45 41 30 44 41 31 45 33 36 |59FF87BEA0DA1E36| 00000050 30 32 41 33 42 45 30 35 41 35 44 46 37 46 3a aa |02A3BE05A5DF7F:.| 00000060 93 94 95 96 97 b0 0a |.......| 00000067 which is: aa 93 94 95 96 97 b0 ``` We need to check if the upper casing is working properly for this encoding. AA is greek lower case final sigma. That does not get upcase in the .pot result. B0 is 'light shade'. AB is lower tau 93 is upper upsilon (92 is upper tau, so HERE is a bug) AC is lower upsilon 94 is upper phi (93 is upper upsilon) Looks like we have an encoding bug in 737, off by one, I think. The data in encoding_data.h is off by one. We may have to hand edit this, OR regen it again. Possibly there was a bug in perl at one time, that was fixed. Didn't we generate these in 'auto' mode from perl?
Author
Owner

@jfoug commented on GitHub (Jan 4, 2015):

Found the problem. There are more lower case than upper case. We can NOT put them into default order. We have to put the extra lc letter at the end of the array That extra char is the 'greek lower case final sigma', 0xAA

<!-- gh-comment-id:68634372 --> @jfoug commented on GitHub (Jan 4, 2015): Found the problem. There are more lower case than upper case. We can NOT put them into default order. We have to put the extra lc letter at the end of the array That extra char is the 'greek lower case final sigma', 0xAA
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#593
No description provided.