{"id":6661,"date":"2019-08-16T22:31:13","date_gmt":"2019-08-16T22:31:13","guid":{"rendered":"http:\/\/www.hexacorn.com\/blog\/?p=6661"},"modified":"2019-08-16T22:31:15","modified_gmt":"2019-08-16T22:31:15","slug":"beyond-good-ol-run-key-part-112","status":"publish","type":"post","link":"https:\/\/www.hexacorn.com\/blog\/2019\/08\/16\/beyond-good-ol-run-key-part-112\/","title":{"rendered":"Beyond good ol\u2019 Run key, Part 112"},"content":{"rendered":"\n<p>This is a pretty ancient persistence trick one can use on systems where IBM&#8217;s Java Control Panel is still present.<\/p>\n\n\n\n<p>On these systems you will find Registry Key:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>HKLM\\SOFTWARE\\IBM\\Java2 Runtime Environment\\<br>&lt;version>\\<\/p><\/blockquote>\n\n\n\n<p>and a Value Name underneath called:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>JavaHome = &lt;directory><\/p><\/blockquote>\n\n\n\n<p>By changing this value, one can ensure that next time the Control Panel applet is called, the signed CPL file will launch a <em>bin\\javacpl.exe<\/em> program from this path.<\/p>\n\n\n\n<p>In other words, for the example old version 1.6.0 one could change the value name to this:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>HKLM\\SOFTWARE\\IBM\\Java2 Runtime Environment\\<br>1.6.0\\JavaHome=c:\\test<\/p><\/blockquote>\n\n\n\n<p>and then drop a malicious <em>c:\\Test\\bin\\javacpl.exe<\/em> file.<\/p>\n\n\n\n<p>I have not tested it, but I am pretty sure that changing the value of that variable will definitely affect the way Java works, so things will be probably broken, unless proper links to files are established for all the content residing in the actual JavaHome directory.<\/p>\n\n\n\n<p>Yes, it&#8217;s ancient, and probably dead by this time + not worth pursuing, but just documenting&#8230; because why not.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a pretty ancient persistence trick one can use on systems where IBM&#8217;s Java Control Panel is still present. On these systems you will find Registry Key: HKLM\\SOFTWARE\\IBM\\Java2 Runtime Environment\\&lt;version>\\ and a Value Name underneath called: JavaHome = &lt;directory> &hellip; <a href=\"https:\/\/www.hexacorn.com\/blog\/2019\/08\/16\/beyond-good-ol-run-key-part-112\/\">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\/6661"}],"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=6661"}],"version-history":[{"count":2,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/6661\/revisions"}],"predecessor-version":[{"id":6663,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/6661\/revisions\/6663"}],"wp:attachment":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/media?parent=6661"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/categories?post=6661"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/tags?post=6661"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}