Skip to content

Instantly share code, notes, and snippets.

@abdulnine7
Created September 29, 2019 10:33
Show Gist options
  • Save abdulnine7/68286e4c3676ee82783d8fb83d653211 to your computer and use it in GitHub Desktop.
Save abdulnine7/68286e4c3676ee82783d8fb83d653211 to your computer and use it in GitHub Desktop.
MAC Address Changer Script
#!/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