{"id":6389,"date":"2019-06-01T22:43:39","date_gmt":"2019-06-01T22:43:39","guid":{"rendered":"http:\/\/www.hexacorn.com\/blog\/?p=6389"},"modified":"2019-06-01T22:43:41","modified_gmt":"2019-06-01T22:43:41","slug":"beyond-good-ol-run-key-part-106","status":"publish","type":"post","link":"https:\/\/www.hexacorn.com\/blog\/2019\/06\/01\/beyond-good-ol-run-key-part-106\/","title":{"rendered":"Beyond good ol\u2019 Run key, Part 106"},"content":{"rendered":"\n<p>This persistence trick has a historical value only (at least as far as I can tell). It only works on old Windows XP, and only on systems with IME e.g. Chinese.<\/p>\n\n\n\n<p>On these systems when console window is created, the kernel32.dll reaches out to the following Registry entry:<\/p>\n\n\n\n<ul><li>HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Console\\ConsoleIME<\/li><\/ul>\n\n\n\n<p>It then fetches the string that is stored there. If the entry is not present, the default &#8216;conime.exe&#8217; string is assumed. <\/p>\n\n\n\n<p>The conime.exe, or its replacement is then launched.<\/p>\n\n\n\n<p>In the demo below, I run a test on Chinese Windows XP, where I set the value to calc.exe. You can&#8217;t specify a full path &#8211; the system will prepend the value with a path referring to its system directory (e.g. c:\\windows\\system32\\). Of course, we can always use parent directory trick to run any file from any location on a system (e.g. ..\\..\\test\\malware.exe will run c:\\test\\malware.exe)<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"1005\" height=\"637\" src=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2019\/06\/conimeIME.gif\" alt=\"\" class=\"wp-image-6390\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>This persistence trick has a historical value only (at least as far as I can tell). It only works on old Windows XP, and only on systems with IME e.g. Chinese. On these systems when console window is created, the &hellip; <a href=\"https:\/\/www.hexacorn.com\/blog\/2019\/06\/01\/beyond-good-ol-run-key-part-106\/\">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,53,35],"tags":[],"_links":{"self":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/6389"}],"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=6389"}],"version-history":[{"count":1,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/6389\/revisions"}],"predecessor-version":[{"id":6391,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/6389\/revisions\/6391"}],"wp:attachment":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/media?parent=6389"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/categories?post=6389"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/tags?post=6389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}