Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save javasteve99/2668f2777461b6a951e2 to your computer and use it in GitHub Desktop.
Save javasteve99/2668f2777461b6a951e2 to your computer and use it in GitHub Desktop.
generate random MAC address:
openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//'
Change current address to randomly generated one:
sudo ifconfig en0 ether <replace with new mac address>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment