Created
January 19, 2015 17:11
-
-
Save gotbadger/2a67466df091512e96a2 to your computer and use it in GitHub Desktop.
Change mac address OSX to something random
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
NEW_MAC_ADDRESS=$(openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//') | |
echo Mac changed to $NEW_MAC_ADDRESS | |
sudo ifconfig en0 ether $NEW_MAC_ADDRESS | |
ifconfig en0 |grep ether |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment