Skip to content

Instantly share code, notes, and snippets.

@hatsumatsu
Last active May 31, 2023 05:26
Show Gist options
  • Save hatsumatsu/33f98a08bba44ba8ab9d04796c62742d to your computer and use it in GitHub Desktop.
Save hatsumatsu/33f98a08bba44ba8ab9d04796c62742d to your computer and use it in GitHub Desktop.
# Spoof MAC address, generated by openssl
networksetup -setairportpower en0 off && sleep 1 && networksetup -setairportpower en0 on && sudo ifconfig en0 ether $(openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//') && networksetup -detectnewhardware
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment