{"id":2731,"date":"2019-11-19T06:15:18","date_gmt":"2019-11-19T06:15:18","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=2731"},"modified":"2019-11-19T06:15:49","modified_gmt":"2019-11-19T06:15:49","slug":"crack-luks-volume-with-hashcat","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/crack-luks-volume-with-hashcat\/","title":{"rendered":"Crack LUKS volume with Hashcat"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Install hashcat<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">apt install hashcat<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Find LUKS Volume<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">bob@localhost:~\/$ dmesg\n...\n[ 1057.776074] sd 0:0:0:0: [sda] Write Protect is off\n[ 1057.776074] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00\n[ 1057.776593] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA\n[ 1057.780234]  sda: sda1\n[ 1057.783346] sd 0:0:0:0: [sda] Attached SCSI removable disk\nbob@localhost:~\/$<\/pre>\n\n\n\n<p>From the above we see that the drive we just pluGged into the system is &#8220;sda&#8221; so our path and partition is &#8220;\/dev\/sda1&#8221;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Run hashcat<\/h2>\n\n\n\n<p>The following command will run hashcat against &#8220;\/dev\/sda1&#8221;, change if the encrypted partition is different.  Mode is to brute force every 8 numeric character combination.  Refer to the following link to learn more about mask attacks. <br><a href=\"https:\/\/hashcat.net\/wiki\/doku.php?id=mask_attack\">https:\/\/hashcat.net\/wiki\/doku.php?id=mask_attack<\/a><\/p>\n\n\n\n<p><em>Note: You should be able to dump the header and work off of that as well.<\/em><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo hashcat -a 3 -m 14600 \/dev\/sda1 ?d?d?d?d?d?d?d?d<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"949\" height=\"479\" src=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2019\/11\/image-3.png\" alt=\"\" class=\"wp-image-2803\" srcset=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2019\/11\/image-3.png 949w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2019\/11\/image-3-300x151.png 300w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2019\/11\/image-3-768x388.png 768w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2019\/11\/image-3-500x252.png 500w\" sizes=\"auto, (max-width: 949px) 100vw, 949px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Install hashcat apt install hashcat Find LUKS Volume bob@localhost:~\/$ dmesg &#8230; [ 1057.776074] sd 0:0:0:0: [sda] Write Protect is off [ 1057.776074] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00 [ 1057.776593] sd 0:0:0:0: [sda] Write cache: enabled, read &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/crack-luks-volume-with-hashcat\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[573,1],"tags":[808,575,146,414,144,200],"class_list":["post-2731","post","type-post","status-publish","format-standard","hentry","category-security","category-uncategorized","tag-crack","tag-encryption","tag-fde","tag-hashcat","tag-luks","tag-password"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2731","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=2731"}],"version-history":[{"count":4,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2731\/revisions"}],"predecessor-version":[{"id":2806,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2731\/revisions\/2806"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=2731"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=2731"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=2731"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}