{"id":1804,"date":"2018-02-03T14:45:00","date_gmt":"2018-02-03T13:45:00","guid":{"rendered":"http:\/\/labalec.fr\/erwan\/?p=1804"},"modified":"2018-06-17T16:12:56","modified_gmt":"2018-06-17T14:12:56","slug":"offlinereg-and-windows-password","status":"publish","type":"post","link":"https:\/\/labalec.fr\/erwan\/?p=1804","title":{"rendered":"OfflineReg and Windows password"},"content":{"rendered":"<p>From an offline SAM hive (could be from winpe), run the below command, reboot and log in with a blank password.<br \/>\nCAREFULL : make a backup of your hive first !<\/p>\n<p><code><br \/>\nOfflineReg-win32 \"c:\\windows\\system32\\config\\SAM\" sam\\domains\\account\\users\\000003e8 setvaluebyteat v 0 160<br \/>\nOfflineReg-win32 \"c:\\windows\\system32\\config\\SAM\" sam\\domains\\account\\users\\000003e8 setvaluebyteat v 0 172<br \/>\n<\/code><\/p>\n<p>See <a href=\"http:\/\/mistyprojects.co.uk\/documents\/offlinereg\/offlinereg.htm#setvaluebyteat\" rel=\"noopener\" target=\"_blank\">here <\/a>for more details about setvaluebyteat details.<\/p>\n<p>000003e8 is my custom local admin account.<br \/>\n000001f4 would be the default windows account.<br \/>\n0xA0 (160) and 0xAC (170) are the offset for the LM and NTLM hash lengths: setting this to 0 effectively set the password to blank.<\/p>\n<p>Use the below command line to enum accounts in your SAM db.<\/p>\n<p><code><br \/>\nOfflineReg-win32 \"c:\\windows\\system32\\config\\SAM\" SAM\\Domains\\Account\\Users enumkeys<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>From an offline SAM hive (could be from winpe), run the below command, reboot and log in with a blank password. CAREFULL : make a backup of your hive first ! OfflineReg-win32 \u00ab\u00a0c:\\windows\\system32\\config\\SAM\u00a0\u00bb sam\\domains\\account\\users\\000003e8 setvaluebyteat v 0 160 OfflineReg-win32 \u00ab\u00a0c:\\windows\\system32\\config\\SAM\u00a0\u00bb sam\\domains\\account\\users\\000003e8 setvaluebyteat v 0 172 See here for more details about setvaluebyteat details. 000003e8 is <a href='https:\/\/labalec.fr\/erwan\/?p=1804' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[95],"tags":[],"class_list":["post-1804","post","type-post","status-publish","format-standard","hentry","category-offlinereg","category-95-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"_links":{"self":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/1804","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1804"}],"version-history":[{"count":5,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/1804\/revisions"}],"predecessor-version":[{"id":1838,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/1804\/revisions\/1838"}],"wp:attachment":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1804"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1804"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1804"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}