Created
February 22, 2014 23:02
-
-
Save typhonius/9163728 to your computer and use it in GitHub Desktop.
Sets a new mac address
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
newmac() { | |
MAC=`openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//'` | |
echo "Setting MAC address to $MAC" | |
sudo ifconfig en0 ether $MAC | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment