Skip to content

Instantly share code, notes, and snippets.

Last active November 13, 2017 11:42
What would you like to do?
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
Copy link

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