Skip to content

OSX Persistence: profile - #21767

Open
h00die wants to merge 1 commit into
rapid7:masterfrom
h00die:osx_persistence_profile
Open

OSX Persistence: profile#21767
h00die wants to merge 1 commit into
rapid7:masterfrom
h00die:osx_persistence_profile

Conversation

@h00die

@h00die h00die commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Description

This PR adds a new module for OSX persistence: profiles

Related Issue: #19886

Breaking Changes

None

Reviewer Notes

Tested against my very old mac, lemme know how it works on modern

Verification Steps

  1. Start msfconsole
  2. Get a root shell on the target
  3. Do: use exploit/osx/persistence/profile
  4. Do: set session <session>
  5. Do: set WritableDir /var/tmp
  6. Do: run
  7. On macOS 11+, approve the profile installation in System Settings on the target
  8. Log out and back in on the target (or set RUN_NOW true)
  9. You should get a new shell as the logging in user.

AI Usage Disclosure

Kimi K3 was used to generate code and docs, manual review and testing was done after that to clean it up and make it usable

@dledda-r7

Copy link
Copy Markdown
Contributor

we are so back

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants