{"id":4276,"date":"2017-07-31T23:00:39","date_gmt":"2017-07-31T23:00:39","guid":{"rendered":"http:\/\/www.hexacorn.com\/blog\/?p=4276"},"modified":"2017-10-25T18:28:34","modified_gmt":"2017-10-25T18:28:34","slug":"the-wizard-of-x-oppa-plugx-style","status":"publish","type":"post","link":"https:\/\/www.hexacorn.com\/blog\/2017\/07\/31\/the-wizard-of-x-oppa-plugx-style\/","title":{"rendered":"The Wizard of X &#8211; Oppa PlugX style"},"content":{"rendered":"<p>Xwizard is an &#8216;Extensible wizard host process&#8217;. While I am not 100% sure what it is doing I know for certain that &#8211; whatever it is &#8211; PlugX guys would approve.<\/p>\n<p>Why?<\/p>\n<p>When you run it with a &#8216;\/h&#8217; command line parameter, you will get this info:<\/p>\n<p><a href=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2017\/07\/xwizard.png\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-4277 size-full\" src=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2017\/07\/xwizard.png\" alt=\"\" width=\"480\" height=\"538\" srcset=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2017\/07\/xwizard.png 480w, https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2017\/07\/xwizard-268x300.png 268w\" sizes=\"(max-width: 480px) 100vw, 480px\" \/><\/a><br \/>\nSomething about the unusual command line parameters described there caught my eye.<\/p>\n<p>After a quick inspection I discovered why. The arguments are actually&#8230; names of functions exported from xwizards.dll!<\/p>\n<p><a href=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2017\/07\/xwizard2.png\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4280\" src=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2017\/07\/xwizard2.png\" alt=\"\" width=\"428\" height=\"360\" srcset=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2017\/07\/xwizard2.png 428w, https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2017\/07\/xwizard2-300x252.png 300w\" sizes=\"(max-width: 428px) 100vw, 428px\" \/><\/a><\/p>\n<p>Very nice!<\/p>\n<p>And even nicer is the fact the LoadLibraryEx that loads that xwizards.dll finds its conveniently in the current path&#8230;<\/p>\n<p>Ouch&#8230;<\/p>\n<p>So&#8230; all you have to do is copy c:\\WINDOWS\\system32\\xwizard.exe to your folder, drop your xwizards.dll DLL there and call xwizard.exe with at least two arguments.<\/p>\n<p>And the Microsoft-signed xwizards.exe will load xwizards.dll of your choice&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Xwizard is an &#8216;Extensible wizard host process&#8217;. While I am not 100% sure what it is doing I know for certain that &#8211; whatever it is &#8211; PlugX guys would approve. Why? When you run it with a &#8216;\/h&#8217; command &hellip; <a href=\"https:\/\/www.hexacorn.com\/blog\/2017\/07\/31\/the-wizard-of-x-oppa-plugx-style\/\">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":[43,15,19,46,56,9],"tags":[],"_links":{"self":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/4276"}],"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=4276"}],"version-history":[{"count":4,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/4276\/revisions"}],"predecessor-version":[{"id":4282,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/4276\/revisions\/4282"}],"wp:attachment":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/media?parent=4276"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/categories?post=4276"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/tags?post=4276"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}