Skip to content

Instantly share code, notes, and snippets.

@anilshanbhag
Last active May 23, 2017 19:07
Show Gist options
  • Save anilshanbhag/5874c7530e94446fcd08a95954415303 to your computer and use it in GitHub Desktop.
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.
#!/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