Created
July 11, 2018 06:25
-
-
Save njoerd114/c30c38c1aa2834c5360ad684d6791f54 to your computer and use it in GitHub Desktop.
change mac address of given interface on mac
This file contains hidden or 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
changemac() { | |
if [ -z "$1" ]; then echo "please provide network interface"; else sudo ifconfig $1 ether $(openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//') &&ifconfig $1; fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment