{"id":10187,"date":"2025-10-18T23:58:35","date_gmt":"2025-10-18T23:58:35","guid":{"rendered":"https:\/\/www.hexacorn.com\/blog\/?p=10187"},"modified":"2025-10-19T01:28:27","modified_gmt":"2025-10-19T01:28:27","slug":"1-little-known-secret-of-wsreset-exe","status":"publish","type":"post","link":"https:\/\/www.hexacorn.com\/blog\/2025\/10\/18\/1-little-known-secret-of-wsreset-exe\/","title":{"rendered":"1 little known secret of wsreset.exe"},"content":{"rendered":"\n<p>The <em>wsreset.exe<\/em> program is a known <a href=\"https:\/\/lolbas-project.github.io\/lolbas\/Binaries\/Wsreset\/\">lolbin<\/a>, but it has a lot more to offer than is currently known.<\/p>\n\n\n\n<p>When it is invoked with a command line argument <em>\/refreshlicenses<\/em> it loads a <em>licensemanagerapi.dll<\/em> library from a current path, so copying <em>c:\\windows\\System32\\WSReset.exe<\/em> file to a different folder, dropping a payload into <em>licensemanagerapi.dll<\/em> file, and then launching that copy of <em>WSReset.exe<\/em> with a <em>\/refreshlicenses<\/em> command line argument will load the payload:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2025\/10\/wsreset_1.png\"><img decoding=\"async\" loading=\"lazy\" width=\"459\" height=\"324\" src=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2025\/10\/wsreset_1.png\" alt=\"\" class=\"wp-image-10188\" srcset=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2025\/10\/wsreset_1.png 459w, https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2025\/10\/wsreset_1-300x212.png 300w, https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2025\/10\/wsreset_1-425x300.png 425w\" sizes=\"(max-width: 459px) 100vw, 459px\" \/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>The wsreset.exe program is a known lolbin, but it has a lot more to offer than is currently known. When it is invoked with a command line argument \/refreshlicenses it loads a licensemanagerapi.dll library from a current path, so copying &hellip; <a href=\"https:\/\/www.hexacorn.com\/blog\/2025\/10\/18\/1-little-known-secret-of-wsreset-exe\/\">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":[126,56,64],"tags":[],"_links":{"self":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/10187"}],"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=10187"}],"version-history":[{"count":1,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/10187\/revisions"}],"predecessor-version":[{"id":10189,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/10187\/revisions\/10189"}],"wp:attachment":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/media?parent=10187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/categories?post=10187"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/tags?post=10187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}