Skip to content

Instantly share code, notes, and snippets.

@joelteply
Created August 1, 2018 22:35
Show Gist options
  • Save joelteply/6822010ed3b4e40402145fa9bb504320 to your computer and use it in GitHub Desktop.
Save joelteply/6822010ed3b4e40402145fa9bb504320 to your computer and use it in GitHub Desktop.
Infinite wifi via mac address reassignment
#put in your ~/.bash_profile or ~/.profile and source it
showmac="ifconfig en0 | grep ether"
genmac="sudo ifconfig en0 ether $(openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/./0/2; s/.$//')"
alias newmac="${showmac}; ${genmac}; echo 'switched to'; ${showmac};"
#then just run newmac from terminal and reconnect. If need be, clear cookies from your browsers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment