{"id":7900,"date":"2022-01-16T09:50:49","date_gmt":"2022-01-16T09:50:49","guid":{"rendered":"https:\/\/www.hexacorn.com\/blog\/?p=7900"},"modified":"2022-01-16T09:53:00","modified_gmt":"2022-01-16T09:53:00","slug":"beyond-good-ol-run-key-part-135","status":"publish","type":"post","link":"https:\/\/www.hexacorn.com\/blog\/2022\/01\/16\/beyond-good-ol-run-key-part-135\/","title":{"rendered":"Beyond good ol\u2019 Run key, Part 135"},"content":{"rendered":"\n<p>These days I post most of the new stuff on Twitter as no one reads blogs anymore, right? \ud83d\ude42<\/p>\n\n\n\n<p>Still, good to document some of it in a more permanent way so this is the persistence bit I <a href=\"https:\/\/twitter.com\/Hexacorn\/status\/1482484486994640896?s=20\">posted<\/a> about yesterday:<\/p>\n\n\n\n<p>A number of tools inside the c:\\WINDOWS\\system32\\oobe\\ folder:<\/p>\n\n\n\n<ul><li>audit.exe<\/li><li>oobeldr.exe<\/li><li>Setup.exe<\/li><li>windeploy.exe<\/li><li>winsetup.dll<\/li><\/ul>\n\n\n\n<p>include references to c:\\WINDOWS\\Setup\\Scripts\\ErrorHandler.cmd.<\/p>\n\n\n\n<p>Turns out, if you drop your payload to c:\\WINDOWS\\Setup\\Scripts\\ErrorHandler.cmd the c:\\WINDOWS\\system32\\oobe\\Setup.exe will load it anytime there is an error. The most trivial way to trigger it is by running setup.exe w\/o any arguments. <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2022\/01\/oobe_setup.png\"><img decoding=\"async\" loading=\"lazy\" width=\"516\" height=\"314\" src=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2022\/01\/oobe_setup.png\" alt=\"\" class=\"wp-image-7904\" srcset=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2022\/01\/oobe_setup.png 516w, https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2022\/01\/oobe_setup-300x183.png 300w, https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2022\/01\/oobe_setup-80x50.png 80w\" sizes=\"(max-width: 516px) 100vw, 516px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>I have not checked the other executables, but it&#8217;s most likely the case as well.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>These days I post most of the new stuff on Twitter as no one reads blogs anymore, right? \ud83d\ude42 Still, good to document some of it in a more permanent way so this is the persistence bit I posted about &hellip; <a href=\"https:\/\/www.hexacorn.com\/blog\/2022\/01\/16\/beyond-good-ol-run-key-part-135\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[35],"tags":[],"_links":{"self":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/7900"}],"collection":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/comments?post=7900"}],"version-history":[{"count":4,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/7900\/revisions"}],"predecessor-version":[{"id":7906,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/7900\/revisions\/7906"}],"wp:attachment":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/media?parent=7900"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/categories?post=7900"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/tags?post=7900"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}