Skip to content

Instantly share code, notes, and snippets.

@jsonmaur
Last active November 13, 2017 11:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsonmaur/e1e4b651bf5783c3023623e36108327c to your computer and use it in GitHub Desktop.
Save jsonmaur/e1e4b651bf5783c3023623e36108327c to your computer and use it in GitHub Desktop.
Spoof MAC address on macOS
# network settings -> wifi -> advanced -> hardware
# change "configure" to "manually". save & apply.
# compare mac address to one you see in settings
ifconfig en0 | grep ether
# generate a new random one
openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//'
# set spoofed address (substitute with generated one from above)
sudo iconfig en0 ether xx:xx:xx:xx:xx:xx
# make sure new address returns
ifconfig en0 | grep ether
@jsonmaur
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment