Created
September 29, 2019 10:33
-
-
Save abdulnine7/68286e4c3676ee82783d8fb83d653211 to your computer and use it in GitHub Desktop.
MAC Address Changer Script
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/bash | |
echo | |
echo "========================================================" | |
echo "Script : MAC Address Changer Script" | |
echo | |
echo "Author : Abdul Noushad Sheikh" | |
echo | |
date | |
echo | |
echo "Note : To check device interface name try command => ifconfig" | |
echo "========================================================" | |
echo | |
printf "${White}Enter the network interface name: " | |
read net_interface | |
echo | |
sudo service network-manager stop | |
sudo ifconfig ${net_interface} down | |
sudo macchanger -r ${net_interface} | |
sudo ifconfig ${net_interface} up | |
sudo service network-manager start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment