{"id":608,"date":"2018-01-18T16:48:53","date_gmt":"2018-01-18T16:48:53","guid":{"rendered":"https:\/\/www.cesariogarcia.com\/?p=608"},"modified":"2018-11-08T16:31:42","modified_gmt":"2018-11-08T16:31:42","slug":"dislocker-script","status":"publish","type":"post","link":"https:\/\/www.cesariogarcia.com\/?p=608","title":{"rendered":"Dislocker script"},"content":{"rendered":"<p>This script aims to mount a Bitlocker encrypted drive in linux.<br \/>\nThe binaries can be downloaded at https:\/\/pkgs.org\/download\/dislocker.<\/p>\n<pre><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n#!\/bin\/bash\n\n# Dislocker binary can be downloaded from https:\/\/pkgs.org\/download\/dislocker\n# All credits to Ces\u00e1rio Garcia Mil-Homens - www.cesariogarcia.com\n\nif &#x5B; ! -d \"\/media\/mount\" ] &amp;amp;amp;&amp;amp;amp; &#x5B; ! -d \"\/media\/bitlocker\" ]; then\n        sudo mkdir \/media\/bitlocker\n        sudo mkdir \/media\/mount\n    else\n        sudo fdisk -l\n        read -n1 -r -p \"Press any key to continue...\" key\n        echo \"Insert volume and partition eg. sdaX\"\n        read volume\n        echo \"Enter password\"\n        read -s password\n        sudo dislocker -V \/dev\/$volume -u$password -- \/media\/bitlocker\n        sudo mount \/media\/bitlocker\/dislocker-file \/media\/mount\/ -o loop\n        echo \"Press u to umount device\"\n        read key\n        if echo \"$key\" | grep -iq \"^u\" ;then\n                sudo umount \/media\/mount\n                sudo umount \/media\/bitlocker\n        fi\nfi\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This script aims to mount a Bitlocker encrypted drive in linux. The binaries can be downloaded at https:\/\/pkgs.org\/download\/dislocker. #!\/bin\/bash # Dislocker binary can be downloaded from https:\/\/pkgs.org\/download\/dislocker # All credits to Ces\u00e1rio Garcia Mil-Homens &#8211; www.cesariogarcia.com if &#x5B; ! -d &#8220;\/media\/mount&#8221; ] &amp;amp;amp;&amp;amp;amp; &#x5B; ! -d &#8220;\/media\/bitlocker&#8221; ]; then sudo mkdir \/media\/bitlocker sudo mkdir \/media\/mount &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.cesariogarcia.com\/?p=608\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Dislocker script&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[12,14],"tags":[],"class_list":["post-608","post","type-post","status-publish","format-standard","hentry","category-informatica","category-linux"],"_links":{"self":[{"href":"https:\/\/www.cesariogarcia.com\/index.php?rest_route=\/wp\/v2\/posts\/608","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cesariogarcia.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cesariogarcia.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cesariogarcia.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cesariogarcia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=608"}],"version-history":[{"count":6,"href":"https:\/\/www.cesariogarcia.com\/index.php?rest_route=\/wp\/v2\/posts\/608\/revisions"}],"predecessor-version":[{"id":662,"href":"https:\/\/www.cesariogarcia.com\/index.php?rest_route=\/wp\/v2\/posts\/608\/revisions\/662"}],"wp:attachment":[{"href":"https:\/\/www.cesariogarcia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=608"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cesariogarcia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=608"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cesariogarcia.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=608"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}