mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #342] release 1.8.0-jumbo1 (off bleeding-jumbo branch) #82
Labels
No labels
bug
core branch
documentation
enhancement
enhancement
fixed - pending verify
fuzz bug
good first issue
invalid
invalid
maintenance/cleanup
new cracking mode
new format
new tool
non-trivial
notes/external issues
portability
question
RFC / discussion
testing
WONTFIX
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
openwall/john#82
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
@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.
@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.
@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.
@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?
@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.
@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.
@kholia commented on GitHub (Sep 3, 2013):
Maybe a user PEBKAC issue then. Nothing to worry about ;)
@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.
@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"?
@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.
@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.
@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.
@jfoug commented on GitHub (Nov 30, 2014):
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?
@frank-dittrich commented on GitHub (Nov 30, 2014):
Yee, at 1.7.9-j7, benchmark-unify was OK.
But, sincre then, the
john --testoutput has changed.Older releases just printed the format label, but not the format name in
--testoutput.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
In 1.7.9-j7, this was
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 --testoutput 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 ' '.
@magnumripper commented on GitHub (Nov 30, 2014):
Not sure what you mean. How would the current NT format look like? Just
[MD4 128/128 SSE2 + 32/32]?@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
into
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:
We would need 2 mappings instead of that one mapping:
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
MD4part 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.
@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.@magnumripper commented on GitHub (Nov 30, 2014):
...as long as no format has a comma in FORMAT_NAME...
@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.@magnumripper commented on GitHub (Dec 5, 2014):
Now less than 10 issues!
@jfoug commented on GitHub (Dec 5, 2014):
only 8, since this issue is not really an issue, but more of a scribble board.
@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).
@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.
@frank-dittrich commented on GitHub (Dec 8, 2014):
Is anybody worried about these numbers?
@magnumripper commented on GitHub (Dec 8, 2014):
@magnumripper commented on GitHub (Dec 8, 2014):
I think the majority of them are harmless but it's a lot to review.
@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.
@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.
@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.
@magnumripper commented on GitHub (Dec 11, 2014):
The planets are lining up now!
http://www.openwall.com/lists/john-dev/2014/12/11/5
@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.
@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.
@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...@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).
@jfoug commented on GitHub (Dec 15, 2014):
Should we fork a version to have Solar start his testing/integration work on?
@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.
@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.
@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.
@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.
@magnumripper commented on GitHub (Dec 16, 2014):
It seems my efforts the better part of last week was really worth it: With
02a31c4not 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!
@jfoug commented on GitHub (Dec 16, 2014):
Incomplete list of tasks:
@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 😀
@jfoug commented on GitHub (Dec 16, 2014):
I have kbr5-18 figured out (in perl).
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.
@jfoug commented on GitHub (Dec 16, 2014):
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.
@jfoug commented on GitHub (Dec 17, 2014):
1098b10I 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).@jfoug commented on GitHub (Dec 18, 2014):
8cf7bf6disables HAVE_FORK for Cygwin builds. This was something needed prior to a J1 release.@magnumripper commented on GitHub (Dec 18, 2014):
35759deis the (soon) officially released 1.8.0-jumbo-1. That's also the name of a new branch (which must not be committed to).