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
Add persistence module for linux and osx #629
Conversation
All of the payload creation and handler stuff can be taken care of by the framework if you make this an |
#------------------------------------------------------------------------------- | ||
def log_file(log_path = nil) | ||
#Get hostname | ||
host = session.sys.config.sysinfo["Computer"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should just be sysinfo
which is a method defined on Post that caches the result, so multiple uses in the same module don't have to make unnecessary requests.
Hi jlee-r7
5)Copy-paste comment => you have tiger eyes :) , this comment will be removed |
Have removed the comment and used the file/directory_exist method from post::File For other remarks, it was like this for month and just moved to persistence mixin so may be better to use it that way. Best Regards |
What I meant with the Exploit::Local comment was that this should not be a Post module. It uses a payload, so therefore it should be an exploit. The windows version was created before Exploit::Local was useful, so it gets a pass until I have time to port it. |
Looks like @alexmaloteaux has abandoned this pull request -- no movement on a month, and the PR now has merge conflicts due to drift. Closing this out -- please reopen when you're ready to work on this again. |
This patch will create a pesistence mixin shared between osx / linux ans win persistence post module.
For Osx , the persistence is done through launchd by adding a crafted plist file in /Users/username/Library/LaunchAgents for normal user or /Library/LaunchDaemons for root. Keepalive is a feature of launchd
For Linux there is 4 differents methods :
Keepalive is done through a bashscript.