{"id":2233,"date":"2011-04-30T11:39:43","date_gmt":"2011-04-30T17:39:43","guid":{"rendered":"http:\/\/www.seeedstudio.com\/blog\/?p=2233"},"modified":"2011-04-30T11:39:43","modified_gmt":"2011-04-30T17:39:43","slug":"harddrive-password-hacking-with-a-openbench-logic-sniffer","status":"publish","type":"post","link":"https:\/\/www.seeedstudio.com\/blog\/2011\/04\/30\/harddrive-password-hacking-with-a-openbench-logic-sniffer\/","title":{"rendered":"Harddrive Password Hacking with a OpenBench Logic Sniffer"},"content":{"rendered":"<p><a rel=\"lightbox[1976]\" href=\"http:\/\/shackspace.de\/wp-content\/uploads\/2011\/04\/DSC_2881.jpg\"><img decoding=\"async\" title=\"Laptop harddrive wired up for bus sniffing\" src=\"http:\/\/shackspace.de\/wp-content\/uploads\/2011\/04\/DSC_2881-150x150.jpg\" alt=\"\" width=\"150\" height=\"150\" \/><\/a><\/p>\n<p>shackspace\u2019s @<a href=\"https:\/\/twitter.com\/dop3j0e\">dop3j0e<\/a> had a big problem.\u00a0 A password problem.\u00a0 Quite a while ago he set up a password for his Thinkpad\u2019s harddrive and chose to unlock his drive using the built-in fingerprint scanner.\u00a0 Years passed, thumbs were drawn over the scanner countless times, passwords were changed frequently.\u00a0 But not all passwords were changed.\u00a0 That one password for his harddrive never did change and over time he simply forgot what the actual password was.<\/p>\n<p>The thumb print scanner kept working.\u00a0 However, to change or disable the password you have to enter it by keyboard in the BIOS since in this case it does not accept the thumb print scanner as input.<br \/>\nThis poses a real problem.\u00a0 How do you access the disk if your fingerprint scanner dies?\u00a0 Or what if the laptop dies and you have to unlock the drive from a different machine that doesn\u2019t have the password stored in the fingerprint scanner?<\/p>\n<p>There\u2019s various approaches to go about this issue.<br \/>\nOne idea was\u00a0 to reverse engineer the BIOS to find out where the actual password is stored.\u00a0 This turned out to be especially nasty business and while a lot of insight was gained into how (ugly) a BIOS looks from the inside, no password was recovered.<br \/>\nAnother idea which does not work was exchanging the control board of the harddrive with that of a similar model. Turns out the harddrive password is stored on the platter, not the controller.<br \/>\nYou could of course use a logic sniffer (costs multiple kilo-Euros) and sniff the IDE bus for the password being transmitted.\u00a0 Not really an option either\u2026 or is it?<\/p>\n<p><!--more--><\/p>\n<h3>Open Source Hardware to the Rescue<\/h3>\n<p><a rel=\"lightbox[1976]\" href=\"http:\/\/shackspace.de\/wp-content\/uploads\/2011\/04\/101721653.jpg\"><img decoding=\"async\" title=\"OpenBench Logic Sniffer\" src=\"http:\/\/shackspace.de\/wp-content\/uploads\/2011\/04\/101721653-150x150.jpg\" alt=\"\" width=\"150\" height=\"150\" \/><\/a>Thanks to the open source hardware movement, you can have a logic sniffer for just $50!\u00a0 The\u00a0<a href=\"http:\/\/www.seeedstudio.com\/depot\/open-workbench-logic-sniffer-p-612.html?cPath=174\">OpenBench Logic Sniffer<\/a> is exactly what you want and @<a href=\"https:\/\/twitter.com\/hdznrrd\">hdznrrd<\/a> at shackspace just happened to receive his first batch pre-order at the exact time @dop3j0e was about to fall into despair.<\/p>\n<p>The OBLS comes with 16 buffered (3.3 or 5V) pins and another 16 unbuffered (3.3V only) pins.\u00a0 The\u00a0<a href=\"https:\/\/secure.wikimedia.org\/wikipedia\/en\/wiki\/Parallel_ATA\">IDE bus<\/a> happens to be a 5V bus, ruling out half of the capture pins, and to sniff everything you\u2019d need 40 pins.<\/p>\n<p>It turns out it\u2019s good enough to just sniff the data pins and nothing else (details below).\u00a0 And yes, the IDE bus has exactly 16 data pins\u00a0<img decoding=\"async\" src=\"http:\/\/shackspace.de\/wp-includes\/images\/smilies\/icon_smile.gif\" alt=\":)\" \/><\/p>\n<h3>Sniffing the IDE bus for the Password Transfer<\/h3>\n<p><a rel=\"lightbox[1976]\" href=\"http:\/\/shackspace.de\/wp-content\/uploads\/2011\/04\/DSC_2883.jpg\"><img decoding=\"async\" title=\"In-line sniffing setup\" src=\"http:\/\/shackspace.de\/wp-content\/uploads\/2011\/04\/DSC_2883-150x150.jpg\" alt=\"\" width=\"150\" height=\"150\" \/><\/a>Next it was time to hook up the harddrive to the sniffer.\u00a0 What makes this slightly complicated is that you have to sniff the bus while the harddrive is mounted inside the laptop.<br \/>\nTo do this individual wires were connected to each of the 16 data pins.\u00a0 Since the drive bay wasn\u2019t large enough to accommodate the wiring, the laptop had to be partially disassembled.<\/p>\n<p>The OBLS is compatible with the\u00a0<a href=\"http:\/\/www.sump.org\/projects\/analyzer\/client\/\">SUMP Logic Analyzer GUI<\/a> which was used to control the analyzer and set up triggering.<\/p>\n<p>The sniffer was set up to start logging data as soon as the 0xF2 unlock command is seen on the data bus which is then followed by the plain text password, which is exactly what you need to unlock the drive yourself.<\/p>\n<p>Below screenshot shows the SUMP GUI displaying the results of a successful password sniffing run (note the \u2018f2\u2032 command).\u00a0\u00a0<em>Note: the Prezi presentation linked below contains an <\/em><em>annotated<\/em><em> full length\u00a0 screen capture of the sniffed password.<\/em><\/p>\n<p><a rel=\"lightbox[1976]\" href=\"http:\/\/shackspace.de\/wp-content\/uploads\/2011\/04\/sump_trigger.png\"><img loading=\"lazy\" decoding=\"async\" title=\"Trigger and 0xf2 command in SUMP\" src=\"http:\/\/shackspace.de\/wp-content\/uploads\/2011\/04\/sump_trigger-300x115.png\" alt=\"\" width=\"300\" height=\"115\" \/><\/a><\/p>\n<h3>Unlocking the Drive<\/h3>\n<p>Now the drive can be unlocked using the handy hdparm tool:<\/p>\n<pre># hdparm --user-master u --security-unlock \\\r\n  $(echo -ne \"\\036\\023\\042\\046\\006\\002\\004\\013\")<\/pre>\n<p>Once unlocked, the password can be disabled entirely:<\/p>\n<pre># hdparm --user-master u --security-disable \\\r\n  $(echo -ne \"\\036\\023\\042\\046\\006\\002\\004\\013\")<\/pre>\n<h3>Metafoo<\/h3>\n<ul>\n<li>@dop3j0e\u2019s presentation \u201c<a href=\"http:\/\/prezi.com\/k1xduox30soj\/open-sesame\/\">Open Sesame<\/a>\u201d on how he hacked his harddrive<\/li>\n<li><a href=\"http:\/\/www.shackspace.de\/gallery\/index.php\/Projekte\/Festplattenpasswort-sniffen\">Photo documentation of the project<\/a><\/li>\n<\/ul>\n<p><strong>Update #1<\/strong>: Exchanged the SUMP screenshot with one that actually shows the 0xf2 command.<br \/>\n<strong>Update #2<\/strong>: Added more info why sniffing of the password was necessary.<\/p>\n<p>Via <a href=\"http:\/\/shackspace.de\/?p=1976\">http:\/\/shackspace.de\/?p=1976<\/a><\/p>\n<div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>shackspace\u2019s @dop3j0e had a big problem.\u00a0 A password problem.\u00a0 Quite a while ago he set<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","_price":"","_stock":"","_tribe_ticket_header":"","_tribe_default_ticket_provider":"","_tribe_ticket_capacity":"0","_ticket_start_date":"","_ticket_end_date":"","_tribe_ticket_show_description":"","_tribe_ticket_show_not_going":false,"_tribe_ticket_use_global_stock":"","_tribe_ticket_global_stock_level":"","_global_stock_mode":"","_global_stock_cap":"","_tribe_rsvp_for_event":"","_tribe_ticket_going_count":"","_tribe_ticket_not_going_count":"","_tribe_tickets_list":"[]","_tribe_ticket_has_attendee_info_fields":false,"iawp_total_views":0,"footnotes":""},"categories":[1],"tags":[90],"class_list":["post-2233","post","type-post","status-publish","format-standard","hentry","category-news","tag-logic-sniffer"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Harddrive Password Hacking with a OpenBench Logic Sniffer - Latest News from Seeed Studio<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.seeedstudio.com\/blog\/2011\/04\/30\/harddrive-password-hacking-with-a-openbench-logic-sniffer\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Harddrive Password Hacking with a OpenBench Logic Sniffer - Latest News from Seeed Studio\" \/>\n<meta property=\"og:description\" content=\"shackspace\u2019s @dop3j0e had a big problem.\u00a0 A password problem.\u00a0 Quite a while ago he set\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.seeedstudio.com\/blog\/2011\/04\/30\/harddrive-password-hacking-with-a-openbench-logic-sniffer\/\" \/>\n<meta property=\"og:site_name\" content=\"Latest News from Seeed Studio\" \/>\n<meta property=\"article:published_time\" content=\"2011-04-30T17:39:43+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/shackspace.de\/wp-content\/uploads\/2011\/04\/DSC_2881-150x150.jpg\" \/>\n<meta name=\"author\" content=\"\u884c\u653f\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u884c\u653f\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2011\/04\/30\/harddrive-password-hacking-with-a-openbench-logic-sniffer\/\",\"url\":\"https:\/\/www.seeedstudio.com\/blog\/2011\/04\/30\/harddrive-password-hacking-with-a-openbench-logic-sniffer\/\",\"name\":\"Harddrive Password Hacking with a OpenBench Logic Sniffer - Latest News from Seeed Studio\",\"isPartOf\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2011\/04\/30\/harddrive-password-hacking-with-a-openbench-logic-sniffer\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2011\/04\/30\/harddrive-password-hacking-with-a-openbench-logic-sniffer\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/shackspace.de\/wp-content\/uploads\/2011\/04\/DSC_2881-150x150.jpg\",\"datePublished\":\"2011-04-30T17:39:43+00:00\",\"dateModified\":\"2011-04-30T17:39:43+00:00\",\"author\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/4a6f0df70e5aa1b470083e77a0919ba5\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2011\/04\/30\/harddrive-password-hacking-with-a-openbench-logic-sniffer\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.seeedstudio.com\/blog\/2011\/04\/30\/harddrive-password-hacking-with-a-openbench-logic-sniffer\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2011\/04\/30\/harddrive-password-hacking-with-a-openbench-logic-sniffer\/#primaryimage\",\"url\":\"http:\/\/shackspace.de\/wp-content\/uploads\/2011\/04\/DSC_2881-150x150.jpg\",\"contentUrl\":\"http:\/\/shackspace.de\/wp-content\/uploads\/2011\/04\/DSC_2881-150x150.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2011\/04\/30\/harddrive-password-hacking-with-a-openbench-logic-sniffer\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.seeedstudio.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Harddrive Password Hacking with a OpenBench Logic Sniffer\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#website\",\"url\":\"https:\/\/www.seeedstudio.com\/blog\/\",\"name\":\"Latest News from Seeed Studio\",\"description\":\"Emerging IoT, AI and Autonomous Applications on the Edge\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.seeedstudio.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/4a6f0df70e5aa1b470083e77a0919ba5\",\"name\":\"\u884c\u653f\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4c87945076c1c9aea5570fea7739e112?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4c87945076c1c9aea5570fea7739e112?s=96&r=g\",\"caption\":\"\u884c\u653f\"},\"url\":\"https:\/\/www.seeedstudio.com\/blog\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Harddrive Password Hacking with a OpenBench Logic Sniffer - Latest News from Seeed Studio","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.seeedstudio.com\/blog\/2011\/04\/30\/harddrive-password-hacking-with-a-openbench-logic-sniffer\/","og_locale":"en_US","og_type":"article","og_title":"Harddrive Password Hacking with a OpenBench Logic Sniffer - Latest News from Seeed Studio","og_description":"shackspace\u2019s @dop3j0e had a big problem.\u00a0 A password problem.\u00a0 Quite a while ago he set","og_url":"https:\/\/www.seeedstudio.com\/blog\/2011\/04\/30\/harddrive-password-hacking-with-a-openbench-logic-sniffer\/","og_site_name":"Latest News from Seeed Studio","article_published_time":"2011-04-30T17:39:43+00:00","og_image":[{"url":"http:\/\/shackspace.de\/wp-content\/uploads\/2011\/04\/DSC_2881-150x150.jpg","type":"","width":"","height":""}],"author":"\u884c\u653f","twitter_card":"summary_large_image","twitter_misc":{"Written by":"\u884c\u653f","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.seeedstudio.com\/blog\/2011\/04\/30\/harddrive-password-hacking-with-a-openbench-logic-sniffer\/","url":"https:\/\/www.seeedstudio.com\/blog\/2011\/04\/30\/harddrive-password-hacking-with-a-openbench-logic-sniffer\/","name":"Harddrive Password Hacking with a OpenBench Logic Sniffer - Latest News from Seeed Studio","isPartOf":{"@id":"https:\/\/www.seeedstudio.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.seeedstudio.com\/blog\/2011\/04\/30\/harddrive-password-hacking-with-a-openbench-logic-sniffer\/#primaryimage"},"image":{"@id":"https:\/\/www.seeedstudio.com\/blog\/2011\/04\/30\/harddrive-password-hacking-with-a-openbench-logic-sniffer\/#primaryimage"},"thumbnailUrl":"http:\/\/shackspace.de\/wp-content\/uploads\/2011\/04\/DSC_2881-150x150.jpg","datePublished":"2011-04-30T17:39:43+00:00","dateModified":"2011-04-30T17:39:43+00:00","author":{"@id":"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/4a6f0df70e5aa1b470083e77a0919ba5"},"breadcrumb":{"@id":"https:\/\/www.seeedstudio.com\/blog\/2011\/04\/30\/harddrive-password-hacking-with-a-openbench-logic-sniffer\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.seeedstudio.com\/blog\/2011\/04\/30\/harddrive-password-hacking-with-a-openbench-logic-sniffer\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.seeedstudio.com\/blog\/2011\/04\/30\/harddrive-password-hacking-with-a-openbench-logic-sniffer\/#primaryimage","url":"http:\/\/shackspace.de\/wp-content\/uploads\/2011\/04\/DSC_2881-150x150.jpg","contentUrl":"http:\/\/shackspace.de\/wp-content\/uploads\/2011\/04\/DSC_2881-150x150.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.seeedstudio.com\/blog\/2011\/04\/30\/harddrive-password-hacking-with-a-openbench-logic-sniffer\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.seeedstudio.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Harddrive Password Hacking with a OpenBench Logic Sniffer"}]},{"@type":"WebSite","@id":"https:\/\/www.seeedstudio.com\/blog\/#website","url":"https:\/\/www.seeedstudio.com\/blog\/","name":"Latest News from Seeed Studio","description":"Emerging IoT, AI and Autonomous Applications on the Edge","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.seeedstudio.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/4a6f0df70e5aa1b470083e77a0919ba5","name":"\u884c\u653f","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/4c87945076c1c9aea5570fea7739e112?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4c87945076c1c9aea5570fea7739e112?s=96&r=g","caption":"\u884c\u653f"},"url":"https:\/\/www.seeedstudio.com\/blog\/author\/admin\/"}]}},"modified_by":null,"views":9536,"featured_image_urls":{"full":"","thumbnail":"","medium":"","medium_large":"","large":"","1536x1536":"","2048x2048":"","visody_icon":"","magazine-7-slider-full":"","magazine-7-slider-center":"","magazine-7-featured":"","magazine-7-medium":"","magazine-7-medium-square":""},"author_info":{"display_name":"\u884c\u653f","author_link":"https:\/\/www.seeedstudio.com\/blog\/author\/admin\/"},"category_info":"<a href=\"https:\/\/www.seeedstudio.com\/blog\/category\/news\/\" rel=\"category tag\">News<\/a>","tag_info":"News","comment_count":"0","_links":{"self":[{"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts\/2233","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/comments?post=2233"}],"version-history":[{"count":2,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts\/2233\/revisions"}],"predecessor-version":[{"id":2236,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts\/2233\/revisions\/2236"}],"wp:attachment":[{"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/media?parent=2233"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/categories?post=2233"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/tags?post=2233"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}