mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #2006] Incorporate AxCrypt-SHA1 into raw SHA-1 source file. #1346
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#1346
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 @magnumripper on GitHub (Jan 25, 2016).
Original GitHub issue: https://github.com/openwall/john/issues/2006
github.com/magnumripper/JohnTheRipper@9c6373b020 (commitcomment-15601450)01e053b
@magnumripper commented on GitHub (Jan 25, 2016):
That commit doesn't work for me
Probably trivial problem though.
@ghost commented on GitHub (Jan 25, 2016):
Have you enabled any of the two tests?
If so, they will work fine if you try to crack them in a real run. I tested this here and on super.
This error means self test ciphertext() != source(). I havent fixed it because I'm not sure which one is the correct. Basically:
@ghost commented on GitHub (Jan 25, 2016):
If you have not commented these tests. Please, can you answer?:
@magnumripper commented on GitHub (Jan 25, 2016):
I did not look at (or change) the code at all yet, just built and tried to run it as-is. But I think I see the main problem. The self-test requires (off the top of my head) that the output of source() exactly matches the original ciphertext as it looked after split().
I need to look closer to this but in the end it's very trivial and, like you said, mostly about deciding what to do.
@ghost commented on GitHub (Jan 25, 2016):
Ok, I decided that the last 32 bits are alwas zero (in source and self text cipher text).
e91b81ebe143a98e69f90b2db92e67e3a48ffe58
Does it work to you? It does here, on super and well.
@magnumripper commented on GitHub (Jan 26, 2016):
That works. But I suppose it now needs input hashes padded with zeros? That is inconvenient for user. I presume the native format is simply 32 characters of hex.
@magnumripper commented on GitHub (Jan 26, 2016):
OTOH the currently committed format has the same padding..
@magnumripper commented on GitHub (Jan 26, 2016):
I committed it (bleeding dubbed it
c5d7b91but it's the same commit). We'll see what to do with that padding in the end.@ghost commented on GitHub (Jan 26, 2016):
No, it doesn't. You can crack a pure RAW1 hash using AxCrypt. Only self test hashes have to be padded.
@magnumripper commented on GitHub (Jan 26, 2016):
Yes but I meant just 128 bits of input, as in
145595ef8b1d96d7bd9c5ea1c6d28766as opposed to anything longer. I actually have no idea but I presume that's how these hashes look straight from their "source".@jfoug commented on GitHub (Jan 26, 2016):
a5b6a9bWe probably should 'fail' in valid for hashes that are 40 byte hex, and top 8 bytes are NOT 0.
@magnumripper commented on GitHub (Jan 28, 2016):
Unless zero-padded 40-byte ones are seen in the wild, we shouldn't support them at all. Only 32-byte truncated ones.
@jfoug commented on GitHub (Jan 28, 2016):
The original 'how to' page listed to append 0 bytes to the 32 byte hex. Who knows what will be seen ITW
@magnumripper commented on GitHub (Jan 28, 2016):
I would say that clearly indicates they come as 32 byte hex.
@Fist0urs commented on GitHub (Jan 29, 2016):
Hi, sorry for the delay
@claudioandre
you are right, but "original" axcrypt-sha1 should be padded (see below)
@magnumripper
Yes, they are 32 bytes hex hashes, as found in memory, but I had to pad to 40 bytes to fit raw-sha1 default implementation
@jfoug
That could be an option yes, but I think it should be better to only check the first 32 hex bytes (eg: you've already cracked a raw-sha1 and this one is present in your .pot, then we should be able to say "ok this one is already cracked and is the same as the 32 hex bytes axcrypt one I try to crack" to shorten crack tests)
@jfoug commented on GitHub (Jan 31, 2016):
Could we add linked-in raw-sha1 to the raw-sha1 format, OR would the reverse steps be a problem since we have to check the 2nd 4 byte value ? I think the split/prepare/valid should be easy. The source would likely simply copy over from the current format. But it is the hash and cmp_*() functions which I question if we can do easily.