Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 890 Bytes

README.md

File metadata and controls

27 lines (22 loc) · 890 Bytes

luks-rescue

Decrypt "unreadable" LUKS AEAD images

I hacked this in a hurry to regain access to a crashed computer. The harddrive was encrypted with aes-gcm-plain64. Although the LUKS header was seemingly intact, Linux wouldn't let me read a single sector. Every sector reported a bad AEAD tag.

luks-rescue will find the encrypted data in an image file and copy the decrypted plaintext to another file. You will need the master key, which you may extract with:

cryptsetup luksDump --dump-master-key --master-key-file keyfile image

Usage

luks-rescue image_file=... master_key_file=... sector_count=...

optional parameters (with defaults): sector_size=512, alignment=32K, certainty=25%

output parameters: data_file=..., tag_file=...

If you don't know sector size or sector count, cryptsetup open the device and use fdisk -l.