Created
October 11, 2011 18:43
-
-
Save mheap/1278992 to your computer and use it in GitHub Desktop.
Change MAC Address OSX
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=$1 | |
echo $NEWMAC | |
INTERFACE='en0' | |
echo "Before:" | |
ifconfig $INTERFACE | grep ether | |
/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -z | |
ifconfig $INTERFACE ether $NEWMAC | |
echo "After:" | |
ifconfig $INTERFACE | grep ether |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment