Rapid7

module

Periodic Script Persistence

Disclosed
Apr 1, 2012
Created
Aug 29, 2025

Description

This module will achieve persistence by writing a script to the /etc/periodic directory.
According to The Art of Mac Malware no such malware species persist in this manner (2024).
This payload requires root privileges to run. This module can be run on BSD, OSX or Arch Linux.

Authors

gardnerapp
msutovsky-r7

Platform

BSD,OSX,Unix

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