Skip to content

Instantly share code, notes, and snippets.

@RyanThompson
Created August 1, 2017 15:55
Show Gist options
  • Save RyanThompson/8aee853fb6f1c6936cc79f74ab597d62 to your computer and use it in GitHub Desktop.
Save RyanThompson/8aee853fb6f1c6936cc79f74ab597d62 to your computer and use it in GitHub Desktop.
Spoof MAC Address
# Get new MAC address.
openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/./0/2; s/.$//'
# Assign new MAC address.
sudo ifconfig en0 ether {$MAC}
@RyanThompson
Copy link
Author

RyanThompson commented Aug 1, 2017

Handy for airport WiFi security.

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