diff --git a/dislocker.sh b/dislocker.sh index 403e7b4..35ff0b0 100644 --- a/dislocker.sh +++ b/dislocker.sh @@ -7,7 +7,13 @@ unlockedBitlockerMountPoint="/mnt/unlockedBitlocker" # get list of drives and find ones labeled with bitlocker bitlockerPartition=`dislocker-find` -bitlockerRecoveryKeyID=`dislocker-metadata -V ${bitlockerPartition} | awk '/Recovery Key GUI:/ {print $10; exit}' | sed "s/'//g"` + +# need to loop through the find results, find the TPM info, and then look for the recovery password id +# need to use csplit on the metadata +# csplit -f ${bitlockerPartition} -n 1 Desktop/dislocker-metadata.txt "/=======\[ Datum ... informations \]=======/" '{*}' + + +bitlockerRecoveryKeyID=`dislocker-metadata -V ${bitlockerPartition} | awk '/Recovery Key GUID:/ {print $10; exit}' | sed "s/'//g"` # confirm drive