Skip to content

Instantly share code, notes, and snippets.

@mykeels
Created May 21, 2019 07:36
Show Gist options
  • Save mykeels/144f92862235cf5b737455481c841bb1 to your computer and use it in GitHub Desktop.
Save mykeels/144f92862235cf5b737455481c841bb1 to your computer and use it in GitHub Desktop.
function changeMac() {
local mac=$(openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//')
sudo ifconfig en0 ether $mac
sudo ifconfig en0 down
sudo ifconfig en0 up
echo "Your new physical address is $mac"
}
# Unlimited WiFi ✨
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment