Skip to content

Instantly share code, notes, and snippets.

@latentflip
Created June 3, 2011 20:10
Show Gist options
  • Save latentflip/1007071 to your computer and use it in GitHub Desktop.
Save latentflip/1007071 to your computer and use it in GitHub Desktop.
MAC Spoof on OSX
### 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