Created
December 13, 2018 12:19
-
-
Save matthiassturm/eb3889696819e78a6d4097be2d49e567 to your computer and use it in GitHub Desktop.
Reassign MAC Dddress (MacOS)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
function remac { | |
sudo /System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -z | |
sudo ifconfig en0 ether $(openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//') | |
sudo networksetup -detectnewhardware | |
echo $(ifconfig en0 | grep ether) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment