Description
This module establishes persistence by setting the UserInitMprLogonScript value in HKCU\Environment. During user logon, userinit.exe checks this value and executes the specified command or binary.
The module writes a payload executable to disk and points UserInitMprLogonScript to that payload.
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/userinit/mpr_logon_scriptmsf undefined(mpr_logon_script) > show actions ...actions...msf undefined(mpr_logon_script) > set ACTION < action-name >msf undefined(mpr_logon_script) > show options ...show and set options...msf undefined(mpr_logon_script) > 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