[GH-ISSUE #342] release 1.8.0-jumbo1 (off bleeding-jumbo branch) #82

Closed
opened 2026-10-14 02:51:47 +07:00 by bsakaguchi · 47 comments
Owner

Originally created by @kholia on GitHub (Jun 30, 2013).
Original GitHub issue: https://github.com/openwall/john/issues/342

Lot of people are inquiring about when the new jumbo release will be made. It has been a while since 1.8.0 came out.

It's time to release 1.8.0-jumbo1, guys!

CC @hdm.

Originally created by @kholia on GitHub (Jun 30, 2013). Original GitHub issue: https://github.com/openwall/john/issues/342 Lot of people are inquiring about when the new jumbo release will be made. It has been a while since 1.8.0 came out. It's time to release 1.8.0-jumbo1, guys! CC @hdm.
bsakaguchi 2026-10-14 02:51:47 +07:00
Author
Owner

@ukasz commented on GitHub (Jun 30, 2013):

Only one month left to cmiyc, I would not insist to releasing it earlier than that. But testing and fixing bugs in current code is something that we can and should do before the contest date.

<!-- gh-comment-id:20253118 --> @ukasz commented on GitHub (Jun 30, 2013): Only one month left to cmiyc, I would not insist to releasing it earlier than that. But testing and fixing bugs in current code is something that we can and should do before the contest date.
Author
Owner

@magnumripper commented on GitHub (Jul 1, 2013):

Adding this as an issue is moot. Fixing issues are the way to get to a release. When we get to a point where you feel we have release quality, discuss it on john-dev (or even john-users) - Solar is unlikely to read this.

<!-- gh-comment-id:20315795 --> @magnumripper commented on GitHub (Jul 1, 2013): Adding this as an issue is moot. Fixing issues are the way to get to a release. When we get to a point where you feel we have release quality, discuss it on john-dev (or even john-users) - Solar is unlikely to read this.
Author
Owner

@kholia commented on GitHub (Sep 3, 2013):

john-1.7.9-jumbo-7.tar.gz has a broken SIP format it seems (private report).

We need to get 1.8.0-jumbo1 out SOON.

<!-- gh-comment-id:23702230 --> @kholia commented on GitHub (Sep 3, 2013): john-1.7.9-jumbo-7.tar.gz has a broken SIP format it seems (private report). We need to get 1.8.0-jumbo1 out _SOON_.
Author
Owner

@magnumripper commented on GitHub (Sep 3, 2013):

Sure but it's still no use discussing that here. You need to convince Solar.

So SIP works fine in unstable & bleeding?

<!-- gh-comment-id:23703283 --> @magnumripper commented on GitHub (Sep 3, 2013): Sure but it's still no use discussing that here. You need to convince Solar. So SIP works fine in unstable & bleeding?
Author
Owner

@kholia commented on GitHub (Sep 3, 2013):

I understand that I need to convince Solar. That being said, can we please keep this issue open?

Only the "bleeding-jumbo" SIP version works.

<!-- gh-comment-id:23703398 --> @kholia commented on GitHub (Sep 3, 2013): I understand that I need to convince Solar. That being said, can we please keep this issue open? Only the "bleeding-jumbo" SIP version works.
Author
Owner

@magnumripper commented on GitHub (Sep 3, 2013):

If you "git diff unstable-jumbo..bleeding-jumbo SIP* sip*" you see no absolutely difference other than the difference in format structs etc. However, there are lots of difference between Jumbo-7 and unstable.

<!-- gh-comment-id:23703585 --> @magnumripper commented on GitHub (Sep 3, 2013): If you "git diff unstable-jumbo..bleeding-jumbo SIP\* sip*" you see no absolutely difference other than the difference in format structs etc. However, there are lots of difference between Jumbo-7 and unstable.
Author
Owner

@kholia commented on GitHub (Sep 3, 2013):

Maybe a user PEBKAC issue then. Nothing to worry about ;)

<!-- gh-comment-id:23703642 --> @kholia commented on GitHub (Sep 3, 2013): Maybe a user PEBKAC issue then. Nothing to worry about ;)
Author
Owner

@jfoug commented on GitHub (Nov 30, 2014):

If the main working group were to focus on the remaining issues in this milestone, I bet we could get them all done (or the ones that really should be done) prior to the end of the year. There are ONLY 10 of them left.

<!-- gh-comment-id:64971693 --> @jfoug commented on GitHub (Nov 30, 2014): If the main working group were to focus on the remaining issues in this milestone, I bet we could get them all done (or the ones that really should be done) prior to the end of the year. There are ONLY 10 of them left.
Author
Owner

@frank-dittrich commented on GitHub (Nov 30, 2014):

Issues I see:

benchmark-unify
benchmark-unify will need adjustments so that relbench can map a format's benchmark result of an older release to a newer format, and I think we need to discuss the best way to do it with Solar on john-dev, see https://github.com/magnumripper/JohnTheRipper/issues/735#issuecomment-55225983

rexgen
It would be great if rexgen support could be enabled in ./configure.
Unfortunately, the latest git commit no longer works for JtR, and there has been almost no activity for about half a year.
I have 5 open issues with no response from the developer, see
https://github.com/teeshop/rexgen/issues

There's https://github.com/kholia/rexgen as the only fork of https://github.com/teeshop/rexgen.
May be @kolia can address the open issues in his forked repository, to make sure there's a version which flawlessly works with john, and create pull requests for "upstream"?

<!-- gh-comment-id:64982985 --> @frank-dittrich commented on GitHub (Nov 30, 2014): Issues I see: benchmark-unify benchmark-unify will need adjustments so that relbench can map a format's benchmark result of an older release to a newer format, and I think we need to discuss the best way to do it with Solar on john-dev, see https://github.com/magnumripper/JohnTheRipper/issues/735#issuecomment-55225983 rexgen It would be great if rexgen support could be enabled in ./configure. Unfortunately, the latest git commit no longer works for JtR, and there has been almost no activity for about half a year. I have 5 open issues with no response from the developer, see https://github.com/teeshop/rexgen/issues There's https://github.com/kholia/rexgen as the only fork of https://github.com/teeshop/rexgen. May be @kolia can address the open issues in his forked repository, to make sure there's a version which flawlessly works with john, and create pull requests for "upstream"?
Author
Owner

