Description
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.
Additionally a custom command can be specified to run once the trigger is activated using the advanced option CustomPsCommand. This module requires administrator level privileges as well as a high integrity process. It is also recommended to use staged payloads due to powershell script length limitations.
Module options
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use exploit/windows/persistence/wmi/wmi_event_subscription_uptimemsf undefined(wmi_event_subscription_uptime) > show actions ...actions...msf undefined(wmi_event_subscription_uptime) > set ACTION < action-name >msf undefined(wmi_event_subscription_uptime) > show options ...show and set options...msf undefined(wmi_event_subscription_uptime) > runPrioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub