Created
November 1, 2019 11:25
-
-
Save Alex4386/2e60c4f26de27d7351ab68a81252f53c to your computer and use it in GitHub Desktop.
The MAC Address Changer
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
#!/bin/bash | |
echo "The Mac Changer" | |
echo | |
echo "Copyright (c) Alex4386, Distributed under HRPL" | |
read -p "Type Interface you want to change: " interface | |
read -p "Type Mac Address you want to change: " mac | |
echo | |
echo Backing up your previous mac | |
ifconfig $interface | grep ether > mac_bak.txt | |
echo Backup is now available at mac_bak.txt | |
echo | |
sudo ifconfig $interface ether $mac | |
sudo ifconfig $interface down | |
sudo ifconfig $interface up | |
echo Done! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment