Description
This module will create an autostart .desktop entry to execute a payload. The payload will be executed when the users logs in. Verified on Ubuntu 22.04 desktop with Gnome, and 18.04.3. The following payloads were used in testing: - cmd/unix/reverse_netcat - linux/x64/meterpreter/reverse_tcp - cmd/linux/http/x64/meterpreter/reverse_tcp
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/autostartmsf undefined(autostart) > show actions ...actions...msf undefined(autostart) > set ACTION < action-name >msf undefined(autostart) > show options ...show and set options...msf undefined(autostart) > 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