Skip to content

Conversation

h00die
Copy link
Contributor

@h00die h00die commented Sep 6, 2025

Pulls out openrc from the init persistence module and adds new persistence mixin. Part of #20374

Verification

  • Start msfconsole
  • exploit the box somehow (ssh_login for instance)
  • use exploit/linux/persistence/init_openrc
  • set SESSION <id>
  • exploit
  • Verify persistence is created, and you get a new session if apt is run
  • Verify cleanup works
  • Document is updated and correct

@h00die h00die force-pushed the modern_persistence_openrc branch from 7b92e7a to 16e407f Compare September 9, 2025 19:51
@msutovsky-r7
Copy link
Contributor

Is this new module? Should we add module tag instead?

@h00die
Copy link
Contributor Author

h00die commented Sep 11, 2025

Nope, the service_persistence.rb module was just WAY too complex trying to handle services between all the available init systems, so i divided it out. This init system per module makes much more sense when persistence_suggester lands as well.

@jheysel-r7 jheysel-r7 self-assigned this Sep 12, 2025
@jheysel-r7 jheysel-r7 added the rn-enhancement release notes enhancement label Sep 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement rn-enhancement release notes enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants