Skip to content

Instantly share code, notes, and snippets.

@jsonmaur jsonmaur/spoof.sh
Last active Nov 13, 2017

Embed
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
@jsonmaur

This comment has been minimized.

Copy link
Owner Author

commented Mar 20, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.