mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #370] add support for Atlassian’s PBKDF2-based hashes #107
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#107
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 (Aug 27, 2013).
Original GitHub issue: https://github.com/openwall/john/issues/370
See http://pythonhosted.org/passlib/lib/passlib.hash.atlassian_pbkdf2_sha1.html
@kholia commented on GitHub (Nov 16, 2013):
Also support http://pythonhosted.org/passlib/lib/passlib.hash.cta_pbkdf2_sha1.html while at it.
@kholia commented on GitHub (Nov 16, 2013):
See https://github.com/magnumripper/JohnTheRipper/pull/408 for some sample code.
@kholia commented on GitHub (Nov 19, 2014):
@jfoug is this something you would be interested in?
@jfoug commented on GitHub (Nov 20, 2014):
I can tackle these. pretty trivial. atlassin forces utf8. I am going to add a flag to the salt, along with doing a prepare.
NOTE to @magnumripper is doing these conversions in prepare the CORRECT place to put them? Should they be in prepare, or in split? What are the nuances and differences? I have done a couple of these and no one has complained, but I doubt they are getting much use yet. I have only jammed this conversions into prepare currently.
I will tackle atalasssin, pull #408, etc.
@jfoug commented on GitHub (Nov 20, 2014):
atlassian:
That's why I thought getting a base-64 conv was going to be so helpful. Tiny format change, 20 minutes to insert. Yes, I still have to find some way to inform the format that this one requires utf8 password, but that should not take much. I might use case of one character in the
pbkdf2-hmac-sha1signature, and use strcasecmp@magnumripper commented on GitHub (Nov 20, 2014):
http://www.openwall.com/lists/john-dev/2014/06/24/1
http://www.openwall.com/lists/john-dev/2011/07/06/8
Some key differences (apart from the fact prepare() is the only one function that can see other input file fields than "ciphertext"):
@magnumripper commented on GitHub (Nov 20, 2014):
Executive summary: I'm not 100% sure but I think unifying case and adding tags should happen in split() while other conversions - like this one - should happen in prepare(). NT converts from pwdump format in prepare() but still uses split() to unify case and add a tag. This means NT's valid() does not need to care about pwdump format but it has to accept untagged/tagged as well as lower/upper case.
@jfoug commented on GitHub (Nov 20, 2014):
We do not handle anything other than canonical format in valid. The original hash is 'lost' (whihc I do not like), and never stored in .pot. So prepare is adequate. -show does find the hashes just fine, But hand looking through .pot (and there are auto tools that strip out cracks from input files), will never find the hashes. But it is a LOT more work to have same code in valid, as in split (but I guess valid 'could' simply call split.
I will do it in whatever way you think is best. Current method is prepare, that smashes original hash into a canonical format. i do like the simplicity, but do not like losing the hash string.
@jfoug commented on GitHub (Nov 20, 2014):
p5k2getting closer. Was a bit more work, because I added a new alphabet into the convert (mime with +==- and /==_)@jfoug commented on GitHub (Nov 20, 2014):
3503ddaadds to pbkdf2-hmac-sha1_fmt.ce52d74cfixed some base64 to hex issues, and added the -_ mime alphabet.cdec50cadds ground work for the utf8 passwords (if stuff is in unicode). I have not made changes to actually DO the utf8 convert. I sort of punted to magnum ;) We should probably have a utf8 password test hash generated also.NOTE, the 2 patches to the pbkdf2-hmac-sha1 format should also be done to opencl version (that has not been done yet).
@jfoug commented on GitHub (Nov 20, 2014):
Added to opencl
4d85566I am going to close this one, even thoughcdec50cis still in flux.@jfoug commented on GitHub (Nov 20, 2014):
@kholia , @magnumripper if there are other hashes where we have multiple types and some we do not support, let me know. adding support is much easier, now with simple with a single function to do the encoding conversion.
@magnumripper commented on GitHub (Nov 20, 2014):
Another track is to write out all
--list=format-testsand look for hex ones that are humongous. Change them to Base64! I think the very worst offender was Luks but it was partially fixed.