mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #637] Add native support for cracking various ETypes (no libkrb5 stuff) #295
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#295
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 17, 2014).
Original GitHub issue: https://github.com/openwall/john/issues/637
@kholia commented on GitHub (Jun 22, 2014):
The
krb5-23_fmt.cformat is not needed at all.krb5-23hashes are justNThashes!See
src/lib/crypto/krb/s2k_rc4.cfile in the MIT Kerberos source code, if you are curious.M$ is the best ;)
@kholia commented on GitHub (Jun 22, 2014):
In short, this "discovery" allows us to use our custom awesome
NTformat for cracking such hashes at very high speeds.@jfoug commented on GitHub (Jun 22, 2014):
Are we 100% sure this is the case, for non ASCII characters, and that there are no encoding nuances between the 2 formats?
@kholia commented on GitHub (Jun 22, 2014):
Kerberos calls the
krb5int_utf8cs_to_ucs2lesfunction for encoding the original password.I don't understand this encoding craziness at all, so I would simply say that I am not 100% sure.
@jfoug commented on GitHub (Jun 22, 2014):
I tested with this password (same one, with utf8 encoding, and with asii encoding). Both work:
@jfoug commented on GitHub (Jun 22, 2014):
I do believe this is just a 100% straight NT format, ONLY an order of magnitude slower than jtr's NT format.
@kholia commented on GitHub (Jun 22, 2014):
Awesome 👍
Also, that was my conclusion too regarding the speed difference.
@magnumripper commented on GitHub (Jun 22, 2014):
LOL!
@frank-dittrich commented on GitHub (Jun 23, 2014):
KRB5-23 has max. password length 32, whereas NT and NT2 have just 27.
@magnumripper commented on GitHub (Jun 23, 2014):
But that's just silly because such a slow format really should be doing 125.
@magnumripper commented on GitHub (Jun 23, 2014):
So why is it called RC4-HMAC?
@kholia commented on GitHub (Jun 24, 2014):
The name
RC4-HMACsounds much more impressive than plainHMAC.Seriously, who will want the plain
HMACwhen you can getRC4-HMACfrom our friends at M$ for free!@magnumripper commented on GitHub (Jun 24, 2014):
Lol but it's neither RC4 nor HMAC, just unsalted, uniterated MD4.
@kholia commented on GitHub (Jun 24, 2014):
I can tell that you are new to marketing ;)
On a serious note, I will try to get some more code reading done (in the coming days) to figure this out.
@kholia commented on GitHub (Nov 18, 2014):
There doesn't seem to be any interest in this task (doesn't look important enough), hence closing.
@jfoug commented on GitHub (Dec 10, 2014):
I may have a crack at krb5-18
That format SUX when it comes to openmp. We really should do it native, and get a 5 to 40x improvement.
@kholia commented on GitHub (Dec 11, 2014):
IIRC, this format also causes lot of problems on OS X and FreeeBSD, right?
Rewriting it seems like a great idea 👍
@magnumripper commented on GitHub (Dec 11, 2014):
It's fine on OSX except it's slow (305 c/s, no OMP - should be ~2400 c/s per core). But we can drop a dependency and a boatload of autoconf lines once we ditch libkrb5 👍
@kholia commented on GitHub (Dec 11, 2014):
Once we do this, I promise not to introduce crap dependencies like this 👍
@jfoug commented on GitHub (Dec 11, 2014):
are there other formats the depend on libkrb5? Following the krb source code is not overly easy, trying to rev engineer this stuff. The reason it is so slow, is the over dependence on 10 layers of generic behavior. Yes, it may make writing one liners like krb5_c_get_key(x,y,z) but the speed is horrible.
It looks like krb5-18 is little more than pbkdf2-sha1(4096) with some key building stuff after. I am still not 100% sure, I am going to build the source, add some dmp_suff() calls at certain points, and see if I can match the format in pass_gen.pl (as a starting point). Once I get to that level, it should not be too hard to make it a native format.
@magnumripper commented on GitHub (Dec 11, 2014):
PoC formats with or without dependencies are always way better than nothing, and many really good formats has evolved from them - many that otherwise would probably not exist at all. Keep up the good work!
@magnumripper commented on GitHub (Dec 11, 2014):
We already ditched krb5-23, so no.
@magnumripper commented on GitHub (Dec 16, 2014):
It would be terrific to be able to drop the libkrb dependency before J1...
@jfoug commented on GitHub (Dec 16, 2014):
The algo for krb5-18 is now in pass_gen.pl, so it should be easy to get it into the JtR format.
Very simple algorithm (hidden in 1000's of lines of garbage in the krb5 lib code). It is just a call to pbkdf2-hmac-sha1(4096) for 2 limbs, then use that as the key for AES, encrypt a constant, and re-encrypt the results for the last 16 bytes for the total 32 byte 'key'
I will get a full test-suite file made, and make SURE that the existing format linked against the -lkrb5 cracks all 1500. Then once we port out of -lkrb5 it still should be fully cracked.
When done, do we simply want to SCRUB the krb5 support from configure.ac ? We could always put it 'back' in later, using git to pull history to see how it was done.
@magnumripper commented on GitHub (Dec 17, 2014):
Yes I think so. Make a commit that does that and nothing else (ie. separate from changes to the format).
@jfoug commented on GitHub (Dec 17, 2014):
1098b10(for the format). i got 16x improvement on my laptop (well, about 950x on OMP cygwin, lol, since the -lkrb5 OMP was busted on cygwin).I will clean up -lkrb5 / HAVE_KRB5 stuff from rest of project on another commit.
73d8e17@kholia commented on GitHub (Dec 17, 2014):
AWESOME 👍
@magnumripper commented on GitHub (Dec 17, 2014):
+1 👍