Last active
November 13, 2017 11:42
-
-
Save jsonmaur/e1e4b651bf5783c3023623e36108327c to your computer and use it in GitHub Desktop.
Spoof MAC address on macOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Quicker way: https://github.com/feross/spoof