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 triggers on either a lock or unlock of the workstation.
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/lock_unlockmsf undefined(lock_unlock) > show actions ...actions...msf undefined(lock_unlock) > set ACTION < action-name >msf undefined(lock_unlock) > show options ...show and set options...msf undefined(lock_unlock) > 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