From: Milan Broz <mbroz@redhat.com>
To: mike dentifrice <fluor@poivron.org>
Cc: dm-crypt@saout.de
Subject: Re: [dm-crypt] password recovery for a luksOpened device?
Date: Wed, 02 Nov 2011 08:23:33 +0100 [thread overview]
Message-ID: <4EB0EFF5.2060808@redhat.com> (raw)
In-Reply-To: <20111102031430.GA15717@dentifrice>
On 11/02/2011 04:14 AM, mike dentifrice wrote:
> Or do I necessarily have to jump towards the "How do I recover the
> master key from a mapped LUKS container?" FAQ entry?
You can run that script mentioned there (it will generate master-key-file
from active mapping).
And then (instead of format) just run
cryptsetup luksAddKey --master-key-file=<master-key-file> <luks device>
and add new arbitrary passphrase.
(If cryptsetup there doesn't support this option, you can do it on LUKS
header clone outside of server and copy it back with new keyslot.)
Without using dictionary or brute force attack you cannot recover original
passphrase though.
In any case, save "dmsetup table --showkeys" output, it will allow to map
device even if you destroy LUKS header.
Milan
next prev parent reply other threads:[~2011-11-02 7:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-02 3:14 [dm-crypt] password recovery for a luksOpened device? mike dentifrice
2011-11-02 7:23 ` Milan Broz [this message]
2011-11-02 7:30 ` Arno Wagner
2011-11-02 7:25 ` Arno Wagner
2011-11-02 7:31 ` Arno Wagner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4EB0EFF5.2060808@redhat.com \
--to=mbroz@redhat.com \
--cc=dm-crypt@saout.de \
--cc=fluor@poivron.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.