[GH-ISSUE #2261] Format as400-ssha1 has max. password length of 90, dynamic_1590 uses 125 #1515

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

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

Which one is correct?
Is that limit of 90 the max. AS/400 password length in bytes, or is it in characters and will be larger if passwords with non-ASCII characters in UTF-8 are used?

If AS/400 only supports 90, can dynamic_1590 be adjusted? Should dynamic_1590 it be adjusted, or should it keep 125, just in case the same algorithm is used somewhere else?

Originally created by @frank-dittrich on GitHub (Sep 5, 2016). Original GitHub issue: https://github.com/openwall/john/issues/2261 Which one is correct? Is that limit of 90 the max. AS/400 password length in bytes, or is it in characters and will be larger if passwords with non-ASCII characters in UTF-8 are used? If AS/400 only supports 90, can dynamic_1590 be adjusted? Should dynamic_1590 it be adjusted, or should it keep 125, just in case the same algorithm is used somewhere else?
bsakaguchi 2026-10-15 04:19:12 +07:00
Author
Owner
<!-- gh-comment-id:245139850 --> @magnumripper commented on GitHub (Sep 7, 2016): The max is 128 (depending on settings): https://publib.boulder.ibm.com/iseries/v5r2/ic2924/index.htm?info/rzakz/rzakzqpwdmaxlen.htm https://publib.boulder.ibm.com/iseries/v5r2/ic2924/index.htm?info/rzakz/rzakzpasswordoverview.htm
Author
Owner

@jfoug commented on GitHub (Sep 13, 2016):

I am not sure where the 125 'comes' from. Dyna, by default tries to stay to 110 bytes 'max' length for password and salt. Since this format has a fixed 20 byte size. That is why as400-ssha1 is showing 90 bytes (and actually the 'right' value for dynamic).

Now, since this is unicode, the 125 max length listed in dyna_1590, there is NO way it will work. So that has to be looked at (along with other unicode dyna formats).

<!-- gh-comment-id:246820233 --> @jfoug commented on GitHub (Sep 13, 2016): I am not sure where the 125 'comes' from. Dyna, by default tries to stay to 110 bytes 'max' length for password and salt. Since this format has a fixed 20 byte size. That is why as400-ssha1 is showing 90 bytes (and actually the 'right' value for dynamic). Now, since this is unicode, the 125 max length listed in dyna_1590, there is NO way it will work. So that has to be looked at (along with other unicode dyna formats).
Author
Owner

@jfoug commented on GitHub (Sep 13, 2016):

I see several dynamic formats with 125 byte max length (1032, 1033, 1400, 1507, 1590 and as400-ssha1 if you list all details for -form=dynamic). There should be no formats with length that long. There is a bug somewhere.

  • dynamic_1032: sha1_64(utf16($p)) (Peoplesoft)
  • dynamic_1033: sha1_64(utf16($p).$s)
  • dynamic_1400: sha1(utf16($p)) (Microsoft CREDHIST)
  • dynamic_1507: sha1(utf16($s.$p)) (Mcafee service pass. $s is a constant).
  • dynamic_1590: sha1(utf16be((space_pad_10($s).uc($p))) (IBM AS/400 SHA1)

So all of them are sha1 with utf16 So likely there is something with 1 or the other of those characteristics.

<!-- gh-comment-id:246821446 --> @jfoug commented on GitHub (Sep 13, 2016): I see several dynamic formats with 125 byte max length (1032, 1033, 1400, 1507, 1590 and as400-ssha1 if you list all details for -form=dynamic). There should be no formats with length that long. There is a bug somewhere. - dynamic_1032: sha1_64(utf16($p)) (Peoplesoft) - dynamic_1033: sha1_64(utf16($p).$s) - dynamic_1400: sha1(utf16($p)) (Microsoft CREDHIST) - dynamic_1507: sha1(utf16($s.$p)) (Mcafee service pass. $s is a constant). - dynamic_1590: sha1(utf16be((space_pad_10($s).uc($p))) (IBM AS/400 SHA1) So all of them are sha1 with utf16 So likely there is something with 1 or the other of those characteristics.
Author
Owner

@jfoug commented on GitHub (Sep 13, 2016):

We have this logic. I think this is very wrong

    // we allow for 3 bytes of utf8 data to make up the number of plaintext_length unicode chars.
    if ( (pFmt->params.flags&FMT_UNICODE) && options.target_enc == UTF_8 ) {
        //printf ("Here pFmt->params.plaintext_length=%d pPriv->pSetup->MaxInputLen=%d\n", pFmt->params.plaintext_length, pPriv->pSetup->MaxInputLen);
        pFmt->params.plaintext_length = MIN(125, pFmt->params.plaintext_length * 3);
    }
    else
        fmt_Dynamic.params.plaintext_length   = pFmt->params.plaintext_length;
<!-- gh-comment-id:246823308 --> @jfoug commented on GitHub (Sep 13, 2016): We have this logic. I think this is very wrong ``` c // we allow for 3 bytes of utf8 data to make up the number of plaintext_length unicode chars. if ( (pFmt->params.flags&FMT_UNICODE) && options.target_enc == UTF_8 ) { //printf ("Here pFmt->params.plaintext_length=%d pPriv->pSetup->MaxInputLen=%d\n", pFmt->params.plaintext_length, pPriv->pSetup->MaxInputLen); pFmt->params.plaintext_length = MIN(125, pFmt->params.plaintext_length * 3); } else fmt_Dynamic.params.plaintext_length = pFmt->params.plaintext_length; ```
Author
Owner

@magnumripper commented on GitHub (Sep 13, 2016):

Most UTF-16 formats has something like this in init

        if (options.target_enc == UTF_8)
                self->params.plaintext_length = MIN(125, 3 * PLAINTEXT_LENGTH);

What is wrong with that?

<!-- gh-comment-id:246823454 --> @magnumripper commented on GitHub (Sep 13, 2016): Most UTF-16 formats has something like this in init ``` if (options.target_enc == UTF_8) self->params.plaintext_length = MIN(125, 3 * PLAINTEXT_LENGTH); ``` What is wrong with that?
Author
Owner

@magnumripper commented on GitHub (Sep 13, 2016):

Hmm in that dynamic snippet I guess the "else" should be removed?

<!-- gh-comment-id:246823737 --> @magnumripper commented on GitHub (Sep 13, 2016): Hmm in that dynamic snippet I guess the "else" should be removed?
Author
Owner

@jfoug commented on GitHub (Sep 13, 2016):

dyna is different. There are several fixed limits, AND it is much more difficult to put the 'real' logic in needed to provide buffers that are TOO large, to later properly convert and see if things fit.

<!-- gh-comment-id:246823776 --> @jfoug commented on GitHub (Sep 13, 2016): dyna is different. There are several fixed limits, AND it is much more difficult to put the 'real' logic in needed to provide buffers that are TOO large, to later properly convert and see if things fit.
Author
Owner

@jfoug commented on GitHub (Sep 13, 2016):

no the else copies the 'prototype data into the runtime object. That else block simply says that what was compiled is what should be used.

<!-- gh-comment-id:246824139 --> @jfoug commented on GitHub (Sep 13, 2016): no the else copies the 'prototype data into the runtime object. That else block simply says that what was compiled is what should be used.
Author
Owner

@jfoug commented on GitHub (Sep 13, 2016):

I have to think about this one a bit. There are no buffer overflow checks. That was all being done with plaintext-length being done properly.

<!-- gh-comment-id:246824317 --> @jfoug commented on GitHub (Sep 13, 2016): I have to think about this one a bit. There are no buffer overflow checks. That was all being done with plaintext-length being done properly.
Author
Owner

@magnumripper commented on GitHub (Sep 13, 2016):

The actual limit is the UTF-16 buffer, no? If it can hold n characters of UTF-16, the MIN(125, 3 * n) logic should be correct.

<!-- gh-comment-id:246824908 --> @magnumripper commented on GitHub (Sep 13, 2016): The actual limit is the UTF-16 buffer, no? If it can hold `n` characters of UTF-16, the `MIN(125, 3 * n)` logic should be correct.
Author
Owner

@jfoug commented on GitHub (Sep 13, 2016):

What is wrong with that?

because, we can have plaintexts that end up being 256 bytes. That IS the buffer size for dyna. ALso, if this is anything other than a 'raw' format, then there will 100% be overflows.

<!-- gh-comment-id:246825089 --> @jfoug commented on GitHub (Sep 13, 2016): > What is wrong with that? because, we can have plaintexts that end up being 256 bytes. That IS the buffer size for dyna. ALso, if this is anything other than a 'raw' format, then there will 100% be overflows.
Author
Owner

@magnumripper commented on GitHub (Sep 13, 2016):

no the else copies the 'prototype data into the runtime object. That else block simply says that what was compiled is what should be used.

Yes but if the Unicode '3xsize' was applied, the resulting bigger number is never "used"? But I'm not seeing all code here.

<!-- gh-comment-id:246825282 --> @magnumripper commented on GitHub (Sep 13, 2016): > no the else copies the 'prototype data into the runtime object. That else block simply says that what was compiled is what should be used. Yes but if the Unicode '3xsize' was applied, the resulting bigger number is never "used"? But I'm not seeing all code here.
Author
Owner

@jfoug commented on GitHub (Sep 13, 2016):

Those lengths min(125,3*n) is ONLY correct if there is additional logic that at run time converts and counts utf characters. Dyna has nothing like that, nor no way to really do that at all.

<!-- gh-comment-id:246825508 --> @jfoug commented on GitHub (Sep 13, 2016): Those lengths `min(125,3*n)` is ONLY correct if there is additional logic that at run time converts and counts utf characters. Dyna has nothing like that, nor no way to really do that at all.
Author
Owner

@jfoug commented on GitHub (Sep 13, 2016):

John talks in bytes. So if 125 bytes of ASCII data are provided, at runtime that will balloon to 256 bytes. Hence the problem.

<!-- gh-comment-id:246825779 --> @jfoug commented on GitHub (Sep 13, 2016): John talks in bytes. So if 125 bytes of ASCII data are provided, at runtime that will balloon to 256 bytes. Hence the problem.
Author
Owner

@magnumripper commented on GitHub (Sep 13, 2016):

Yes but all UTF-16 formats has logic for truncating in set_key simply because that's the only place we can know. I'm pretty sure dyna has (had) that logic too.

<!-- gh-comment-id:246826091 --> @magnumripper commented on GitHub (Sep 13, 2016): Yes but all UTF-16 formats has logic for truncating in set_key simply because that's the only place we can know. I'm pretty sure dyna has (had) that logic too.
Author
Owner

@jfoug commented on GitHub (Sep 13, 2016):

Not dyna. Dyna has NO idea what extra logic will get done. Trust me, it is NOT a garden variety format, it has some constraints put on just what can be done. There is no way it can protect itself with overflows, other than to get the text lengths 'right'.

<!-- gh-comment-id:246826535 --> @jfoug commented on GitHub (Sep 13, 2016): Not dyna. Dyna has NO idea what extra logic will get done. Trust me, it is NOT a garden variety format, it has some constraints put on just what can be done. There is no way it can protect itself with overflows, other than to get the text lengths 'right'.
Author
Owner

@magnumripper commented on GitHub (Sep 13, 2016):

Actually the same goes for the other formats. NT can take 27 characters of UTF-16. If running UTF-8 we announce a maxlen of 81. However, if fed eg. 81 bytes of ASCII, set-key will truncate that to 27 characters - and ensure get_key will return the same truncated plain.

<!-- gh-comment-id:246826593 --> @magnumripper commented on GitHub (Sep 13, 2016): Actually the same goes for the other formats. NT can take 27 characters of UTF-16. If running UTF-8 we announce a maxlen of 81. However, if fed eg. 81 bytes of ASCII, set-key will truncate that to 27 characters - and ensure get_key will return the same truncated plain.
Author
Owner

@jfoug commented on GitHub (Sep 13, 2016):

ok, try to figure the length out for:

sha1($s.utf16($p.$u).'some constant string')

and do that generically within set key, and do that all without slowing down the format. It simply can not be done.

<!-- gh-comment-id:246827097 --> @jfoug commented on GitHub (Sep 13, 2016): ok, try to figure the length out for: ``` sha1($s.utf16($p.$u).'some constant string') ``` and do that generically within set key, and do that all without slowing down the format. It simply can not be done.
Author
Owner

@magnumripper commented on GitHub (Sep 13, 2016):

Those lengths min(125,3*n) is ONLY correct if there is additional logic that at run time converts and counts utf characters. Dyna has nothing like that, nor no way to really do that at all.

Well dyna has things like this

                if (utf16 == 1)
                    outlen = enc_to_utf16(utf16Str, 27, Str, len) * sizeof(UTF16);
                else
                    outlen = enc_to_utf16_be(utf16Str, 27, Str, len) * sizeof(UTF16);
                if (outlen < 0)
                    outlen = strlen16(utf16Str) * sizeof(UTF16);

just like the other formats (that was __append_string() but similar code is all over the place)

<!-- gh-comment-id:246827125 --> @magnumripper commented on GitHub (Sep 13, 2016): > Those lengths `min(125,3*n)` is ONLY correct if there is additional logic that at run time converts and counts utf characters. Dyna has nothing like that, nor no way to really do that at all. Well dyna has things like this ``` if (utf16 == 1) outlen = enc_to_utf16(utf16Str, 27, Str, len) * sizeof(UTF16); else outlen = enc_to_utf16_be(utf16Str, 27, Str, len) * sizeof(UTF16); if (outlen < 0) outlen = strlen16(utf16Str) * sizeof(UTF16); ``` just like the other formats (that was __append_string() but similar code is all over the place)
Author
Owner

@jfoug commented on GitHub (Sep 13, 2016):

Right now, the way the code is written, I can not even 'force' a plain text length, if I know the max. NOTE, if the user does provide 3 byte utf-8 input, then dyna will only be able to do 1/3 the length that it possibly could do, BECAUSE it has to be able to handle the worst case situation (which is the most common), which is pure ASCII data.

<!-- gh-comment-id:246828239 --> @jfoug commented on GitHub (Sep 13, 2016): Right now, the way the code is written, I can not even 'force' a plain text length, if I know the max. NOTE, if the user does provide 3 byte utf-8 input, then dyna will only be able to do 1/3 the length that it possibly could do, BECAUSE it has to be able to handle the worst case situation (which is the most common), which is pure ASCII data.
Author
Owner

@magnumripper commented on GitHub (Sep 13, 2016):

That may be true for some formats, like dynamic compiler or whatever. But it's not generally true. You are saying that dynamic_33 can only do a max of 9 in UTF-8 mode? That is simply not true. It announces 81 and can handle up to 27 characters just like the plain NT formats.

<!-- gh-comment-id:246829619 --> @magnumripper commented on GitHub (Sep 13, 2016): That may be true for some formats, like dynamic compiler or whatever. But it's not generally true. You are saying that dynamic_33 can only do a max of 9 in UTF-8 mode? That is simply not true. It announces 81 and can handle up to 27 **characters** just like the plain NT formats.
Author
Owner

@jfoug commented on GitHub (Sep 13, 2016):

That was due to putting in special code just for that format. I avoid specialization as much as possible. I need to dig deep into dyna, and will do so just to make sure things are being handled.

<!-- gh-comment-id:246832826 --> @jfoug commented on GitHub (Sep 13, 2016): That was due to putting in special code just for that format. I avoid specialization as much as possible. I need to dig deep into dyna, and will do so just to make sure things are being handled.
Author
Owner

@jfoug commented on GitHub (Sep 14, 2016):

Ok, I made some changes to dyna (not checked in, still testing), removing that *=3 and /=3 crap. This is just with ascii values. I will retest with 2byte utf-8 and 3byte utf-8 dictionary, to see just where we are at. I was almost 100% sure that 90 characters were going to be correct, and they were. There is a LOT of code in dyna that limits the password (and salt) to 110 characters. That would be either 110 characters OR 110 utf16 characters (this was the reason for 110, they both 'fit' into the 2 limb 64 bit MD hash buffers, which is the MAX we can use in a generic manner.

Note, this was with ascii. I will repost with the 2 and 3 character utf-8 wordlists.

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

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

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

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

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

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

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

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

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

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

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

form=dynamic_1590_ascii_91        guesses: 1483 -show=1483 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:dynamic_1590_ascii_91    guesses: 1483 0:00:00:00 DONE  [PASSED] (1483 val-pwd)

form=dynamic_1590_ascii_92        guesses: 1464 -show=1464 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:dynamic_1590_ascii_92    guesses: 1464 0:00:00:00 DONE  [PASSED] (1464 val-pwd)

form=dynamic_1590_ascii_93        guesses: 1447 -show=1447 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:dynamic_1590_ascii_93    guesses: 1447 0:00:00:00 DONE  [PASSED] (1447 val-pwd)

form=dynamic_1590_ascii_94        guesses: 1434 -show=1434 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:dynamic_1590_ascii_94    guesses: 1434 0:00:00:00 DONE  [PASSED] (1434 val-pwd)

form=dynamic_1590_ascii_95        guesses: 1421 -show=1420 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:dynamic_1590_ascii_95    guesses: 1420 0:00:00:00 DONE  [PASSED] (1420 val-pwd)

form=dynamic_1590_ascii_96        guesses: 1408 -show=1408 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:dynamic_1590_ascii_96    guesses: 1408 0:00:00:00 DONE  [PASSED] (1408 val-pwd)

<!-- gh-comment-id:247080652 --> @jfoug commented on GitHub (Sep 14, 2016): Ok, I made some changes to dyna (not checked in, still testing), removing that *=3 and /=3 crap. This is just with ascii values. I will retest with 2byte utf-8 and 3byte utf-8 dictionary, to see just where we are at. I was almost 100% sure that 90 characters were going to be correct, and they were. There is a LOT of code in dyna that limits the password (and salt) to 110 characters. That would be either 110 characters OR 110 utf16 characters (this was the reason for 110, they both 'fit' into the 2 limb 64 bit MD hash buffers, which is the MAX we can use in a generic manner. Note, this was with ascii. I will repost with the 2 and 3 character utf-8 wordlists. ``` form=dynamic_1590_ascii_80 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:dynamic_1590_ascii_80 guesses: 1500 0:00:00:00 DONE [PASSED] (1500 val-pwd) form=dynamic_1590_ascii_81 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:dynamic_1590_ascii_81 guesses: 1500 0:00:00:00 DONE [PASSED] (1500 val-pwd) form=dynamic_1590_ascii_82 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:dynamic_1590_ascii_82 guesses: 1500 0:00:00:00 DONE [PASSED] (1500 val-pwd) form=dynamic_1590_ascii_83 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:dynamic_1590_ascii_83 guesses: 1500 0:00:00:00 DONE [PASSED] (1500 val-pwd) form=dynamic_1590_ascii_84 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:dynamic_1590_ascii_84 guesses: 1500 0:00:00:00 DONE [PASSED] (1500 val-pwd) form=dynamic_1590_ascii_85 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:dynamic_1590_ascii_85 guesses: 1499 0:00:00:00 DONE [PASSED] (1499 val-pwd) form=dynamic_1590_ascii_86 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:dynamic_1590_ascii_86 guesses: 1500 0:00:00:00 DONE [PASSED] (1500 val-pwd) form=dynamic_1590_ascii_87 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:dynamic_1590_ascii_87 guesses: 1500 0:00:00:00 DONE [PASSED] (1500 val-pwd) form=dynamic_1590_ascii_88 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:dynamic_1590_ascii_88 guesses: 1500 0:00:00:00 DONE [PASSED] (1500 val-pwd) form=dynamic_1590_ascii_89 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:dynamic_1590_ascii_89 guesses: 1500 0:00:00:00 DONE [PASSED] (1500 val-pwd) form=dynamic_1590_ascii_90 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:dynamic_1590_ascii_90 guesses: 1500 0:00:00:00 DONE [PASSED] (1500 val-pwd) form=dynamic_1590_ascii_91 guesses: 1483 -show=1483 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED1!!! ret_val=0] .pot CHK:dynamic_1590_ascii_91 guesses: 1483 0:00:00:00 DONE [PASSED] (1483 val-pwd) form=dynamic_1590_ascii_92 guesses: 1464 -show=1464 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED1!!! ret_val=0] .pot CHK:dynamic_1590_ascii_92 guesses: 1464 0:00:00:00 DONE [PASSED] (1464 val-pwd) form=dynamic_1590_ascii_93 guesses: 1447 -show=1447 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED1!!! ret_val=0] .pot CHK:dynamic_1590_ascii_93 guesses: 1447 0:00:00:00 DONE [PASSED] (1447 val-pwd) form=dynamic_1590_ascii_94 guesses: 1434 -show=1434 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED1!!! ret_val=0] .pot CHK:dynamic_1590_ascii_94 guesses: 1434 0:00:00:00 DONE [PASSED] (1434 val-pwd) form=dynamic_1590_ascii_95 guesses: 1421 -show=1420 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED1!!! ret_val=0] .pot CHK:dynamic_1590_ascii_95 guesses: 1420 0:00:00:00 DONE [PASSED] (1420 val-pwd) form=dynamic_1590_ascii_96 guesses: 1408 -show=1408 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED1!!! ret_val=0] .pot CHK:dynamic_1590_ascii_96 guesses: 1408 0:00:00:00 DONE [PASSED] (1408 val-pwd) ```
Author
Owner

@jfoug commented on GitHub (Sep 14, 2016):

Ok, in 'current' form, here is what the utf8 dictionaries do for dyna. NOTE, this is 90 'text' characters, not 90 utf8-characters. So I do need to see why this is happening. BUT this may be done this way to 'guard' dyna, but is done wrong.

form=dynamic_1590_utf8-2_41       guesses: 1500 0:00:00:00 DONE  [PASSED]
.pot CHK:dynamic_1590_utf8-2_41   guesses: 1500 0:00:00:00 DONE  [PASSED] (1500 val-pwd)

form=dynamic_1590_utf8-2_42       guesses: 1500 0:00:00:00 DONE  [PASSED]
.pot CHK:dynamic_1590_utf8-2_42   guesses: 1500 0:00:00:00 DONE  [PASSED] (1500 val-pwd)

form=dynamic_1590_utf8-2_43       guesses: 1500 0:00:00:00 DONE  [PASSED]
.pot CHK:dynamic_1590_utf8-2_43   guesses: 1500 0:00:00:00 DONE  [PASSED] (1500 val-pwd)

form=dynamic_1590_utf8-2_44       guesses: 1500 0:00:00:00 DONE  [PASSED]
.pot CHK:dynamic_1590_utf8-2_44   guesses: 1500 0:00:00:00 DONE  [PASSED] (1500 val-pwd)

form=dynamic_1590_utf8-2_45       guesses: 1500 0:00:00:00 DONE  [PASSED]
.pot CHK:dynamic_1590_utf8-2_45   guesses: 1500 0:00:00:00 DONE  [PASSED] (1500 val-pwd)

form=dynamic_1590_utf8-2_46       guesses: 1468 -show=1468 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:dynamic_1590_utf8-2_46   guesses: 1468 0:00:00:00 DONE  [PASSED] (1468 val-pwd)

form=dynamic_1590_utf8-2_47       guesses: 1437 -show=1437 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:dynamic_1590_utf8-2_47   guesses: 1437 0:00:00:00 DONE  [PASSED] (1437 val-pwd)

form=dynamic_1590_utf8-2_48       guesses: 1406 -show=1406 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:dynamic_1590_utf8-2_48   guesses: 1406 0:00:00:00 DONE  [PASSED] (1406 val-pwd)
form=dynamic_1590_utf8-3_25       guesses: 1500 0:00:00:00 DONE  [PASSED]
.pot CHK:dynamic_1590_utf8-3_25   guesses: 1500 0:00:00:00 DONE  [PASSED] (1500 val-pwd)

form=dynamic_1590_utf8-3_26       guesses: 1500 0:00:00:00 DONE  [PASSED]
.pot CHK:dynamic_1590_utf8-3_26   guesses: 1500 0:00:00:00 DONE  [PASSED] (1500 val-pwd)

form=dynamic_1590_utf8-3_27       guesses: 1500 0:00:00:00 DONE  [PASSED]
.pot CHK:dynamic_1590_utf8-3_27   guesses: 1500 0:00:00:00 DONE  [PASSED] (1500 val-pwd)

form=dynamic_1590_utf8-3_28       guesses: 1500 0:00:00:00 DONE  [PASSED]
.pot CHK:dynamic_1590_utf8-3_28   guesses: 1500 0:00:00:00 DONE  [PASSED] (1500 val-pwd)

form=dynamic_1590_utf8-3_29       guesses: 1500 0:00:00:00 DONE  [PASSED]
.pot CHK:dynamic_1590_utf8-3_29   guesses: 1500 0:00:00:00 DONE  [PASSED] (1500 val-pwd)

form=dynamic_1590_utf8-3_30       guesses: 1500 0:00:00:00 DONE  [PASSED]
.pot CHK:dynamic_1590_utf8-3_30   guesses: 1500 0:00:00:00 DONE  [PASSED] (1500 val-pwd)

form=dynamic_1590_utf8-3_31       guesses: 1450 -show=1450 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:dynamic_1590_utf8-3_31   guesses: 1450 0:00:00:00 DONE  [PASSED] (1450 val-pwd)

form=dynamic_1590_utf8-3_32       guesses: 1399 -show=1399 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:dynamic_1590_utf8-3_32   guesses: 1399 0:00:00:00 DONE  [PASSED] (1399 val-pwd)

form=dynamic_1590_utf8-3_33       guesses: 1365 -show=1365 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:dynamic_1590_utf8-3_33   guesses: 1365 0:00:00:00 DONE  [PASSED] (1365 val-pwd)

form=dynamic_1590_utf8-3_34       guesses: 1328 -show=1328 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:dynamic_1590_utf8-3_34   guesses: 1328 0:00:00:00 DONE  [PASSED] (1328 val-pwd)
<!-- gh-comment-id:247097421 --> @jfoug commented on GitHub (Sep 14, 2016): Ok, in 'current' form, here is what the utf8 dictionaries do for dyna. NOTE, this is 90 'text' characters, not 90 utf8-characters. So I do need to see why this is happening. BUT this may be done this way to 'guard' dyna, but is done wrong. ``` form=dynamic_1590_utf8-2_41 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:dynamic_1590_utf8-2_41 guesses: 1500 0:00:00:00 DONE [PASSED] (1500 val-pwd) form=dynamic_1590_utf8-2_42 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:dynamic_1590_utf8-2_42 guesses: 1500 0:00:00:00 DONE [PASSED] (1500 val-pwd) form=dynamic_1590_utf8-2_43 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:dynamic_1590_utf8-2_43 guesses: 1500 0:00:00:00 DONE [PASSED] (1500 val-pwd) form=dynamic_1590_utf8-2_44 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:dynamic_1590_utf8-2_44 guesses: 1500 0:00:00:00 DONE [PASSED] (1500 val-pwd) form=dynamic_1590_utf8-2_45 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:dynamic_1590_utf8-2_45 guesses: 1500 0:00:00:00 DONE [PASSED] (1500 val-pwd) form=dynamic_1590_utf8-2_46 guesses: 1468 -show=1468 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED1!!! ret_val=0] .pot CHK:dynamic_1590_utf8-2_46 guesses: 1468 0:00:00:00 DONE [PASSED] (1468 val-pwd) form=dynamic_1590_utf8-2_47 guesses: 1437 -show=1437 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED1!!! ret_val=0] .pot CHK:dynamic_1590_utf8-2_47 guesses: 1437 0:00:00:00 DONE [PASSED] (1437 val-pwd) form=dynamic_1590_utf8-2_48 guesses: 1406 -show=1406 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED1!!! ret_val=0] .pot CHK:dynamic_1590_utf8-2_48 guesses: 1406 0:00:00:00 DONE [PASSED] (1406 val-pwd) ``` ``` form=dynamic_1590_utf8-3_25 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:dynamic_1590_utf8-3_25 guesses: 1500 0:00:00:00 DONE [PASSED] (1500 val-pwd) form=dynamic_1590_utf8-3_26 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:dynamic_1590_utf8-3_26 guesses: 1500 0:00:00:00 DONE [PASSED] (1500 val-pwd) form=dynamic_1590_utf8-3_27 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:dynamic_1590_utf8-3_27 guesses: 1500 0:00:00:00 DONE [PASSED] (1500 val-pwd) form=dynamic_1590_utf8-3_28 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:dynamic_1590_utf8-3_28 guesses: 1500 0:00:00:00 DONE [PASSED] (1500 val-pwd) form=dynamic_1590_utf8-3_29 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:dynamic_1590_utf8-3_29 guesses: 1500 0:00:00:00 DONE [PASSED] (1500 val-pwd) form=dynamic_1590_utf8-3_30 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:dynamic_1590_utf8-3_30 guesses: 1500 0:00:00:00 DONE [PASSED] (1500 val-pwd) form=dynamic_1590_utf8-3_31 guesses: 1450 -show=1450 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED1!!! ret_val=0] .pot CHK:dynamic_1590_utf8-3_31 guesses: 1450 0:00:00:00 DONE [PASSED] (1450 val-pwd) form=dynamic_1590_utf8-3_32 guesses: 1399 -show=1399 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED1!!! ret_val=0] .pot CHK:dynamic_1590_utf8-3_32 guesses: 1399 0:00:00:00 DONE [PASSED] (1399 val-pwd) form=dynamic_1590_utf8-3_33 guesses: 1365 -show=1365 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED1!!! ret_val=0] .pot CHK:dynamic_1590_utf8-3_33 guesses: 1365 0:00:00:00 DONE [PASSED] (1365 val-pwd) form=dynamic_1590_utf8-3_34 guesses: 1328 -show=1328 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED1!!! ret_val=0] .pot CHK:dynamic_1590_utf8-3_34 guesses: 1328 0:00:00:00 DONE [PASSED] (1328 val-pwd) ```
Author
Owner

@jfoug commented on GitHub (Sep 14, 2016):

Ok, I have made a couple changes, and I think this is the best that can get in dynamic, due to dynamic constraints (110 characters) and overall john constraints (125 bytes).

All of these for dyna_1590 (the unicode as400-ssha1)
ascii was 90, still 90
utf8-2 was 45, now 62 (trunc: 1/2 of 125)
utf8-3 was 30, now 41 (trunc: 1/3 of 125)

I believe this is the 'best' we can do. So knowing the 'exact' length of a password for these type formats in dyna will be nuanced. It is a combination of 110 bytes vs the number of characters that can be produced with that. Also, salt it taken into account, and word+salt can not be > 110 characters (if 'auto-detect length logic used).

There will still be issues that we need to address. There will likely need to be a 'new' length, that is max characters for password. Up to this point, almost all computations have been max bytes, BUT it has been used for both bytes and characters. Up to this point, it has 'worked', and not bitten us. But I think we may need to address the distinction.

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

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

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

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

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

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

form=dynamic_1590_ascii_91        guesses: 1483 -show=1483 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:dynamic_1590_ascii_91    guesses: 1483 0:00:00:00 DONE  [PASSED] (1483 val-pwd)

form=dynamic_1590_ascii_92        guesses: 1464 -show=1464 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:dynamic_1590_ascii_92    guesses: 1464 0:00:00:00 DONE  [PASSED] (1464 val-pwd)


form=dynamic_1590_utf8-2_56       guesses: 1500 0:00:00:00 DONE  [PASSED]
.pot CHK:dynamic_1590_utf8-2_56   guesses: 1500 0:00:00:00 DONE  [PASSED] (1500 val-pwd)

form=dynamic_1590_utf8-2_57       guesses: 1500 0:00:00:00 DONE  [PASSED]
.pot CHK:dynamic_1590_utf8-2_57   guesses: 1500 0:00:00:00 DONE  [PASSED] (1500 val-pwd)

form=dynamic_1590_utf8-2_58       guesses: 1500 0:00:00:00 DONE  [PASSED]
.pot CHK:dynamic_1590_utf8-2_58   guesses: 1500 0:00:00:00 DONE  [PASSED] (1500 val-pwd)

form=dynamic_1590_utf8-2_59       guesses: 1500 0:00:00:00 DONE  [PASSED]
.pot CHK:dynamic_1590_utf8-2_59   guesses: 1500 0:00:00:00 DONE  [PASSED] (1500 val-pwd)

form=dynamic_1590_utf8-2_60       guesses: 1500 0:00:00:00 DONE  [PASSED]
.pot CHK:dynamic_1590_utf8-2_60   guesses: 1500 0:00:00:00 DONE  [PASSED] (1500 val-pwd)

form=dynamic_1590_utf8-2_61       guesses: 1500 0:00:00:00 DONE  [PASSED]
.pot CHK:dynamic_1590_utf8-2_61   guesses: 1500 0:00:00:00 DONE  [PASSED] (1500 val-pwd)

form=dynamic_1590_utf8-2_62       guesses: 1500 0:00:00:00 DONE  [PASSED]
.pot CHK:dynamic_1590_utf8-2_62   guesses: 1500 0:00:00:00 DONE  [PASSED] (1500 val-pwd)

form=dynamic_1590_utf8-2_63       guesses: 1473 -show=1473 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:dynamic_1590_utf8-2_63   guesses: 1473 0:00:00:00 DONE  [PASSED] (1473 val-pwd)

form=dynamic_1590_utf8-2_64       guesses: 1447 -show=1447 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:dynamic_1590_utf8-2_64   guesses: 1447 0:00:00:00 DONE  [PASSED] (1447 val-pwd)


form=dynamic_1590_utf8-3_35       guesses: 1500 0:00:00:00 DONE  [PASSED]
.pot CHK:dynamic_1590_utf8-3_35   guesses: 1500 0:00:00:00 DONE  [PASSED] (1500 val-pwd)

form=dynamic_1590_utf8-3_36       guesses: 1500 0:00:00:00 DONE  [PASSED]
.pot CHK:dynamic_1590_utf8-3_36   guesses: 1500 0:00:00:00 DONE  [PASSED] (1500 val-pwd)

form=dynamic_1590_utf8-3_37       guesses: 1500 0:00:00:00 DONE  [PASSED]
.pot CHK:dynamic_1590_utf8-3_37   guesses: 1500 0:00:00:00 DONE  [PASSED] (1500 val-pwd)

form=dynamic_1590_utf8-3_38       guesses: 1500 0:00:00:00 DONE  [PASSED]
.pot CHK:dynamic_1590_utf8-3_38   guesses: 1500 0:00:00:00 DONE  [PASSED] (1500 val-pwd)

form=dynamic_1590_utf8-3_39       guesses: 1500 0:00:00:00 DONE  [PASSED]
.pot CHK:dynamic_1590_utf8-3_39   guesses: 1500 0:00:00:00 DONE  [PASSED] (1500 val-pwd)

form=dynamic_1590_utf8-3_40       guesses: 1500 0:00:00:00 DONE  [PASSED]
.pot CHK:dynamic_1590_utf8-3_40   guesses: 1500 0:00:00:00 DONE  [PASSED] (1500 val-pwd)

form=dynamic_1590_utf8-3_41       guesses: 1500 0:00:00:00 DONE  [PASSED]
.pot CHK:dynamic_1590_utf8-3_41   guesses: 1500 0:00:00:00 DONE  [PASSED] (1500 val-pwd)

form=dynamic_1590_utf8-3_42       guesses: 1468 -show=1468 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:dynamic_1590_utf8-3_42   guesses: 1468 0:00:00:00 DONE  [PASSED] (1468 val-pwd)

form=dynamic_1590_utf8-3_43       guesses: 1440 -show=1440 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:dynamic_1590_utf8-3_43   guesses: 1440 0:00:00:00 DONE  [PASSED] (1440 val-pwd)

<!-- gh-comment-id:247102235 --> @jfoug commented on GitHub (Sep 14, 2016): Ok, I have made a couple changes, and I think this is the best that can get in dynamic, due to dynamic constraints (110 characters) and overall john constraints (125 bytes). All of these for dyna_1590 (the unicode as400-ssha1) ascii was 90, still 90 utf8-2 was 45, now 62 (trunc: 1/2 of 125) utf8-3 was 30, now 41 (trunc: 1/3 of 125) I believe this is the 'best' we can do. So knowing the 'exact' length of a password for these type formats in dyna will be nuanced. It is a combination of 110 bytes vs the number of characters that can be produced with that. Also, salt it taken into account, and word+salt can not be > 110 characters (if 'auto-detect length logic used). There will still be issues that we need to address. There will likely need to be a 'new' length, that is max characters for password. Up to this point, almost all computations have been max bytes, BUT it has been used for both bytes and characters. Up to this point, it has 'worked', and not bitten us. But I think we may need to address the distinction. ``` form=dynamic_1590_ascii_85 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:dynamic_1590_ascii_85 guesses: 1499 0:00:00:00 DONE [PASSED] (1499 val-pwd) form=dynamic_1590_ascii_86 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:dynamic_1590_ascii_86 guesses: 1500 0:00:00:00 DONE [PASSED] (1500 val-pwd) form=dynamic_1590_ascii_87 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:dynamic_1590_ascii_87 guesses: 1500 0:00:00:00 DONE [PASSED] (1500 val-pwd) form=dynamic_1590_ascii_88 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:dynamic_1590_ascii_88 guesses: 1500 0:00:00:00 DONE [PASSED] (1500 val-pwd) form=dynamic_1590_ascii_89 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:dynamic_1590_ascii_89 guesses: 1500 0:00:00:00 DONE [PASSED] (1500 val-pwd) form=dynamic_1590_ascii_90 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:dynamic_1590_ascii_90 guesses: 1500 0:00:00:00 DONE [PASSED] (1500 val-pwd) form=dynamic_1590_ascii_91 guesses: 1483 -show=1483 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED1!!! ret_val=0] .pot CHK:dynamic_1590_ascii_91 guesses: 1483 0:00:00:00 DONE [PASSED] (1483 val-pwd) form=dynamic_1590_ascii_92 guesses: 1464 -show=1464 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED1!!! ret_val=0] .pot CHK:dynamic_1590_ascii_92 guesses: 1464 0:00:00:00 DONE [PASSED] (1464 val-pwd) form=dynamic_1590_utf8-2_56 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:dynamic_1590_utf8-2_56 guesses: 1500 0:00:00:00 DONE [PASSED] (1500 val-pwd) form=dynamic_1590_utf8-2_57 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:dynamic_1590_utf8-2_57 guesses: 1500 0:00:00:00 DONE [PASSED] (1500 val-pwd) form=dynamic_1590_utf8-2_58 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:dynamic_1590_utf8-2_58 guesses: 1500 0:00:00:00 DONE [PASSED] (1500 val-pwd) form=dynamic_1590_utf8-2_59 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:dynamic_1590_utf8-2_59 guesses: 1500 0:00:00:00 DONE [PASSED] (1500 val-pwd) form=dynamic_1590_utf8-2_60 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:dynamic_1590_utf8-2_60 guesses: 1500 0:00:00:00 DONE [PASSED] (1500 val-pwd) form=dynamic_1590_utf8-2_61 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:dynamic_1590_utf8-2_61 guesses: 1500 0:00:00:00 DONE [PASSED] (1500 val-pwd) form=dynamic_1590_utf8-2_62 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:dynamic_1590_utf8-2_62 guesses: 1500 0:00:00:00 DONE [PASSED] (1500 val-pwd) form=dynamic_1590_utf8-2_63 guesses: 1473 -show=1473 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED1!!! ret_val=0] .pot CHK:dynamic_1590_utf8-2_63 guesses: 1473 0:00:00:00 DONE [PASSED] (1473 val-pwd) form=dynamic_1590_utf8-2_64 guesses: 1447 -show=1447 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED1!!! ret_val=0] .pot CHK:dynamic_1590_utf8-2_64 guesses: 1447 0:00:00:00 DONE [PASSED] (1447 val-pwd) form=dynamic_1590_utf8-3_35 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:dynamic_1590_utf8-3_35 guesses: 1500 0:00:00:00 DONE [PASSED] (1500 val-pwd) form=dynamic_1590_utf8-3_36 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:dynamic_1590_utf8-3_36 guesses: 1500 0:00:00:00 DONE [PASSED] (1500 val-pwd) form=dynamic_1590_utf8-3_37 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:dynamic_1590_utf8-3_37 guesses: 1500 0:00:00:00 DONE [PASSED] (1500 val-pwd) form=dynamic_1590_utf8-3_38 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:dynamic_1590_utf8-3_38 guesses: 1500 0:00:00:00 DONE [PASSED] (1500 val-pwd) form=dynamic_1590_utf8-3_39 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:dynamic_1590_utf8-3_39 guesses: 1500 0:00:00:00 DONE [PASSED] (1500 val-pwd) form=dynamic_1590_utf8-3_40 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:dynamic_1590_utf8-3_40 guesses: 1500 0:00:00:00 DONE [PASSED] (1500 val-pwd) form=dynamic_1590_utf8-3_41 guesses: 1500 0:00:00:00 DONE [PASSED] .pot CHK:dynamic_1590_utf8-3_41 guesses: 1500 0:00:00:00 DONE [PASSED] (1500 val-pwd) form=dynamic_1590_utf8-3_42 guesses: 1468 -show=1468 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED1!!! ret_val=0] .pot CHK:dynamic_1590_utf8-3_42 guesses: 1468 0:00:00:00 DONE [PASSED] (1468 val-pwd) form=dynamic_1590_utf8-3_43 guesses: 1440 -show=1440 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED1!!! ret_val=0] .pot CHK:dynamic_1590_utf8-3_43 guesses: 1440 0:00:00:00 DONE [PASSED] (1440 val-pwd) ```
Author
Owner

@jfoug commented on GitHub (Sep 14, 2016):

Ok, here is where the problem comes in. Using the ascii only dictionary. 1 to 140 byte passwords, shuffled around randomly. This is the same run that if -enc:utf8 is NOT used, gets 1500 until 90 byte max input. So something is being overwritten, or something is being truncated. I think dynamic is 'safe' for true data in ascii format, OR in utf8 encoding (as long as the -enc:utf8 is used) BUT if we have characters that are not multi-byte, then we either get overflow or truncations even when the code 'should' work.

form=dynamic_1590_ascii-enc_80    guesses: 1354 -show=1354 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:dynamic_1590_ascii-enc_8 guesses: 1354 0:00:00:00 DONE  [PASSED] (1354 val-pwd)

form=dynamic_1590_ascii-enc_81    guesses: 1354 -show=1354 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:dynamic_1590_ascii-enc_8 guesses: 1354 0:00:00:00 DONE  [PASSED] (1354 val-pwd)

form=dynamic_1590_ascii-enc_82    guesses: 1353 -show=1353 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:dynamic_1590_ascii-enc_8 guesses: 1353 0:00:00:00 DONE  [PASSED] (1353 val-pwd)

form=dynamic_1590_ascii-enc_83    guesses: 1351 -show=1351 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:dynamic_1590_ascii-enc_8 guesses: 1351 0:00:00:00 DONE  [PASSED] (1351 val-pwd)

form=dynamic_1590_ascii-enc_84    guesses: 1350 -show=1350 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:dynamic_1590_ascii-enc_8 guesses: 1350 0:00:00:00 DONE  [PASSED] (1350 val-pwd)

form=dynamic_1590_ascii-enc_85    guesses: 1349 -show=1350 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:dynamic_1590_ascii-enc_8 guesses: 1349 0:00:00:00 DONE  [PASSED] (1349 val-pwd)

form=dynamic_1590_ascii-enc_86    guesses: 1350 -show=1350 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:dynamic_1590_ascii-enc_8 guesses: 1350 0:00:00:00 DONE  [PASSED] (1350 val-pwd)

form=dynamic_1590_ascii-enc_87    guesses: 1352 -show=1352 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:dynamic_1590_ascii-enc_8 guesses: 1352 0:00:00:00 DONE  [PASSED] (1352 val-pwd)

form=dynamic_1590_ascii-enc_88    guesses: 1354 -show=1354 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:dynamic_1590_ascii-enc_8 guesses: 1354 0:00:00:00 DONE  [PASSED] (1354 val-pwd)

form=dynamic_1590_ascii-enc_89    guesses: 1356 -show=1356 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:dynamic_1590_ascii-enc_8 guesses: 1356 0:00:00:00 DONE  [PASSED] (1356 val-pwd)

form=dynamic_1590_ascii-enc_90    guesses: 1355 -show=1355 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:dynamic_1590_ascii-enc_9 guesses: 1355 0:00:00:00 DONE  [PASSED] (1355 val-pwd)

form=dynamic_1590_ascii-enc_91    guesses: 1353 -show=1353 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:dynamic_1590_ascii-enc_9 guesses: 1353 0:00:00:00 DONE  [PASSED] (1353 val-pwd)

form=dynamic_1590_ascii-enc_92    guesses: 1350 -show=1350 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:dynamic_1590_ascii-enc_9 guesses: 1350 0:00:00:00 DONE  [PASSED] (1350 val-pwd)

form=dynamic_1590_ascii-enc_93    guesses: 1349 -show=1349 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:dynamic_1590_ascii-enc_9 guesses: 1349 0:00:00:00 DONE  [PASSED] (1349 val-pwd)

form=dynamic_1590_ascii-enc_94    guesses: 1349 -show=1349 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:dynamic_1590_ascii-enc_9 guesses: 1349 0:00:00:00 DONE  [PASSED] (1349 val-pwd)

form=dynamic_1590_ascii-enc_95    guesses: 1350 -show=1350 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:dynamic_1590_ascii-enc_9 guesses: 1350 0:00:00:00 DONE  [PASSED] (1350 val-pwd)

form=dynamic_1590_ascii-enc_96    guesses: 1350 -show=1350 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:dynamic_1590_ascii-enc_9 guesses: 1350 0:00:00:00 DONE  [PASSED] (1350 val-pwd)

form=dynamic_1590_ascii-enc_97    guesses: 1353 -show=1353 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:dynamic_1590_ascii-enc_9 guesses: 1353 0:00:00:00 DONE  [PASSED] (1353 val-pwd)

form=dynamic_1590_ascii-enc_98    guesses: 1353 -show=1353 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:dynamic_1590_ascii-enc_9 guesses: 1353 0:00:00:00 DONE  [PASSED] (1353 val-pwd)

form=dynamic_1590_ascii-enc_99    guesses: 1356 -show=1356 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:dynamic_1590_ascii-enc_9 guesses: 1356 0:00:00:00 DONE  [PASSED] (1356 val-pwd)

form=dynamic_1590_ascii-enc_100   guesses: 1359 -show=1358 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:dynamic_1590_ascii-enc_1 guesses: 1358 0:00:00:00 DONE  [PASSED] (1358 val-pwd)

form=dynamic_1590_ascii-enc_101   guesses: 1358 -show=1358 0:00:00:00 DONE : Expected count(s) (1500)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:dynamic_1590_ascii-enc_1 guesses: 1358 0:00:00:00 DONE  [PASSED] (1358 val-pwd)
<!-- gh-comment-id:247111307 --> @jfoug commented on GitHub (Sep 14, 2016): Ok, here is where the problem comes in. Using the ascii only dictionary. 1 to 140 byte passwords, shuffled around randomly. This is the same run that if -enc:utf8 is NOT used, gets 1500 until 90 byte max input. So something is being overwritten, or something is being truncated. I think dynamic is 'safe' for true data in ascii format, OR in utf8 encoding (as long as the -enc:utf8 is used) BUT if we have characters that are not multi-byte, then we either get overflow or truncations even when the code 'should' work. ``` form=dynamic_1590_ascii-enc_80 guesses: 1354 -show=1354 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED1!!! ret_val=0] .pot CHK:dynamic_1590_ascii-enc_8 guesses: 1354 0:00:00:00 DONE [PASSED] (1354 val-pwd) form=dynamic_1590_ascii-enc_81 guesses: 1354 -show=1354 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED1!!! ret_val=0] .pot CHK:dynamic_1590_ascii-enc_8 guesses: 1354 0:00:00:00 DONE [PASSED] (1354 val-pwd) form=dynamic_1590_ascii-enc_82 guesses: 1353 -show=1353 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED1!!! ret_val=0] .pot CHK:dynamic_1590_ascii-enc_8 guesses: 1353 0:00:00:00 DONE [PASSED] (1353 val-pwd) form=dynamic_1590_ascii-enc_83 guesses: 1351 -show=1351 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED1!!! ret_val=0] .pot CHK:dynamic_1590_ascii-enc_8 guesses: 1351 0:00:00:00 DONE [PASSED] (1351 val-pwd) form=dynamic_1590_ascii-enc_84 guesses: 1350 -show=1350 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED1!!! ret_val=0] .pot CHK:dynamic_1590_ascii-enc_8 guesses: 1350 0:00:00:00 DONE [PASSED] (1350 val-pwd) form=dynamic_1590_ascii-enc_85 guesses: 1349 -show=1350 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED1!!! ret_val=0] .pot CHK:dynamic_1590_ascii-enc_8 guesses: 1349 0:00:00:00 DONE [PASSED] (1349 val-pwd) form=dynamic_1590_ascii-enc_86 guesses: 1350 -show=1350 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED1!!! ret_val=0] .pot CHK:dynamic_1590_ascii-enc_8 guesses: 1350 0:00:00:00 DONE [PASSED] (1350 val-pwd) form=dynamic_1590_ascii-enc_87 guesses: 1352 -show=1352 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED1!!! ret_val=0] .pot CHK:dynamic_1590_ascii-enc_8 guesses: 1352 0:00:00:00 DONE [PASSED] (1352 val-pwd) form=dynamic_1590_ascii-enc_88 guesses: 1354 -show=1354 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED1!!! ret_val=0] .pot CHK:dynamic_1590_ascii-enc_8 guesses: 1354 0:00:00:00 DONE [PASSED] (1354 val-pwd) form=dynamic_1590_ascii-enc_89 guesses: 1356 -show=1356 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED1!!! ret_val=0] .pot CHK:dynamic_1590_ascii-enc_8 guesses: 1356 0:00:00:00 DONE [PASSED] (1356 val-pwd) form=dynamic_1590_ascii-enc_90 guesses: 1355 -show=1355 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED1!!! ret_val=0] .pot CHK:dynamic_1590_ascii-enc_9 guesses: 1355 0:00:00:00 DONE [PASSED] (1355 val-pwd) form=dynamic_1590_ascii-enc_91 guesses: 1353 -show=1353 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED1!!! ret_val=0] .pot CHK:dynamic_1590_ascii-enc_9 guesses: 1353 0:00:00:00 DONE [PASSED] (1353 val-pwd) form=dynamic_1590_ascii-enc_92 guesses: 1350 -show=1350 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED1!!! ret_val=0] .pot CHK:dynamic_1590_ascii-enc_9 guesses: 1350 0:00:00:00 DONE [PASSED] (1350 val-pwd) form=dynamic_1590_ascii-enc_93 guesses: 1349 -show=1349 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED1!!! ret_val=0] .pot CHK:dynamic_1590_ascii-enc_9 guesses: 1349 0:00:00:00 DONE [PASSED] (1349 val-pwd) form=dynamic_1590_ascii-enc_94 guesses: 1349 -show=1349 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED1!!! ret_val=0] .pot CHK:dynamic_1590_ascii-enc_9 guesses: 1349 0:00:00:00 DONE [PASSED] (1349 val-pwd) form=dynamic_1590_ascii-enc_95 guesses: 1350 -show=1350 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED1!!! ret_val=0] .pot CHK:dynamic_1590_ascii-enc_9 guesses: 1350 0:00:00:00 DONE [PASSED] (1350 val-pwd) form=dynamic_1590_ascii-enc_96 guesses: 1350 -show=1350 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED1!!! ret_val=0] .pot CHK:dynamic_1590_ascii-enc_9 guesses: 1350 0:00:00:00 DONE [PASSED] (1350 val-pwd) form=dynamic_1590_ascii-enc_97 guesses: 1353 -show=1353 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED1!!! ret_val=0] .pot CHK:dynamic_1590_ascii-enc_9 guesses: 1353 0:00:00:00 DONE [PASSED] (1353 val-pwd) form=dynamic_1590_ascii-enc_98 guesses: 1353 -show=1353 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED1!!! ret_val=0] .pot CHK:dynamic_1590_ascii-enc_9 guesses: 1353 0:00:00:00 DONE [PASSED] (1353 val-pwd) form=dynamic_1590_ascii-enc_99 guesses: 1356 -show=1356 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED1!!! ret_val=0] .pot CHK:dynamic_1590_ascii-enc_9 guesses: 1356 0:00:00:00 DONE [PASSED] (1356 val-pwd) form=dynamic_1590_ascii-enc_100 guesses: 1359 -show=1358 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED1!!! ret_val=0] .pot CHK:dynamic_1590_ascii-enc_1 guesses: 1358 0:00:00:00 DONE [PASSED] (1358 val-pwd) form=dynamic_1590_ascii-enc_101 guesses: 1358 -show=1358 0:00:00:00 DONE : Expected count(s) (1500) [!!!FAILED1!!! ret_val=0] .pot CHK:dynamic_1590_ascii-enc_1 guesses: 1358 0:00:00:00 DONE [PASSED] (1358 val-pwd) ```
Author
Owner

@jfoug commented on GitHub (Sep 14, 2016):

I am almost 100% sure that we have an overwrite problem. I did dynamic_1590_ascii_dic_80.in with -enc:utf8 and got 1354 found. re-running against same pot (with same input dict file), and it still shows the 146 uncracked hashes, but nothing new cracks. If pulled 1 unfound hash out and made a dic file of just the correct value, it cracks just fine. If I shuffle the ascii.dic file, then I found 129 of them. Rerunning finds no more. If I shuffle that dic, and re-run, I find 15, etc.

So there is something getting overwritten, not properly cleaned, etc.

(PS, Have I ever mentioned that I hate dynamic when it does not go right, lol)

<!-- gh-comment-id:247113992 --> @jfoug commented on GitHub (Sep 14, 2016): I am almost 100% sure that we have an overwrite problem. I did dynamic_1590_ascii_dic_80.in with -enc:utf8 and got 1354 found. re-running against same pot (with same input dict file), and it still shows the 146 uncracked hashes, but nothing new cracks. If pulled 1 unfound hash out and made a dic file of just the correct value, it cracks just fine. If I shuffle the ascii.dic file, then I found 129 of them. Rerunning finds no more. If I shuffle that dic, and re-run, I find 15, etc. So there is something getting overwritten, not properly cleaned, etc. (PS, Have I ever mentioned that I hate dynamic when it does not go right, lol)
Author
Owner

@jfoug commented on GitHub (Sep 25, 2016):

Ok, back to original question:

Which one is correct?

The max length password the format will handle is 90 bytes (actually 90 2 byte unicode characters). However, the format accepts data up to 125 bytes. This is so that inputs which are entirely made up of 2 byte utf8, will handle up to 62 unicode characters (max that fits in 125 bytes). If the input line is made up entirely of 3 byte utf8, then 41 unicode characters will be the max length we can have. If the input is a mix of ascii, unt8 (2 and 3 byte chars), then the max sized data the format can handle will be the minimum of 90 unicode chars, or the number of unicode chars that are in the 125 bytes of data.

The dynamic format is working properly now, no overwrites. All data in the TS is working properly, as it should.

<!-- gh-comment-id:249431360 --> @jfoug commented on GitHub (Sep 25, 2016): Ok, back to original question: > Which one is correct? The max length password the format will handle is 90 bytes (actually 90 2 byte unicode characters). However, the format accepts data up to 125 bytes. This is so that inputs which are entirely made up of 2 byte utf8, will handle up to 62 unicode characters (max that fits in 125 bytes). If the input line is made up entirely of 3 byte utf8, then 41 unicode characters will be the max length we can have. If the input is a mix of ascii, unt8 (2 and 3 byte chars), then the max sized data the format can handle will be the minimum of 90 unicode chars, or the number of unicode chars that are in the 125 bytes of data. The dynamic format is working properly now, no overwrites. All data in the TS is working properly, as it should.
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#1515
No description provided.