Rapid7

module

Init OpenRC Persistence

Disclosed
Apr 5, 2007
Created
Sep 16, 2025

Description

This module will create a service on the box via OpenRC, and mark it for auto-restart.
We need enough access to write service files and potentially restart services.
Verified against alpine 3.21.2

Author

h00die

Platform

Linux,Unix

Architectures

cmd, x86, x64, armle, aarch64, ppc, mipsle, mipsbe

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