module

update-motd.d Persistence

Disclosed
1999-01-01
Created
2024-09-13

Description

This module will add a script in /etc/update-motd.d/ in order to persist a payload.
The payload will be executed with root privileges everytime a user logs in.

Author

Julien Voisin

Platform

Linux,Unix

Architectures

cmd

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/local/motd_persistence
msf exploit(motd_persistence) > show targets
...targets...
msf exploit(motd_persistence) > set TARGET < target-id >
msf exploit(motd_persistence) > show options
...show and set options...
msf exploit(motd_persistence) > exploit

Title
NEW

Explore Exposure Command

Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.