Skip to content

Instantly share code, notes, and snippets.

@wcharczuk
Created March 28, 2013 12:37
Show Gist options
  • Save wcharczuk/5262800 to your computer and use it in GitHub Desktop.
Save wcharczuk/5262800 to your computer and use it in GitHub Desktop.
Programatically set your mac address
#!/bin/sh
echo "Setting MAC Address ..."
networksetup -setairportpower en1 on;
/System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -z
/sbin/ifconfig en1 ether YOUR_MAC_ADDRESS_HERE
networksetup -detectnewhardware
echo "Done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment