Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

persistence - Post module for OSX #2195

Closed
wants to merge 1 commit into from

Conversation

icewall
Copy link

@icewall icewall commented Aug 7, 2013

This module provides persistence boot payload via creating proper entry (plist) in LaunchAgents directory for current user.

<string>#{path}</string>
</array>
<key>RunAtLoad</key>
<true/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not:
KeepAlive

also?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect suggestion, gonna add it

@alexmaloteaux
Copy link
Contributor

hi the same persistence module with keepalive as well as a linux one has been posted here : #629
However it was discarded as those modules need to use Exploit::Local which is way easier to handle.
I did rewrite mine some times ago, just need to retest and pr it

OptString.new('PAYLOAD', [true, 'Selected payload','osx/x86/shell_reverse_tcp']),
OptString.new('BACKDOOR_FILE_NAME', [false, 'Backdoor file name. If not set, random name is generated.']),
OptString.new('BACKDOOR_DIR_NAME', [false, 'Name of backdoor directory. If not set, random name is generated.']),
OptString.new('BACKDOOR_TO_UPLOAD', [false, 'Path to backdoor ready to upload instead of generating payload.']),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You want to use OptPath() instead of OptString for this one, because OptPath will validate the path.

@jvennix-r7
Copy link
Contributor

This probably needs to be made into a local exploit module, so that you don't have to add/configure the PAYLOAD datastore stuff by hand. Take a look at the windows persistence local exploit for reference.

@alexmaloteaux have you made any progress on that PR?

@jvennix-r7
Copy link
Contributor

I'm migrating this to a local exploit with my PR: #2513

I branched off your original commit, thanks for the code! Now closing this PR since it hasn't moved in 2 months.

@jvennix-r7 jvennix-r7 closed this Oct 13, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants