{"id":7916,"date":"2022-01-18T19:23:09","date_gmt":"2022-01-18T19:23:09","guid":{"rendered":"https:\/\/www.hexacorn.com\/blog\/?p=7916"},"modified":"2022-01-18T22:06:16","modified_gmt":"2022-01-18T22:06:16","slug":"beyond-good-ol-run-key-part-136","status":"publish","type":"post","link":"https:\/\/www.hexacorn.com\/blog\/2022\/01\/18\/beyond-good-ol-run-key-part-136\/","title":{"rendered":"Beyond good ol\u2019 Run key, Part 136"},"content":{"rendered":"\n<p>I love Office-based Persistence mechanisms, because there is always&#8230; one more to discover \ud83d\ude42<\/p>\n\n\n\n<p>Take your <em>Winword.exe<\/em> from Office 2021 or Office 365. When it loads, it check if the following value exists in Registry and is not equal 0:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">HKCU\\SOFTWARE\\Microsoft\\Office\\16.0\\Word\\WwlibtDll != 0<\/pre>\n\n\n\n<p>And if it is the case&#8230; instead of loading <em>wwlib.dll<\/em>, it will load <em>wwlibt.dll<\/em>.<\/p>\n\n\n\n<p>So, place your payload in <em>wwlibt.dll<\/em> and winword will load it for you. <\/p>\n\n\n\n<p>This trick can be used as a traditional sideloading LOLBIN, and as a persistence mechanism, because <em>wwlibt.dll<\/em> could be made to load the <em>wwlib.dll<\/em>. Or, could temporary remove the value inRegistry and re-launch <em>winword.exe<\/em>.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2022\/01\/WwlibtDll-1.png\"><img decoding=\"async\" src=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2022\/01\/WwlibtDll-1.png\" alt=\"\" class=\"wp-image-7921\" width=\"550\" srcset=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2022\/01\/WwlibtDll-1.png 869w, https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2022\/01\/WwlibtDll-1-300x85.png 300w, https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2022\/01\/WwlibtDll-1-768x218.png 768w\" sizes=\"(max-width: 869px) 100vw, 869px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>Interestingly, PowerPoint has the same &#8216;feature&#8217;:<\/p>\n\n\n\n<pre id=\"block-55f1ad63-2fbe-48cf-bccf-6cd11abb6e67\" class=\"wp-block-preformatted\">HKCU\\SOFTWARE\\Microsoft\\Office\\16.0\\PowerPoint\\PPCoreTDLL != 0<\/pre>\n\n\n\n<p>and the DLL name is <em>ppcoret.dll<\/em> (instead of <em>ppcore.dll<\/em>).<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2022\/01\/PPCoreTDLL.png\"><img decoding=\"async\" src=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2022\/01\/PPCoreTDLL.png\" alt=\"\" class=\"wp-image-7927\" width=\"550\" srcset=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2022\/01\/PPCoreTDLL.png 949w, https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2022\/01\/PPCoreTDLL-300x79.png 300w, https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2022\/01\/PPCoreTDLL-768x202.png 768w\" sizes=\"(max-width: 949px) 100vw, 949px\" \/><\/a><\/figure><\/div>\n","protected":false},"excerpt":{"rendered":"<p>I love Office-based Persistence mechanisms, because there is always&#8230; one more to discover \ud83d\ude42 Take your Winword.exe from Office 2021 or Office 365. When it loads, it check if the following value exists in Registry and is not equal 0: &hellip; <a href=\"https:\/\/www.hexacorn.com\/blog\/2022\/01\/18\/beyond-good-ol-run-key-part-136\/\">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,56,64],"tags":[],"_links":{"self":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/7916"}],"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=7916"}],"version-history":[{"count":8,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/7916\/revisions"}],"predecessor-version":[{"id":7929,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/7916\/revisions\/7929"}],"wp:attachment":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/media?parent=7916"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/categories?post=7916"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/tags?post=7916"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}