Description
Creates a scheduled task that will run using service-for-user (S4U). This allows the scheduled task to run even as an unprivileged user that is not logged into the device. This will result in lower security context, allowing access to local resources only. The module requires 'Logon as a batch job' permissions (SeBatchLogonRight).
This variant uses an event trigger to launch the payload when a specified event is logged to the Windows Event Log.
See documentation for more interesting event trigger ideas.
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/service/for_user/eventmsf undefined(event) > show actions ...actions...msf undefined(event) > set ACTION < action-name >msf undefined(event) > show options ...show and set options...msf undefined(event) > 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