module

rc.local Persistence

Disclosed
Oct 1, 1980
Created
Mar 19, 2019

Description

This module will edit /etc/rc.local in order to persist a payload.
The payload will be executed on the next reboot.

Author

Eliott Teissonniere

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

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.