Skip to content

Instantly share code, notes, and snippets.

@Makiah
Created October 24, 2017 01:18
Show Gist options
  • Save Makiah/1bd7973fa28755a9196628e11700d371 to your computer and use it in GitHub Desktop.
Save Makiah/1bd7973fa28755a9196628e11700d371 to your computer and use it in GitHub Desktop.
echo "* Running MAC Address Spoofer! *"
# Check current MAC address
ifconfig en1 | grep ether
# Tell airport to disassociate from the current network
sudo /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -z
# Spoof the MAC address
openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//' | xargs sudo ifconfig en1 ether
# Check current MAC address
ifconfig en1 | grep ether
# Output following steps.
echo "The two addresses listed above should be unique. If not, run this tool again."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment