Auto-changing MAC address on reboot to a random one.
List of files:
setup.sh
- script for automating the processmacchanger.sh
- changing MAC address scriptlocal.macchanger.plist
- XML configuration for launchd
What is launchd? - a unified, open-source service management framework for starting, stopping and managing daemons, applications, processes, and scripts. More info on launchd.info
chmod +x setup.sh
sudo ./setup.sh
sudo rm /usr/local/bin/macchanger.sh
sudo rm /Library/LaunchDaemons/local.macchanger.plist
The easiest way to change your mac after installing the script in a manual way is creating alias, so:
echo "alias changemac='sudo /usr/local/bin/macchanger.sh'" >> ~/.zshrc
source ~/.zshrc
Change ~/.zshrc
to ~/.bashrc
if you use bash.
Thus you can you changemac
command to run the script.
echo "alias showmac='ifconfig en0 | awk '/ether/{print $2}' | xargs'" >> ~/.zshrc
source ~/.zshrc
Change ~/.zshrc
to ~/.bashrc
if you use bash.
showmac
command shows current MAC address.
Open mind, open heart, open source.