{"id":5742,"date":"2018-12-26T00:53:32","date_gmt":"2018-12-26T00:53:32","guid":{"rendered":"http:\/\/www.hexacorn.com\/blog\/?p=5742"},"modified":"2018-12-26T00:53:34","modified_gmt":"2018-12-26T00:53:34","slug":"beyond-good-ol-run-key-part-97","status":"publish","type":"post","link":"https:\/\/www.hexacorn.com\/blog\/2018\/12\/26\/beyond-good-ol-run-key-part-97\/","title":{"rendered":"Beyond good ol\u2019 Run key, Part 97"},"content":{"rendered":"\n<p>When I explore new persistence mechanisms, I usually try to focus on a native OS functionality. The main reason for such approach is the omnipresence of these mechanisms &#8211; they can be used on most versions of the Windows OS no matter what other software is present.<\/p>\n\n\n\n<p>Every once in a while I do look at other persistence &#8216;vectors&#8217; tho. Ones that focus on popular applications e.g. <a href=\"https:\/\/www.hexacorn.com\/blog\/2014\/04\/16\/beyond-good-ol-run-key-part-10\/\">Office<\/a>, <a href=\"https:\/\/www.hexacorn.com\/blog\/2018\/06\/10\/beyond-good-ol-run-key-part-79\/\">Total Commander<\/a>, <a href=\"https:\/\/www.hexacorn.com\/blog\/2012\/09\/16\/beyond-good-ol-run-key-part-2\/\">popular<\/a> <a href=\"https:\/\/www.hexacorn.com\/blog\/2016\/03\/01\/beyond-good-ol-run-key-part-35\/\">archivers<\/a>, <a href=\"https:\/\/www.hexacorn.com\/blog\/2018\/12\/02\/beyond-good-ol-run-key-part-95\/\">email<\/a> or <a href=\"https:\/\/www.hexacorn.com\/blog\/2012\/07\/23\/beyond-good-ol-run-key\/\">torrent<\/a> clients. They are so prevalent that they form a separate &#8216;cloud&#8217; of apps that can be abused for persistence simply because they are so popular.<\/p>\n\n\n\n<p>Today&#8217;s subject is a software that is very unusual &#8211; the burning software. 15 years ago everyone was using it. Today it&#8217;s really a bit of a remnant of the good old times. I have not burnt a single CD\/DVD since 2009-2010. I really can&#8217;t recall any instance where I would do so within last 8 years. The cloud, the USB 3.0, and capacity of external drives pretty much rendered media burning obsolete.<\/p>\n\n\n\n<p>Except, according to my quick <a href=\"https:\/\/twitter.com\/Hexacorn\/status\/1077381270668279808\">Twitter quiz<\/a> question many still use it.<\/p>\n\n\n\n<p>Nero was and still is one of the best media burning applications. While I won&#8217;t cover its features in detail I do want to acknowledge its role in shaping the media burning industry &#8211; at some stage it was a staple program used by many &#8216;burners&#8217;.<\/p>\n\n\n\n<p>Its popularity, even today, can be used for not-so-nice-reasons.<\/p>\n\n\n\n<p>How?<\/p>\n\n\n\n<p>The simplest way is to drop a fake plug-in inside the following location:<\/p>\n\n\n\n<ul><li>c:\\Program Files\\Common Files\\Ahead\\AudioPlugins<\/li><\/ul>\n\n\n\n<p>The plug-in must be a DLL file named with a &#8216;nx&#8217; prefix, and exporting two functions:<\/p>\n\n\n\n<ul><li>NERO_PLUGIN_GetPrimaryAudioObject<\/li><li>NERO_PLUGIN_ReadyToFinish<\/li><\/ul>\n\n\n\n<p>Such plug-in can be then loaded anytime user wants to burn the Audio CD. For testing purposes, the easiest way to &#8216;trigger&#8217; the execution is by going to Tools, and looking at Plugins Options. All the DLLs, as long as properly named, will load and execute at least their DllMain.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2018\/12\/nero_plugin1.png\" alt=\"\" class=\"wp-image-5744\" width=\"374\" height=\"117\" srcset=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2018\/12\/nero_plugin1.png 500w, https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2018\/12\/nero_plugin1-300x94.png 300w\" sizes=\"(max-width: 374px) 100vw, 374px\" \/><\/figure><\/div>\n\n\n\n<p>There are more locations that can be potentially abused:<\/p>\n\n\n\n<ul><li>HKLM\\SOFTWARE\\Ahead\\Shared\\AudioEffects\\DXPlugins<\/li><li>HKLM\\SOFTWARE\\Ahead\\Nero PhotoSnap Shared\\PluginManager\\Plugins<\/li><li>HKLM\\SOFTWARE\\Ahead\\Nero Mobile\\Installer\\Signed=&lt;exe&gt;<\/li><li> HKLM\\SOFTWARE\\Ahead\\Nero Mobile\\Installer\\Unsigned=&lt;exe&gt; <\/li><li>HKLM\\SOFTWARE\\Ahead\\Nero BurnRights\\PathToBurnRights =&lt;exe&gt; <\/li><li>HKLM\\SOFTWARE\\Ahead\\InCD\\UI\\LaunchOnBlankDisc=&lt;exe&gt;<\/li><li>HKLM\\SOFTWARE\\Ahead\\Shared\\&lt;various registry names can be replaced&gt;<\/li><\/ul>\n\n\n\n<p>Some of these executable paths could be replaced with others (man in the middle attack). Some can point to new plugins added under respective Nero applications suite.<\/p>\n\n\n\n<p>And Nero is just an example. I think most of the popular applications that thrived in early noughties and survived to this day can be abused in a similar way as long as they offer some options for customization, and support plugins. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>When I explore new persistence mechanisms, I usually try to focus on a native OS functionality. The main reason for such approach is the omnipresence of these mechanisms &#8211; they can be used on most versions of the Windows OS &hellip; <a href=\"https:\/\/www.hexacorn.com\/blog\/2018\/12\/26\/beyond-good-ol-run-key-part-97\/\">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,35],"tags":[],"_links":{"self":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/5742"}],"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=5742"}],"version-history":[{"count":6,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/5742\/revisions"}],"predecessor-version":[{"id":5749,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/5742\/revisions\/5749"}],"wp:attachment":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/media?parent=5742"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/categories?post=5742"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/tags?post=5742"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}