openwall / openwall/john

LUKS not working

Open
#2,115 5 comments 0 reactions 1 assignee View on GitHub

@jfoug is already working on this.

Since Jul 29, 2016.

enhancement
Dominant language
C
Stars
13.6k
Forks
2.6k
PR merge metrics
No merged PRs in 30d

Description

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/sdb1
Then to get the hash from the header I do:
luks2john header
Now 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 hash

And I get this output:

WARNING, LUKS format hash representation will change in future releases,
see doc/README.LUKS
Loaded 1 password hash (LUKS [PBKDF2-SHA1 256/256 AVX2 8x])
Will run 4 OpenMP threads
Press 'q' or Ctrl-C to abort, almost any other key for status
0g 0:00:00:00 DONE (2016-04-12 23:29) 0g/s 40.38p/s 40.38c/s 40.38C/s test1..test5
Session completed

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

test1
test2
myRealPassphrase
test4
test5

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.