Created
May 20, 2019 12:11
-
-
Save tomastrajan/2e809f585935ea54c4ed73e446697ec0 to your computer and use it in GitHub Desktop.
BASH CHANGE MAC by Minko
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
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" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment