-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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 Apt package manager persistence module #11665
Add Apt package manager persistence module #11665
Conversation
… logic, documentation
There is no need to check for apt as the first write attempt is to an apt specific folder. If apt is not installed the folder will not exist and so the write check should fail. Changed the error message to reflect that. |
modules/exploits/linux/local/apt_package_manager_persistence.rb
Outdated
Show resolved
Hide resolved
modules/exploits/linux/local/apt_package_manager_persistence.rb
Outdated
Show resolved
Hide resolved
modules/exploits/linux/local/apt_package_manager_persistence.rb
Outdated
Show resolved
Hide resolved
modules/exploits/linux/local/apt_package_manager_persistence.rb
Outdated
Show resolved
Hide resolved
modules/exploits/linux/local/apt_package_manager_persistence.rb
Outdated
Show resolved
Hide resolved
Changed some of the quotes and also ran a rubocop to try to find some space formatting. I did not see the use of single quotes vs double quotes in the docs, although covered under rubocop. Was mostly sticking to double quotes since there was a lot of string interpolation. |
Changed Disclosure Date format Co-Authored-By: aringo <ringo.aaron@gmail.com>
Release NotesThe linux/local/apt_package_manager_persistence exploit module has been added to the framework. This module adds a hook to execute a payload when |
This module will run a payload when the package manager is triggered. Module installs a pre-invoke hook for APT in apt.conf.d.
Verification
msfconsole
use exploit/linux/local/apt_package_manager_persistence
exploit
use exploit/multi/handler/
run
sudo apt-get update