Last active
May 23, 2017 19:07
-
-
Save anilshanbhag/5874c7530e94446fcd08a95954415303 to your computer and use it in GitHub Desktop.
Many airports offer only 30 min free wifi. Use this script to get around it.
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 | |
sudo /System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -z | |
openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/./0/2; s/.$//' | |
sudo ifconfig en0 ether d0:e4:74:b3:71:55 | |
networksetup -detectnewhardware |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment