public
Created

  • Download Gist
.bashrc
Shell
1 2 3
# MAC manipulators
alias random_mac='sudo ifconfig en0 ether `openssl rand -hex 6 | sed "s/\(..\)/\1:/g; s/.$//"`'
alias restore_mac='sudo ifconfig en0 ether YOUR_ORIGINAL_MAC_ADDRESS_GOES_HERE'

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.