Description
This module will create an override.conf file for a SystemD service on the box. The ExecStartPost hook is used to launch the payload after the service is started. We need enough access (typically root) to write in the /etc/systemd/system directory and potentially restart services. Verified on Ubuntu 22.04
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/linux/persistence/init/systemd_overridemsf undefined(systemd_override) > show actions ...actions...msf undefined(systemd_override) > set ACTION < action-name >msf undefined(systemd_override) > show options ...show and set options...msf undefined(systemd_override) > 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