Created
June 3, 2011 20:10
-
-
Save latentflip/1007071 to your computer and use it in GitHub Desktop.
MAC Spoof on OSX
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
### Do these once | |
ifconfig en1|grep ether > .macaddress #Save your real mac address somewhere | |
#Alias the airport adapter | |
sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport | |
###Then each time you want to change MAC address: | |
airport -z #disconnect but don't turn off the airport | |
sudo ifconfig en1 ether 00:00:00:00:00:00 #set new mac address (perhaps just increment your old one) | |
ifconfig en1|grep ether #check it's actually changed | |
#And you're done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment