Rapid7

module

Cron Persistence

Disclosed
Jul 1, 1979
Created
Sep 18, 2025

Description

This module will create a cron or crontab entry to execute a payload.
The module includes the ability to automatically clean up those entries to prevent multiple executions.
syslog will get a copy of the cron entry.
Verified on Ubuntu 22.04.1, MacOS 13.7.4

Author

Platform

Linux,OSX,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/multi/persistence/cron
msf exploit(cron) > show targets
...targets...
msf exploit(cron) > set TARGET < target-id >
msf exploit(cron) > show options
...show and set options...
msf exploit(cron) > 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.