{"id":6736,"date":"2019-09-06T21:40:56","date_gmt":"2019-09-06T21:40:56","guid":{"rendered":"http:\/\/www.hexacorn.com\/blog\/?p=6736"},"modified":"2019-09-06T21:40:58","modified_gmt":"2019-09-06T21:40:58","slug":"sitting-on-the-lolbins-12","status":"publish","type":"post","link":"https:\/\/www.hexacorn.com\/blog\/2019\/09\/06\/sitting-on-the-lolbins-12\/","title":{"rendered":"Sitting on the Lolbins, 12"},"content":{"rendered":"\n<p>What is a LOLBIN? Does it need to be signed?<\/p>\n\n\n\n<p>These questions are not important really. If you can find a clean executable and make it run another program then it is already a&#8230; lolwin.<\/p>\n\n\n\n<p>The unsigned <em>SetupProxy.exe<\/em> program does exactly that. All you have to do is to provide a <em>setup.ini <\/em>file that the setup program expects to see. Inside this <em>.ini<\/em> file you have to specify what programs to run for 32- and 64- bit systems e.g.:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>[SETUP]<br> InstallPath=..\\..\\windows\\system32\\notepad.exe<br> InstallPath64=..\\..\\windows\\system32\\notepad.exe<\/p><\/blockquote>\n\n\n\n<p>You need to use a directory traversal trick as the program expects paths relative to the one it is ran from.<\/p>\n\n\n\n<p>That&#8217;s it really.<\/p>\n\n\n\n<p>Okay, one more thing&#8230; the program stores a verbose info about the setup progress inside a <em>%TEMP%\\LxProxy.log<\/em> file:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>\/&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;\\<br> | Friday, September 06, 2019 14:31:42<br> | Setup.exe<br> | Version: <br> | <br> | SetupProxy: to Launch Install GUI.<br> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;\/<br> OSInfo::initialize: invalid NT version (major: 6, minor 1)<br> SetupProxy::read registry for the language: Software\\inkjet\\install<br> SetupProxy::language from the regstry: <br> OSInfo::initialize: invalid NT version (major: 6, minor 1)<br> SetupProxy:: the setup.ini exists; Launch InstallGUI:  C:\\foo\\bar&#8230;.\\windows\\system32\\notepad.exe<br>Finished SetupProxy : Friday, September 06, 2019 14:31:44<\/p><\/blockquote>\n\n\n\n<p>Sample:<\/p>\n\n\n\n<p>1DFFF3F5934AB61C861620CF2C6BC81FF8AF9A1E5F6A3D31B3315F8BE8BC3360<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is a LOLBIN? Does it need to be signed? These questions are not important really. If you can find a clean executable and make it run another program then it is already a&#8230; lolwin. The unsigned SetupProxy.exe program does &hellip; <a href=\"https:\/\/www.hexacorn.com\/blog\/2019\/09\/06\/sitting-on-the-lolbins-12\/\">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,59],"tags":[],"_links":{"self":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/6736"}],"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=6736"}],"version-history":[{"count":1,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/6736\/revisions"}],"predecessor-version":[{"id":6737,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/6736\/revisions\/6737"}],"wp:attachment":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/media?parent=6736"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/categories?post=6736"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/tags?post=6736"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}