mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #2115] LUKS not working #1412
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#1412
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 @FAlbanni on GitHub (Apr 13, 2016).
Original GitHub issue: https://github.com/openwall/john/issues/2115
Originally assigned to: @jfoug on GitHub.
I want to "crack" my own passphrase of my Ubuntu 15.10 standard whole disk encryption disk.
Here is what I do:
sudo cryptsetup luksHeaderBackup --header-backup-file header /dev/sdb1Then to get the hash from the header I do:
luks2john headerNow I get a "dump" binary file and a hash printed to the stdout.
I save the printed hash by copy&paste into a new file calling it "hash"
Then I do:
john --wordlist=Dic -enc=utf8 hashAnd I get this output:
Inside the "Dic" file I have my real passphrase but JTR cannot "crack" it, however it completes the process successfully.
"Dic" file looks like this
@kholia commented on GitHub (Apr 16, 2016):
https://www.kernel.org/pub/linux/utils/cryptsetup/v1.7/cryptsetup-1.7.1.tar.xz
https://www.kernel.org/pub/linux/utils/cryptsetup/v1.7/v1.7.0-ReleaseNotes
"Default hash function is now SHA256 (used in key derivation function and anti-forensic splitter)."
luk2john.c needs to reject (and finally support) such new non-hashes.
@kholia commented on GitHub (Apr 16, 2016):
This bug was confirmed on Lubuntu 16.04. Also confirmed that this bug is not a regression.
@kholia commented on GitHub (Apr 16, 2016):
This problem is partially mitigated in commit
c0979124f0.@FAlbanni commented on GitHub (Apr 16, 2016):
Hope you guys can soon support this types of "hashes". Maybe this can help, here is a working project https://github.com/glv2/bruteforce-luks that was able to crack my passphrase; Worth to mention too this is extremely slow since I believe they use cryptsetup lib to test passphrase by passphrase until finding a match; Maybe you guys could implement something similar but smarter in JtR. Anyway, thank you very much for this awesome software.
@jfoug commented on GitHub (Jul 29, 2016):
I am going to give this a go (this and bug #2169).
Since pbkdf2-sha256 and xts-plain64 are the default, then they should get handled.