Last active
August 8, 2022 08:47
-
-
Save benfoxall/a70c7776796dcfdde93f2e78412b8e67 to your computer and use it in GitHub Desktop.
Reset MAC address (for rejoining time-limited wifi)
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
# turn off wifi | |
sudo /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -z | |
# set mac address to random value | |
NEW_MAC=`openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//'` | |
sudo ifconfig en0 lladdr $NEW_MAC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment