Vulnerability & Exploit Database

Back to search

Service Persistence

This module will create a service on the box, and mark it for auto-restart. We need enough access to write service files and potentially restart services Targets: System V: CentOS <= 5 Debian <= 6 Kali 2.0 Ubuntu <= 9.04 Upstart: CentOS 6 Fedora >= 9, < 15 Ubuntu >= 9.10, <= 14.10 systemd: CentOS 7 Debian >= 7, <=8 Fedora >= 15 Ubuntu >= 15.04 Note: System V won't restart the service if it dies, only an init change (reboot etc) will restart it.

Free Metasploit Download

Get your copy of the world's leading penetration testing tool

 Download Now

Module Name

exploit/linux/local/service_persistence

Authors

  • h00die <mike [at] shorebreaksecurity.com>

References

Targets

  • Auto
  • System V
  • Upstart
  • systemd

Platforms

  • unix
  • linux

Architectures

  • cmd

Reliability

Development

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