@jfoug commented on GitHub (Nov 30, 2014):

rexgen; I hate to say this, since I was the one that did this,but IMHO, rexgen support should either be abandoned, rolled back or hidden. Jan is not doing a good job at treating this like a library. It certainly is not. Every version has either interface changes and or logic changes which render the 'library' either partly or fully incompatible with prior version. I tried getting a version numbering system working with this, but Jan either refuses to use and honor it, or simply does not understand the how / why for it. There have been at least 3 times, where he changed the interface blatently, , and or broke things, I worked to find the issues, provided him with corrective patches, and he implemented it again differently than either what it was before, what it was that I saw wrong or how I had envisioned getting it fixed Thus, again, another interface. I kept up for a while, but I have pretty much abandonded the cause.

FWIW, we should simply implement our own.

But I really would hate to see 1.8.0.j1 held up because of rexgen. Yes, I think it is interesting, but either until Jan figures out just what a lib really 'should' be and treats rexgen like a lib, OR it matures enough that he stops doing new development, it really is NOT something we should depend upon. I thought it was going to be something that we could make a glue layer inside of JtR to insulate the code from small lib changes. However, some of the changes are drastic, like 3 versions of the save restore format, none of which can be used well in a library manner, and other major logic changes like that.

I know the save/restore issue has been tagged for 1.8-j1, but IMHO, it should be to remove rexgen for now, or at least hide it.

<!-- gh-comment-id:64983444 --> @jfoug commented on GitHub (Nov 30, 2014): rexgen; I hate to say this, since I was the one that did this,but IMHO, rexgen support should either be abandoned, rolled back or hidden. Jan is not doing a good job at treating this like a library. It certainly is not. Every version has either interface changes and or logic changes which render the 'library' either partly or fully incompatible with prior version. I tried getting a version numbering system working with this, but Jan either refuses to use and honor it, or simply does not understand the how / why for it. There have been at least 3 times, where he changed the interface blatently, , and or broke things, I worked to find the issues, provided him with corrective patches, and he implemented it again differently than either what it was before, what it was that I saw wrong or how I had envisioned getting it fixed Thus, again, another interface. I kept up for a while, but I have pretty much abandonded the cause. FWIW, we should simply implement our own. But I really would hate to see 1.8.0.j1 held up because of rexgen. Yes, I think it is interesting, but either until Jan figures out just what a lib really 'should' be and treats rexgen like a lib, OR it matures enough that he stops doing new development, it really is NOT something we should depend upon. I thought it was going to be something that we could make a glue layer inside of JtR to insulate the code from small lib changes. However, some of the changes are drastic, like 3 versions of the save restore format, none of which can be used well in a library manner, and other major logic changes like that. I know the save/restore issue has been tagged for 1.8-j1, but IMHO, it should be to remove rexgen for now, or at least hide it.
Author
Owner

@frank-dittrich commented on GitHub (Nov 30, 2014):

Another issue which is marked as an enhancement, but I would really love to have addressed prior to a release, is https://github.com/magnumripper/JohnTheRipper/issues/557.

Unfortunately, doing it right requires quite some effort.

Reasons to fix it anyway:

Once we build a release which includes LUKS with a hash format that has to change if we address https://github.com/magnumripper/JohnTheRipper/issues/557, we need to add a lot of backwards compatibility crap to future versions.

A way around this might be to ship the release without LUKS support, or to mark LUKS format and rexgen as "not officially supported" and likely to change in an incompatible way in future releases.

<!-- gh-comment-id:64983718 --> @frank-dittrich commented on GitHub (Nov 30, 2014): Another issue which is marked as an enhancement, but I would really love to have addressed prior to a release, is https://github.com/magnumripper/JohnTheRipper/issues/557. Unfortunately, doing it right requires quite some effort. Reasons to fix it anyway: Once we build a release which includes LUKS with a hash format that has to change if we address https://github.com/magnumripper/JohnTheRipper/issues/557, we need to add a lot of backwards compatibility crap to future versions. A way around this might be to ship the release without LUKS support, or to mark LUKS format and rexgen as "not officially supported" and likely to change in an incompatible way in future releases.
Author
Owner

@frank-dittrich commented on GitHub (Nov 30, 2014):

For LUKS, may be just print a warning to stderr for luks2john or --format=LUKS that the hash format is likely to change in an incompatible way in future releases.

<!-- gh-comment-id:64984523 --> @frank-dittrich commented on GitHub (Nov 30, 2014): For LUKS, may be just print a warning to stderr for luks2john or --format=LUKS that the hash format is likely to change in an incompatible way in future releases.
Author
Owner

@jfoug commented on GitHub (Nov 30, 2014):

benchmark-unify
benchmark-unify will need adjustments so that relbench can map a format's benchmark result of an older release to a newer format, and I think we need to discuss the best way to do it with Solar on john-dev, see #735 (comment)

I assume at some time, bench-unify was up to date. Could assume that this was 1.7.9-j7 If so, then I would assume all we need to do is to make sure that 1.7.9-j7 names convert properly into equal current git bleeding names for any formats that existed at the 1.7.9-j7 time frame. Does that sound right?

<!-- gh-comment-id:64992209 --> @jfoug commented on GitHub (Nov 30, 2014): > benchmark-unify > benchmark-unify will need adjustments so that relbench can map a format's benchmark result of an older release to a newer format, and I think we need to discuss the best way to do it with Solar on john-dev, see #735 (comment) I assume at some time, bench-unify was up to date. Could assume that this was 1.7.9-j7 If so, then I would assume all we need to do is to make sure that 1.7.9-j7 names convert properly into equal current git bleeding names for any formats that existed at the 1.7.9-j7 time frame. Does that sound right?
Author
Owner

@frank-dittrich commented on GitHub (Nov 30, 2014):

Yee, at 1.7.9-j7, benchmark-unify was OK.
But, sincre then, the john --test output has changed.
Older releases just printed the format label, but not the format name in --test output.
Bleeding-jumbo prints "format-name, format-label".
But if format name and format labe were the same (after conversion to lower case), only the format label gets printed.

