mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #655] krb5pa-sha1 should unify hashes in split() #313
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#313
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 @frank-dittrich on GitHub (Jun 20, 2014).
Original GitHub issue: https://github.com/openwall/john/issues/655
@frank-dittrich commented on GitHub (Jun 20, 2014):
krb5pa-sha1-opencl probalby needs the same fix.
@magnumripper commented on GitHub (Jun 22, 2014):
Input format is 'user:$krb5pa$etype$user$realm$salt$timestamp+checksum' according to comments. This is a problem already: What if field[0] does not match the 'user' within the ciphertext? Should we fail valid() then? Well we can't because valid() can't see that.
@frank-dittrich commented on GitHub (Jun 26, 2014):
Apparently, you have to run krbpa2john.py anyway, so I would just assume that
useris correct.sap2john.pl also incorporates the user name into the hash, and the format ignores the user name in the separate field. I would keep it that way.
Since the "$mskrb5$" had been used in the past, can't we just replace "$mskrb5$" with "$krb5pa$" and treat "$mskrb5$" as invalid?
@magnumripper commented on GitHub (Jun 26, 2014):
A user may have "$mskrb5$" entries in her pot file, and we should keep recognizing them. A rewrite can't be done in prepare() - we need to accept both types in valid() and rewrite the hashes in split().
This also have the side effect we will continue to support "$mskrb5$" in input files.
@frank-dittrich commented on GitHub (Jun 26, 2014):
You just dropped krb5-23 format, because these hashes are just NT hashes.
A user might have hashes prefixed with
krb23in the .pot file which are not recognized as valid NT hashes. If you want to continue supportingmskrb5, you should also change NT format to acceptkrb23.(I admit there's a difference. While krb5-23 has been added in unstable, phps existed in 1.7.9-jumbo-7.)
@magnumripper commented on GitHub (Jun 26, 2014):
The key is that
krb23has never been included in any released Jumbo. We could add support for it in NT, but since it was never released I think we shouldn't bother.@magnumripper commented on GitHub (Jun 28, 2014):
The mskrb5 discussion did not belong to this format at all.
The problem here is that Dhiru used the same test vector twice, with different formats. There is nothing wrong with the format. I will just delete one of the test vectors and we're cool.
@magnumripper commented on GitHub (Jun 28, 2014):
f8ced75fixes it better. We are now immune to the unused fields because they are cut out in valid. This is the way to go, in several other formats.@magnumripper commented on GitHub (Jun 28, 2014):
This lead to problems, reopening
@magnumripper commented on GitHub (Jun 28, 2014):
reverted for now
@magnumripper commented on GitHub (Jun 29, 2014):
Fix re-applied and hopefully working now. We now get 6 loaded out of 7 due to dupe suppression, but --show does not suppress dupe so shows 7 cracked - I am pretty sure that is normal.