Open intelfx opened 6 years ago
I wouldn't add a new command (or symlink), but may be suggest to tweak the metadata output a bit instead... Anyway, as it stands now, for human-readable, any of those:
dislocker-metadata /dev/sdXY |fgrep "Recovery Key GUID:"
dislocker-metadata /dev/sdXY |fgrep "Recovery Key GUID:"|grep --color=always -P '[0-9A-F\-]{24,}'
for scripting:
dislocker-metadata /dev/sdXY |perl -ne 'print "$1\n" if(/Recovery Key GUID: .([0-9A-F\-]{24,})./);'
Yes I agree this would be very handy. Especially with a script I made to check bitlocker identifiers against escrowed ones for getting recovery passwords. It would be nicer to not have to check each identifier, if it showed more detail on which identifier is which and for what.
It would be nice to have a better (more human- and script-friendly) way to determine a partition's key GUIDs (as compared to
dislocker-metadata
, whose output is nearly incomprehensible to both eye and common scripting).Something like this:
Expected usecase is something like:
(where
pass
is a well-known password manager)