We need to map all 1.7.9-j7 names to current names, and adjust all current mapping (for format names in releases older than 1.7.9-j7) so that they point to the new names.
So, redirect --test output of bleeding jumbo and 1.7.9-jumbo-7 to files.
use benchmark-unify on them, then run relbench to compare the results, and take care of mapping the corresponding lines of output that are only present in file 1 and/or file 2.
(Of course, bleeding-jumbo has many more formats than 1.7.9-j7. So, those formats that are only present in the 1.7.9-j7 output need to be mapped to bleeding-jumbo.

In latest bleeding jumbo, we have

$ ./john --test --format=nt*
Benchmarking: NT [MD4 128/128 SSE2 + 32/32]... DONE
Raw:    6579K c/s real, 6579K c/s virtual

Benchmarking: nt2, NT [MD4 128/128 SSSE3 12x]... DONE
Raw:    7112K c/s real, 7112K c/s virtual

In 1.7.9-j7, this was

$ ./john --test --format=nt
Benchmarking: NT MD4 [128/128 SSE2 + 32/32]... DONE
Raw:    6514K c/s real, 6580K c/s virtual
$ ./john --test --format=nt2
Benchmarking: NT MD4 [128/128 SSE2 intrinsics 12x]... DONE
Raw:    6909K c/s real, 6909K c/s virtual

So there's a backwards compatibility issue or an issue of jumbo logic diverting from core logic.

In older john versions, if different format implementations (say NT or NT2) existed for the same format label, relbench would pick the results of the fastest implementation from each john --test output file (possibly converted using benchmark-uinify) and compare them.

If we want to keep compatibility with relbench's behavior in older releases, we need to map the output of both NT implementations of bleeding-jumbo to the same format label, "NT".

Instead of adding tons of mappings, we could also decide to replace "format-label, other output" with "other output" in the "Benchmarking: " line, assuming that format labels don't contain any ' '.

<!-- gh-comment-id:64996423 --> @frank-dittrich commented on GitHub (Nov 30, 2014): Yee, at 1.7.9-j7, benchmark-unify was OK. But, sincre then, the `john --test` output has changed. Older releases just printed the format label, but not the format name in `--test` output. Bleeding-jumbo prints "format-name, format-label". But if format name and format labe were the same (after conversion to lower case), only the format label gets printed. We need to map all 1.7.9-j7 names to current names, and adjust all current mapping (for format names in releases older than 1.7.9-j7) so that they point to the new names. So, redirect --test output of bleeding jumbo and 1.7.9-jumbo-7 to files. use benchmark-unify on them, then run relbench to compare the results, and take care of mapping the corresponding lines of output that are only present in file 1 and/or file 2. (Of course, bleeding-jumbo has many more formats than 1.7.9-j7. So, those formats that are only present in the 1.7.9-j7 output need to be mapped to bleeding-jumbo. In latest bleeding jumbo, we have ``` $ ./john --test --format=nt* Benchmarking: NT [MD4 128/128 SSE2 + 32/32]... DONE Raw: 6579K c/s real, 6579K c/s virtual Benchmarking: nt2, NT [MD4 128/128 SSSE3 12x]... DONE Raw: 7112K c/s real, 7112K c/s virtual ``` In 1.7.9-j7, this was ``` $ ./john --test --format=nt Benchmarking: NT MD4 [128/128 SSE2 + 32/32]... DONE Raw: 6514K c/s real, 6580K c/s virtual $ ./john --test --format=nt2 Benchmarking: NT MD4 [128/128 SSE2 intrinsics 12x]... DONE Raw: 6909K c/s real, 6909K c/s virtual ``` So there's a backwards compatibility issue or an issue of jumbo logic diverting from core logic. In older john versions, if different format implementations (say NT or NT2) existed for the same format label, relbench would pick the results of the fastest implementation from each `john --test` output file (possibly converted using benchmark-uinify) and compare them. If we want to keep compatibility with relbench's behavior in older releases, we need to map the output of both NT implementations of bleeding-jumbo to the same format label, "NT". Instead of adding tons of mappings, we could also decide to replace "format-label, other output" with "other output" in the "Benchmarking: " line, assuming that format labels don't contain any ' '.
Author
Owner

@magnumripper commented on GitHub (Nov 30, 2014):

Instead of adding tons of mappings, we could also decide to replace "format-label, other output" with "other output" in the "Benchmarking: " line, assuming that format labels don't contain any ' '.

Not sure what you mean. How would the current NT format look like? Just [MD4 128/128 SSE2 + 32/32]?

<!-- gh-comment-id:64997010 --> @magnumripper commented on GitHub (Nov 30, 2014): > Instead of adding tons of mappings, we could also decide to replace "format-label, other output" with "other output" in the "Benchmarking: " line, assuming that format labels don't contain any ' '. Not sure what you mean. How would the current NT format look like? Just `[MD4 128/128 SSE2 + 32/32]`?
Author
Owner

@frank-dittrich commented on GitHub (Nov 30, 2014):

No, I mean, benchmark-unify wouldn't touch NT format output at all, because it doesnt't have the format-name, part.
But it converts nt2's

nt2, NT [MD4 128/128 SSSE3 12x]

into

NT [MD4 128/128 SSSE3 12x]

i.e., drop the format name, the comma, and the space character.

In this case,we would need to adjust the NT format mappings in benchmark-unify:

$ grep "NT MD4" benchmark-unify 
NT v2   NT MD4

We would need 2 mappings instead of that one mapping:

NT MD4  NT
NT v2   NT

The first is for 1.7.9-j7, the second for some older versions which printed "NT v2".
That would enable relbench to recognize both formats as different implementations of the same algorithm for a given platform, and pick the fastest for comparison with the fastest implementation for the same format which is found in the other benchmark output file (after it has been converted using benchmark-unify).

So, for nt and nt2 formats, my suggestion doesn't look like it will save effort (because 1.8 moves the MD4 part of the 1.7.9-j7 output inside the [...] brackets (the part that is being ignored by relbench when comparing benchnark output files), but for many other formats I tkink it will, because we don't need to adjust the mappings if we just drop the format name.

Even if we do it that way (to enable relbench to pick the fastest implementation of an algorithm for comparison), there's a "regression" compared to older john versions.

Before bleeding-jumbo (to become 1.8.x-jumbo-y), I think you only needed to run benchmark-unify on the benchmark output of the older john version, if the other benchmark output was from the latest john version.
(I.e., benchmark-unify converted benchmark output of older john versions into benchmark output of the latest release.)
Now, you'll need to use benchmark-unify even for the benchmark output of the latest release.

<!-- gh-comment-id:65001224 --> @frank-dittrich commented on GitHub (Nov 30, 2014): No, I mean, benchmark-unify wouldn't touch NT format output at all, because it doesnt't have the `format-name,` part. But it converts nt2's ``` nt2, NT [MD4 128/128 SSSE3 12x] ``` into ``` NT [MD4 128/128 SSSE3 12x] ``` i.e., drop the format name, the comma, and the space character. In this case,we would need to adjust the NT format mappings in benchmark-unify: ``` $ grep "NT MD4" benchmark-unify NT v2 NT MD4 ``` We would need 2 mappings instead of that one mapping: ``` NT MD4 NT NT v2 NT ``` The first is for 1.7.9-j7, the second for some older versions which printed "NT v2". That would enable relbench to recognize both formats as different implementations of the same algorithm for a given platform, and pick the fastest for comparison with the fastest implementation for the same format which is found in the other benchmark output file (after it has been converted using benchmark-unify). So, for nt and nt2 formats, my suggestion doesn't look like it will save effort (because 1.8 moves the `MD4` part of the 1.7.9-j7 output inside the `[...]` brackets (the part that is being ignored by relbench when comparing benchnark output files), but for many other formats I tkink it will, because we don't need to adjust the mappings if we just drop the format name. Even if we do it that way (to enable relbench to pick the fastest implementation of an algorithm for comparison), there's a "regression" compared to older john versions. Before bleeding-jumbo (to become 1.8.x-jumbo-y), I think you only needed to run benchmark-unify on the benchmark output of the older john version, if the other benchmark output was from the latest john version. (I.e., benchmark-unify converted benchmark output of older john versions into benchmark output of the latest release.) Now, you'll need to use benchmark-unify even for the benchmark output of the latest release.
Author
Owner

@magnumripper commented on GitHub (Nov 30, 2014):

OK, so you'd do something like s/.*, // and this relies on the fact no format would have a comma in the format label. That should work.

<!-- gh-comment-id:65004002 --> @magnumripper commented on GitHub (Nov 30, 2014): OK, so you'd do something like `s/.*, //` and this relies on the fact no format would have a comma in the format label. That should work.
Author
Owner

@magnumripper commented on GitHub (Nov 30, 2014):

That should work.

...as long as no format has a comma in FORMAT_NAME...

<!-- gh-comment-id:65004062 --> @magnumripper commented on GitHub (Nov 30, 2014): > That should work. ...as long as no format has a comma in FORMAT_NAME...
Author
Owner

@frank-dittrich commented on GitHub (Dec 1, 2014):

s/.*, // is not good enough, you have to exclude spaces, otherwise you'll remove stuff that shouldn't be removed.

<!-- gh-comment-id:65015421 --> @frank-dittrich commented on GitHub (Dec 1, 2014): `s/.*, //` is not good enough, you have to exclude spaces, otherwise you'll remove stuff that shouldn't be removed.
Author
Owner

@magnumripper commented on GitHub (Dec 5, 2014):

Now less than 10 issues!

<!-- gh-comment-id:65726762 --> @magnumripper commented on GitHub (Dec 5, 2014): Now less than 10 issues!
Author
Owner

@jfoug commented on GitHub (Dec 5, 2014):

only 8, since this issue is not really an issue, but more of a scribble board.

<!-- gh-comment-id:65741552 --> @jfoug commented on GitHub (Dec 5, 2014): only 8, since this issue is not really an issue, but more of a scribble board.
Author
Owner

@jfoug commented on GitHub (Dec 7, 2014):

6 left, and opencl-pbkdf2-hmac-sha512 is well on its way (still some issues, but much better).

<!-- gh-comment-id:65920635 --> @jfoug commented on GitHub (Dec 7, 2014): 6 left, and opencl-pbkdf2-hmac-sha512 is well on its way (still some issues, but much better).
Author
Owner

@magnumripper commented on GitHub (Dec 7, 2014):

Good stuff. I will try to avoid committing any crazy new stuff for now but hopefully participate in killing the last few issues. Once done, we give Solar a fair chance to release within weeks. But we will have to be agile and ready for killing a boat load of issues that HE will find during his testing. He always does.

<!-- gh-comment-id:65921978 --> @magnumripper commented on GitHub (Dec 7, 2014): Good stuff. I will try to avoid committing any crazy new stuff for now but hopefully participate in killing the last few issues. Once done, we give Solar a fair chance to release within weeks. But we will have to be agile and ready for killing a boat load of issues that HE will find during his testing. He always does.
Author
Owner

@frank-dittrich commented on GitHub (Dec 8, 2014):

(bleeding-jumbo)src $ git grep "FIXME" |wc -l
81
(bleeding-jumbo)src $ git grep "/[/*] XXX" |wc -l
64
(bleeding-jumbo)src $ cd ../run/
(bleeding-jumbo)run $ git grep "FIXME" |wc -l
19
(bleeding-jumbo)run $ git grep "# XXX" |wc -l
18

Is anybody worried about these numbers?

<!-- gh-comment-id:66034038 --> @frank-dittrich commented on GitHub (Dec 8, 2014): ``` (bleeding-jumbo)src $ git grep "FIXME" |wc -l 81 (bleeding-jumbo)src $ git grep "/[/*] XXX" |wc -l 64 (bleeding-jumbo)src $ cd ../run/ (bleeding-jumbo)run $ git grep "FIXME" |wc -l 19 (bleeding-jumbo)run $ git grep "# XXX" |wc -l 18 ``` Is anybody worried about these numbers?
Author
Owner

@magnumripper commented on GitHub (Dec 8, 2014):

$ git grep -liE "FIXME|XXX" .. | xargs -n1 git blame | grep -iE "FIXME|XXX" | cut -d\( -f2 | awk '{ print $1 }' | sort | uniq -c | sort -nr
 148 Dhiru
  76 magnum
  56 Frank
  36 JimF
  17 Solar
   6 Spiros
   3 Péter
   2 Sayantan
   2 Lukas
   2 Konrads
   1 Sanju
   1 Samuele
<!-- gh-comment-id:66035322 --> @magnumripper commented on GitHub (Dec 8, 2014): ``` $ git grep -liE "FIXME|XXX" .. | xargs -n1 git blame | grep -iE "FIXME|XXX" | cut -d\( -f2 | awk '{ print $1 }' | sort | uniq -c | sort -nr 148 Dhiru 76 magnum 56 Frank 36 JimF 17 Solar 6 Spiros 3 Péter 2 Sayantan 2 Lukas 2 Konrads 1 Sanju 1 Samuele ```
Author
Owner

@magnumripper commented on GitHub (Dec 8, 2014):

I think the majority of them are harmless but it's a lot to review.

<!-- gh-comment-id:66035420 --> @magnumripper commented on GitHub (Dec 8, 2014): I think the majority of them are harmless but it's a lot to review.
Author
Owner

@jfoug commented on GitHub (Dec 8, 2014):

Started with 111 FIXME's it is now down to 74. Many can be fixed fast. They are simply in valid, where we need to validate length stuff.

atoi() is easy to validate, IF you have the buffer that it is in relation to. The value will either match the length (or 1/2 length), or it will not. No need to do that other wild validation crap.

Also, some ishex stuff. I did make a isdec and isdecu. The isdecu is in relation to some decimal numbers that we use atoi() to put them into unslgned. Easy way to validate, is to simply do the atoi into unsigned, sprintf using %u and then compare the before and after buffer. If they are the same, we are OK. If not, then fail. YES, this may trigger failures on systems with non-standard atoi(), BUT I think this will not happen on any system that is not 2's complement. I doubt JtR would even build on a non 2's complement machine, lol.

<!-- gh-comment-id:66129025 --> @jfoug commented on GitHub (Dec 8, 2014): Started with 111 FIXME's it is now down to 74. Many can be fixed fast. They are simply in valid, where we need to validate length stuff. atoi() is easy to validate, IF you have the buffer that it is in relation to. The value will either match the length (or 1/2 length), or it will not. No need to do that other wild validation crap. Also, some ishex stuff. I did make a isdec and isdecu. The isdecu is in relation to some decimal numbers that we use atoi() to put them into unslgned. Easy way to validate, is to simply do the atoi into unsigned, sprintf using %u and then compare the before and after buffer. If they are the same, we are OK. If not, then fail. YES, this may trigger failures on systems with non-standard atoi(), BUT I think this will not happen on any system that is not 2's complement. I doubt JtR would even build on a non 2's complement machine, lol.
Author
Owner

@jfoug commented on GitHub (Dec 8, 2014):

Also, in an audit like this, I have seem some slower code. Such as in cloudkeychain. In about 30 minutes time, it is now 4x faster, running SIMD code, by removing internal pbkdf2, using the header file, and once that was done, switching to SIMD is childs play. There are likely dozens others.

<!-- gh-comment-id:66129342 --> @jfoug commented on GitHub (Dec 8, 2014): Also, in an audit like this, I have seem some slower code. Such as in cloudkeychain. In about 30 minutes time, it is now 4x faster, running SIMD code, by removing internal pbkdf2, using the header file, and once that was done, switching to SIMD is childs play. There are likely dozens others.
Author
Owner

@jfoug commented on GitHub (Dec 8, 2014):

Do we have an open issue for the FIXME/XXX ? If not, we really should open one, like we did with Sparc-BE

Done, and they are slowly going away. #871

I have whittled down what was on 871, to a point where I have about exausted my knowledge. @kholia can you look at the python stuff in ../run @magnumripper there are some perl that are probably your code. There is also m4/pkg.m4 that might need looked at. Other than that, the XXX/FIXME have all been looked at.

<!-- gh-comment-id:66129476 --> @jfoug commented on GitHub (Dec 8, 2014): Do we have an open issue for the FIXME/XXX ? If not, we really should open one, like we did with Sparc-BE Done, and they are slowly going away. #871 I have whittled down what was on 871, to a point where I have about exausted my knowledge. @kholia can you look at the python stuff in ../run @magnumripper there are some perl that are probably your code. There is also m4/pkg.m4 that might need looked at. Other than that, the XXX/FIXME have all been looked at.
Author
Owner

@magnumripper commented on GitHub (Dec 11, 2014):

The planets are lining up now!
http://www.openwall.com/lists/john-dev/2014/12/11/5

<!-- gh-comment-id:66696278 --> @magnumripper commented on GitHub (Dec 11, 2014): The planets are lining up now! http://www.openwall.com/lists/john-dev/2014/12/11/5
Author
Owner

@jfoug commented on GitHub (Dec 11, 2014):

I saw that also. GOOD stuff.

That is one reason I am digging in (now) to where OMP scaling shows issues. Those are the type of things Solar will certainly dig up. Might as well head him off before hand, lol.

Are there other 'classes' of things you think he will dig up?

I have NO IDEA how the hell to put together a Manifest for all the changes we have done for this jumbo. I bet there are 100 new formats.

<!-- gh-comment-id:66699740 --> @jfoug commented on GitHub (Dec 11, 2014): I saw that also. GOOD stuff. That is one reason I am digging in (now) to where OMP scaling shows issues. Those are the type of things Solar will certainly dig up. Might as well head him off before hand, lol. Are there other 'classes' of things you think he will dig up? I have NO IDEA how the hell to put together a Manifest for all the changes we have done for this jumbo. I bet there are 100 new formats.
Author
Owner

@magnumripper commented on GitHub (Dec 11, 2014):

Try 240, not counting GPU formats. We now have 381 CPU formats, 1.7.9-Jumbo-7 had 142.

<!-- gh-comment-id:66701546 --> @magnumripper commented on GitHub (Dec 11, 2014): Try 240, not counting GPU formats. We now have 381 CPU formats, 1.7.9-Jumbo-7 had 142.
Author
Owner

@magnumripper commented on GitHub (Dec 11, 2014):

Updated CHANGES-jumbo.git in 50f691b. It briefly lists commits. There are some 4,400 of them since 1.7.9-jumbo-7...

<!-- gh-comment-id:66703611 --> @magnumripper commented on GitHub (Dec 11, 2014): Updated CHANGES-jumbo.git in 50f691b. It briefly lists commits. There are some 4,400 of them since 1.7.9-jumbo-7...
Author
Owner

@jfoug commented on GitHub (Dec 11, 2014):

But a ton of those are simply 'testing' formats I made into dynamic (all the big crypt stuff).

<!-- gh-comment-id:66703981 --> @jfoug commented on GitHub (Dec 11, 2014): But a ton of those are simply 'testing' formats I made into dynamic (all the big crypt stuff).
Author
Owner

@jfoug commented on GitHub (Dec 15, 2014):

Should we fork a version to have Solar start his testing/integration work on?

<!-- gh-comment-id:67078604 --> @jfoug commented on GitHub (Dec 15, 2014): Should we fork a version to have Solar start his testing/integration work on?
Author
Owner

@magnumripper commented on GitHub (Dec 15, 2014):

I don't think so. We'll probably find some more little things and another fork will just be confusing. But we are feature freezed now.

<!-- gh-comment-id:67085264 --> @magnumripper commented on GitHub (Dec 15, 2014): I don't think so. We'll probably find some more little things and another fork will just be confusing. But we are feature freezed now.
Author
Owner

@jfoug commented on GitHub (Dec 15, 2014):

I am not sure the exact git terminology. But on svn, we make a label or branch, then 2 entities can work independently, and when both done, you merge the 2 branches back. That would allow Solar to do what he needs to do, on his own. I think this is sort of how you (or others) do it with private repos, then request a merge of the 2. We could build a solar repo, then simply lock that down until he is done. Then update that repo, and merge it back into the main branch, have him give a once over again, and then snap that off as a release. I just think it is time for him to have the current code to work with, that is all.

<!-- gh-comment-id:67088007 --> @jfoug commented on GitHub (Dec 15, 2014): I am not sure the exact git terminology. But on svn, we make a label or branch, then 2 entities can work independently, and when both done, you merge the 2 branches back. That would allow Solar to do what he needs to do, on his own. I think this is sort of how you (or others) do it with private repos, then request a merge of the 2. We could build a solar repo, then simply lock that down until he is done. Then update that repo, and merge it back into the main branch, have him give a once over again, and then snap that off as a release. I just think it is time for him to have the current code to work with, that is all.
Author
Owner

@magnumripper commented on GitHub (Dec 15, 2014):

In git, every copy is a branch so whenever he checks out a snapshot (or whatever way he does it) and modifies it, I will have no problems merging it as long as I can tell what version he started with. Even if he starts out with a snapshot tarball I can create a "fake" branch locally that resembles that snapshot, whenever I want to merge his changes.

The best though would be for him to create a GitHub account and I'd make him a collaborator.

<!-- gh-comment-id:67089202 --> @magnumripper commented on GitHub (Dec 15, 2014): In git, every copy is a branch so whenever he checks out a snapshot (or whatever way he does it) and modifies it, I will have no problems merging it as long as I can tell what version he started with. Even if he starts out with a snapshot tarball I can create a "fake" branch locally that resembles that snapshot, whenever I want to merge his changes. The best though would be for him to create a GitHub account and I'd make him a collaborator.
Author
Owner

@jfoug commented on GitHub (Dec 16, 2014):

I think we are pretty much golden now (or brass as a 'first' release always ends up being). The 2 issues out there, really are almost certainly non-issues. @kholia has finished a efs2john script, GPU has been updated to better working kernels, etc.

I will focus on krb5-18 and see if I can nail that down prior to the release. I have also been looking for low hanging fruit on the optimization side. I am not looking at converting to SIMD, etc, just things that are really easy to do (caching off hashes early, pbkdf2_xxx.h, etc).

I know you put together a list on john-dev. We probably should open that up as a new issue, putting checkboxes on each bullet item, and start working on them. They will have to be done one way or the other prior to a release. But if put as an issue, it tracks just what has been done, and what is LEFT to be don.

<!-- gh-comment-id:67205981 --> @jfoug commented on GitHub (Dec 16, 2014): I think we are pretty much golden now (or brass as a 'first' release always ends up being). The 2 issues out there, really are almost certainly non-issues. @kholia has finished a efs2john script, GPU has been updated to better working kernels, etc. I will focus on krb5-18 and see if I can nail that down prior to the release. I have also been looking for low hanging fruit on the optimization side. I am not looking at converting to SIMD, etc, just things that are really easy to do (caching off hashes early, pbkdf2_xxx.h, etc). I know you put together a list on john-dev. We probably should open that up as a new issue, putting checkboxes on each bullet item, and start working on them. They will have to be done one way or the other prior to a release. But if put as an issue, it tracks just what has been done, and what is LEFT to be don.
Author
Owner

@magnumripper commented on GitHub (Dec 16, 2014):

It seems my efforts the better part of last week was really worth it: With 02a31c4 not only does all OpenCL formats pass self-test with a recent nvidia driver and GTX980, but also with Catalyst 14.9 and R9 R290X, and, waaaait for it, even the OSX driver for GT650M or Intel CPU! Every single format. Not that they are very useful devices for actual cracking, but this is great for my future work with OpenCL. And this is way beyond my expectations considering how crappy the OSX driver was when I started this journey 2012 (only like one format out of ten worked at that time). The driver has improved a lot since then, but our formats (and driver bug workarounds) has too.

The fact every single format now auto-tunes is also something I never thought would happen. But once I got the hang of it, adding auto-tune for a format is easy peasy. Thanks again to @claudioandre - awesome!

<!-- gh-comment-id:67208000 --> @magnumripper commented on GitHub (Dec 16, 2014): It seems my efforts the better part of last week was really worth it: With 02a31c4 not only does **all** OpenCL formats pass self-test with a recent nvidia driver and GTX980, but also with Catalyst 14.9 and R9 R290X, and, _waaaait for it_, even the OSX driver for GT650M or Intel CPU! Every single format. Not that they are very useful devices for actual cracking, but this is **great** for my future work with OpenCL. And this is way beyond my expectations considering how crappy the OSX driver was when I started this journey 2012 (only like one format out of ten worked at that time). The driver has improved a lot since then, but our formats (and driver bug workarounds) has too. The fact every single format now auto-tunes is also something I never thought would happen. But once I got the hang of it, adding auto-tune for a format is easy peasy. Thanks again to @claudioandre - awesome!
Author
Owner

@jfoug commented on GitHub (Dec 16, 2014):

Incomplete list of tasks:

  • Fix the remaining issues.
  • Compile a human readable summary of changes. This is a huge job, there are almost 6,000 commits. Perhaps the best way doing this is just ignoring all separate commit descriptions and just review the format list, relbench output, usage blob and new/changed doc files.
  • Review a single diff against core 1.8.
  • Review a single diff against J7.
  • Verify that the documentation is up to date.
  • Test on all odd systems we can think of (Sparc/BE tests were made pretty recently).
  • More verifying of performance:
    • J7 vs now.
    • non-OMP vs OMP w/ just one thread.
    • non-OMP vs OMP w/ threads.
  • More abort/resume tests, with and without nodes.
  • More ETA/progress tests, with and without nodes and before and after a resume.
<!-- gh-comment-id:67219097 --> @jfoug commented on GitHub (Dec 16, 2014): Incomplete list of tasks: - [ ] Fix the remaining issues. - [ ] Compile a human readable summary of changes. This is a huge job, there are almost 6,000 commits. Perhaps the best way doing this is just ignoring all separate commit descriptions and just review the format list, relbench output, usage blob and new/changed doc files. - [ ] Review a single diff against core 1.8. - [ ] Review a single diff against J7. - [ ] Verify that the documentation is up to date. - [ ] Test on all odd systems we can think of (Sparc/BE tests were made pretty recently). - [ ] More verifying of performance: - J7 vs now. - non-OMP vs OMP w/ just one thread. - non-OMP vs OMP w/ threads. - [ ] More abort/resume tests, with and without nodes. - [ ] More ETA/progress tests, with and without nodes and before and after a resume.
Author
Owner

@magnumripper commented on GitHub (Dec 16, 2014):

I reckon Solar will want to do the code reviews regardless if we do it also, since he will sort of put his name under it. But I intend to do it also, I use to do it now and then and it's often very enlightening. For example, I sometimes find cool new features I added a year ago and forgot about 😀

<!-- gh-comment-id:67222579 --> @magnumripper commented on GitHub (Dec 16, 2014): I reckon Solar will want to do the code reviews regardless if we do it also, since he will sort of put his name under it. But I intend to do it also, I use to do it now and then and it's often very enlightening. For example, I sometimes find cool new features I added a year ago and forgot about :grinning:
Author
Owner

@jfoug commented on GitHub (Dec 16, 2014):

I have kbr5-18 figured out (in perl).

sub krb5_18 { 
    $salt = get_salt(12,-64);
    my $pbk = pp_pbkdf2($_[0], $salt, 4096, "sha1",32,64);
    require Crypt::OpenSSL::AES;
    my $crypt = Crypt::OpenSSL::AES->new($pbk);
    my $output1 = $crypt->encrypt(pack("H*","6b65726265726f737b9b5b2b93132b93"));
    my $output2 = $crypt->encrypt($output1);
    print "u$u-krb5-18:\$krb18\$$salt\$".unpack("H*",$output1).unpack("H*",$output2).":$u:0:$_[0]::\n";
}

the constant encryption data is 'kerberos{\x9b[+\x93\x13+\x93' I do not know WHY it is that, BUT that is what it is. The result value of that first limb of encryption is used as the input data for the 2nd encryption. The 2 limbs make the 32 byte 'key'

Pretty simple, when you look at it this way. BUT it was an ugly nightmare getting it to this 'simple' format.

<!-- gh-comment-id:67251125 --> @jfoug commented on GitHub (Dec 16, 2014): I have kbr5-18 figured out (in perl). ``` Perl sub krb5_18 { $salt = get_salt(12,-64); my $pbk = pp_pbkdf2($_[0], $salt, 4096, "sha1",32,64); require Crypt::OpenSSL::AES; my $crypt = Crypt::OpenSSL::AES->new($pbk); my $output1 = $crypt->encrypt(pack("H*","6b65726265726f737b9b5b2b93132b93")); my $output2 = $crypt->encrypt($output1); print "u$u-krb5-18:\$krb18\$$salt\$".unpack("H*",$output1).unpack("H*",$output2).":$u:0:$_[0]::\n"; } ``` the constant encryption data is 'kerberos{\x9b[+\x93\x13+\x93' I do not know WHY it is that, BUT that is what it is. The result value of that first limb of encryption is used as the input data for the 2nd encryption. The 2 limbs make the 32 byte 'key' Pretty simple, when you look at it this way. BUT it was an ugly nightmare getting it to this 'simple' format.
Author
Owner

@jfoug commented on GitHub (Dec 16, 2014):

u0-krb5-18:$krb18$c9xJDJ1L6G8OExZ$94313fe386b6a1512b2377e6ee6b3e1e41f2213dfd569f870f61ba21769d85eb:0:0:1::
u1-krb5-18:$krb18$pmyeDwKAd5yCxI0Y8urHwKGfH6p0eV4yWtnEJ$7ff6ab0a8f2f75e572a60f5b9481afb6e87aab7a88afe038612a319e903fd4a1:1:0:2::
u2-krb5-18:$krb18$Uydfv30NRjuG2ew8w6$1ffc2b6e288b26d281df31a742dc9e6c8c51154dada6e76bfee4772f10ebab34:2:0:3::
u3-krb5-18:$krb18$bvRdTV8QCsBAp0RyoFxhNQBk5xQzid8MB22HOrIqbIA77iHOu7$96668eb95ee8387b3132a69aac6b03c2339f37b8dbc0c490e741b4c2ddd1a68b:3:0:4::
u4-krb5-18:$krb18$m1CShb0tZ$3ce68617939a2666c79faf9fecadeb92671652449f363835bf1cf310d11d5476:4:0:5afl::
u5-krb5-18:$krb18$p8Ev2UCYyiIccOX1eWbnYmj7NFEKtvj5YC$a134f11e88b4382f0f4be41bccfa1484cc878aead74abf32695d439754b07311:5:0:fasldkjaleit::
u6-krb5-18:$krb18$lSboQh7UDLzCfCph4cDHLYO2FSwwnuzO5$f750ceee181255f662b0f90f0d69d1b2ffbbb6e3bc043beb3cde81359c6e6f7c:6:0:fajaj::
u7-krb5-18:$krb18$TxkiQm0zpckog2AqIpXXWeUFYNdp$543d7d35f954efc788ebedc6d7e44b081d8e824c0a5e60c9188d6f10c1f9470c:7:0:wroapotgj::
u8-krb5-18:$krb18$YlhBb6sqZeNN$ae21856cc2a2462f5e9eeef8d6d960af33a5c68d10b819b330ba918c651913a4:8:0:reiafiajsahrfaerua::
u9-krb5-18:$krb18$qrW4cUcxPai6zj29GR1l7$dd846ce9ec1299555a8fcd5c20a654959f18419f2dba4780e0b528b47ee7cc6a:9:0:fjfjf::

Examples from pass_gen.pl (I changed salt to be -64 which returns a random salt from 1 to 64 bytes long. It looks like that simple pass_gen.pl function works fine. I will change kbr5_18_fmt to use the new logic, including SIMD (easy to do).

In the end, we should see much better speed, since it really only is 8k of HMACS (32 byte requires 2 full loops of the PBKDF2 to generate the key material for the AES256). If they would have used SHA256, then a single pbkdf2-limb would have been enough.

<!-- gh-comment-id:67253462 --> @jfoug commented on GitHub (Dec 16, 2014): ``` u0-krb5-18:$krb18$c9xJDJ1L6G8OExZ$94313fe386b6a1512b2377e6ee6b3e1e41f2213dfd569f870f61ba21769d85eb:0:0:1:: u1-krb5-18:$krb18$pmyeDwKAd5yCxI0Y8urHwKGfH6p0eV4yWtnEJ$7ff6ab0a8f2f75e572a60f5b9481afb6e87aab7a88afe038612a319e903fd4a1:1:0:2:: u2-krb5-18:$krb18$Uydfv30NRjuG2ew8w6$1ffc2b6e288b26d281df31a742dc9e6c8c51154dada6e76bfee4772f10ebab34:2:0:3:: u3-krb5-18:$krb18$bvRdTV8QCsBAp0RyoFxhNQBk5xQzid8MB22HOrIqbIA77iHOu7$96668eb95ee8387b3132a69aac6b03c2339f37b8dbc0c490e741b4c2ddd1a68b:3:0:4:: u4-krb5-18:$krb18$m1CShb0tZ$3ce68617939a2666c79faf9fecadeb92671652449f363835bf1cf310d11d5476:4:0:5afl:: u5-krb5-18:$krb18$p8Ev2UCYyiIccOX1eWbnYmj7NFEKtvj5YC$a134f11e88b4382f0f4be41bccfa1484cc878aead74abf32695d439754b07311:5:0:fasldkjaleit:: u6-krb5-18:$krb18$lSboQh7UDLzCfCph4cDHLYO2FSwwnuzO5$f750ceee181255f662b0f90f0d69d1b2ffbbb6e3bc043beb3cde81359c6e6f7c:6:0:fajaj:: u7-krb5-18:$krb18$TxkiQm0zpckog2AqIpXXWeUFYNdp$543d7d35f954efc788ebedc6d7e44b081d8e824c0a5e60c9188d6f10c1f9470c:7:0:wroapotgj:: u8-krb5-18:$krb18$YlhBb6sqZeNN$ae21856cc2a2462f5e9eeef8d6d960af33a5c68d10b819b330ba918c651913a4:8:0:reiafiajsahrfaerua:: u9-krb5-18:$krb18$qrW4cUcxPai6zj29GR1l7$dd846ce9ec1299555a8fcd5c20a654959f18419f2dba4780e0b528b47ee7cc6a:9:0:fjfjf:: ``` Examples from pass_gen.pl (I changed salt to be -64 which returns a random salt from 1 to 64 bytes long. It looks like that simple pass_gen.pl function works fine. I will change kbr5_18_fmt to use the new logic, including SIMD (easy to do). In the end, we should see much better speed, since it really only is 8k of HMACS (32 byte requires 2 full loops of the PBKDF2 to generate the key material for the AES256). If they would have used SHA256, then a single pbkdf2-limb would have been enough.
Author
Owner

@jfoug commented on GitHub (Dec 17, 2014):

1098b10 I will clean up all KRB5 stuff in another commit (configure / configure.ac / listconf.c / Makefile.in / Makefile.legacy I think are the files needing work).

<!-- gh-comment-id:67278086 --> @jfoug commented on GitHub (Dec 17, 2014): 1098b10 I will clean up all KRB5 stuff in another commit (configure / configure.ac / listconf.c / Makefile.in / Makefile.legacy I think are the files needing work).
Author
Owner

@jfoug commented on GitHub (Dec 18, 2014):

8cf7bf6 disables HAVE_FORK for Cygwin builds. This was something needed prior to a J1 release.

<!-- gh-comment-id:67470211 --> @jfoug commented on GitHub (Dec 18, 2014): 8cf7bf6 disables HAVE_FORK for Cygwin builds. This was something needed prior to a J1 release.
Author
Owner

@magnumripper commented on GitHub (Dec 18, 2014):

35759de is the (soon) officially released 1.8.0-jumbo-1. That's also the name of a new branch (which must not be committed to).

<!-- gh-comment-id:67513178 --> @magnumripper commented on GitHub (Dec 18, 2014): 35759de is the (soon) officially released 1.8.0-jumbo-1. That's also the name of a [new branch](https://github.com/magnumripper/JohnTheRipper/tree/1.8.0-jumbo-1) (which must not be committed to).
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#82
No description provided.