Skip to content

Instantly share code, notes, and snippets.

@lucasbento
Created October 17, 2018 07:08
Show Gist options
  • Save lucasbento/78e52e78a5d9e377721e26f5ebbcb399 to your computer and use it in GitHub Desktop.
Save lucasbento/78e52e78a5d9e377721e26f5ebbcb399 to your computer and use it in GitHub Desktop.
Use more than 15 minutes of free wi-fi :)
#!/bin/bash
newMACAddress=$(openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//')
ifconfig en0 ether $newMACAddress
echo "🔥 new MAC address: $newMACAddress"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment