mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #1844] Support for Azure AD password sync. hashes #1224
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#1224
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 (Oct 21, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1844
Originally assigned to: @magnumripper on GitHub.
http://www.openwall.com/lists/john-users/2015/10/18/3
@kholia commented on GitHub (Oct 21, 2015):
Please feel free to grab this ticket.
@jfoug commented on GitHub (Nov 2, 2015):
Added to pass_gen.pl:
6a48df3An example (taken right from the page https://www.dsinternals.com/en/how-azure-active-directory-connect-syncs-passwords/
@jfoug commented on GitHub (Nov 2, 2015):
github.com/magnumripper/JohnTheRipper@504471bb33The set_key could be 'optimized' some, but my tests show that the speed is almost exactly 200x raw-sha256, so I really think there is little to be gained by optimizing that function (much less than 1%), AND the readability of the 'reference' implementation of set_key makes it very easy to see just wtf is happening. When we move this code to GPU, we certainly will need to look at optimization of that code. With just 100 iterations of PBKDF2, if we did this type stuff in oSSL in the CPU, we would see a much larger impact. In the GPU code, we likely would make a 'keys_dirty' if block in the crypt_all call, to load the 64 byte utf-16 nt hex string.
@jfoug commented on GitHub (Nov 2, 2015):
WootWoot ! Works on BE without modifications :)
@magnumripper commented on GitHub (Nov 2, 2015):
Fixed algo name in
5afa94e@magnumripper commented on GitHub (Nov 2, 2015):
Hmmm actually the algo name should be PBKDF2-SHA256, no?
@jfoug commented on GitHub (Nov 2, 2015):
Yes, probably PBKDF2-HMACSHA256+MD4
@jfoug commented on GitHub (Nov 2, 2015):
They use all sorts of strange mixed stuff. MD4, UTF-16 (twice), Hexing, Upcasing, etc, and then a PBKDF2-hmacSHA256, but with too few iterations to really be safe.
Look at setkey for the algorithm (or better yet, the new code in pass_gen.pl). The function is easy, but it does a few things that dynamic could not have done. The way I wrote it, it should be somewhat easy to port to GPU. Also, the layout, where the 'real' type hash has the iteration count, and a version number in it, makes it look like this will quickly transform into a v2 hash.
@jfoug commented on GitHub (Nov 2, 2015):
But 99% of the time (or more), is spent in the pbkdf2 code, so that really 'should' be the algorithm listed. It is like mscash2 It uses NT hash also, BUT that is just an insignificant part of the whole overall function time.
@kholia commented on GitHub (Nov 23, 2015):
@magnumripper @jfoug can we close this issue now?
@magnumripper commented on GitHub (Nov 23, 2015):
I guess
@jfoug commented on GitHub (Nov 23, 2015):
Are we not going to have a GPU version?
@magnumripper commented on GitHub (Nov 23, 2015):
I haven't ever heard of Azure AD so I have no incentive to write one. OTOH it looks simple enough - we have all the bits needed.
@kholia commented on GitHub (Nov 23, 2015):
I can take this one, @jfoug has a bigger fish to fry ;)
@jfoug commented on GitHub (Nov 23, 2015):
It's Micro$oft cloud active directory. It is possible this may be a 'big' thing.
@magnumripper commented on GitHub (Nov 23, 2015):
@kholia if you base it on krb5pa-md5-opencl, you'll get full encoding support for free.
@kholia commented on GitHub (Jan 11, 2017):
I am returning this issue back to the queue. Azure AD GPU support needs to be implemented to fix this issue.