-
-
Save zoonderkins/3323d95aa7ba7eab27e43977bc6ce9f0 to your computer and use it in GitHub Desktop.
Change your MAC address on OS X.
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
#!/bin/bash | |
ssid=$(networksetup -getairportnetwork en0 | cut -d ":" -f 2 | sed "s/^[ \t]*//") | |
sudo airport -z | |
sudo ifconfig en0 ether $(openssl rand -hex 6 | sed "s/\(..\)/\1:/g; s/.\$//") | |
networksetup -setairportnetwork en0 "$ssid" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment