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.
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/periodic/scriptmsf undefined(script) > show actions ...actions...msf undefined(script) > set ACTION < action-name >msf undefined(script) > show options ...show and set options...msf undefined(script) > runPrioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub