Skip to content

Instantly share code, notes, and snippets.

@jashkenas
Created March 8, 2013 00:19
Show Gist options
  • Save jashkenas/5113149 to your computer and use it in GitHub Desktop.
Save jashkenas/5113149 to your computer and use it in GitHub Desktop.
# 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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment