Here is a script that can change your MAC address automatically. Just save it as
~/bin/macchange and add
~/bin to your path. Tested on Mac OSX Yosemite.
macchnage to change MAC address to a random one. Type
macchange restore to restore MAC address to origin.
if [[ $1 == 'restore' ]] then action='restored' mac=$(cat ~/bin/mac.origin) else action='changed' mac=$(openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//') fi sudo ifconfig en0 ether $mac echo $action MAC to $mac ifconfig en0