{"id":6967,"date":"2020-02-13T23:28:19","date_gmt":"2020-02-13T23:28:19","guid":{"rendered":"http:\/\/www.hexacorn.com\/blog\/?p=6967"},"modified":"2020-02-15T00:56:38","modified_gmt":"2020-02-15T00:56:38","slug":"run-lola-bin-run","status":"publish","type":"post","link":"https:\/\/www.hexacorn.com\/blog\/2020\/02\/13\/run-lola-bin-run\/","title":{"rendered":"Run Lola-bin, run&#8230;"},"content":{"rendered":"\n<p><a href=\"https:\/\/twitter.com\/bohops\">@bohops<\/a> described an interesting way to load COM objects via  rundll32  using a less-known command line argument &#8216;-sta&#8217; in his <a href=\"https:\/\/bohops.com\/2018\/06\/28\/abusing-com-registry-structure-clsid-localserver32-inprocserver32\/\">two<\/a> <a href=\"https:\/\/bohops.com\/2018\/08\/18\/abusing-the-com-registry-structure-part-2-loading-techniques-for-evasion-and-persistence\/\">posts<\/a> back in 2018.<\/p>\n\n\n\n<p>In this post I document one more and also not that well known command line argument of rundll32.exe which is &#8216;-localserver&#8217;.<\/p>\n\n\n\n<p>To test it you need to register a COM object that points to c:\\test\\test.dll:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Windows Registry Editor Version 5.00\n [HKEY_CLASSES_ROOT\\CLSID\\{01234567-0123-0123-0123-0123456789ab}\\InprocServer32]\n @=\"c:\\Test\\test.dll\"\n \"ThreadingModel\"=\"Both\"<\/pre>\n\n\n\n<p>and then run:<\/p>\n\n\n\n<p>rundll32.exe -localserver 01234567-0123-0123-0123-0123456789ab<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2020\/02\/rundll_localserver.gif\"><img decoding=\"async\" src=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2020\/02\/rundll_localserver.gif\" alt=\"\" class=\"wp-image-6968\" width=\"520\"\/><\/a><\/figure><\/div>\n","protected":false},"excerpt":{"rendered":"<p>@bohops described an interesting way to load COM objects via rundll32 using a less-known command line argument &#8216;-sta&#8217; in his two posts back in 2018. In this post I document one more and also not that well known command line &hellip; <a href=\"https:\/\/www.hexacorn.com\/blog\/2020\/02\/13\/run-lola-bin-run\/\">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":[13,56,64],"tags":[],"_links":{"self":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/6967"}],"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=6967"}],"version-history":[{"count":4,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/6967\/revisions"}],"predecessor-version":[{"id":6981,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/6967\/revisions\/6981"}],"wp:attachment":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/media?parent=6967"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/categories?post=6967"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/tags?post=6967"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}