Login Register






Macchanger script filter_list
Author
Message
Macchanger script #1
Code:
#!/bin/bash echo echo " _______ _______ _______ _______ _______ _ _______ _______ _______ " echo "( )( ___ )( ____ \( ____ \|\ /|( ___ )( ( /|( ____ \( ____ \( ____ )" echo "| () () || ( ) || ( \/| ( \/| ) ( || ( ) || \ ( || ( \/| ( \/| ( )|" echo "| || || || (___) || | | | | (___) || (___) || \ | || | | (__ | (____)|" echo "| |(_)| || ___ || | | | | ___ || ___ || (\ \) || | ____ | __) | __)" echo "| | | || ( ) || | | | | ( ) || ( ) || | \ || | \_ )| ( | (\ ( " echo "| ) ( || ) ( || (____/\| (____/\| ) ( || ) ( || ) \ || (___) || (____/\| ) \ \__" echo "|/ \||/ \|(_______/(_______/|/ \||/ \||/ )_)(_______)(_______/|/ \__/" echo echo "By 9H4C7K3R2 - v1.2" echo "@ Script to automatize macchanging with the macchanger tool" echo "@ Possibility too choose a mac address or randomly generate one" function menu(){ echo echo "MENU" echo "1. Change MAC address" echo "2. Restore default MAC address" echo "3. Restart Network-Manager" echo "4. Restart Network card" echo "5. Exit" } function changemac(){ echo -n "[+] Interface: " read interface echo "[+] Informations about the interface" echo macchanger -s $interface echo echo "How to change the MAC address ?:" echo "1. Random Generation" echo "2. Choose a Specific MAC address" echo -n "Choice: " read choixmenu if [ $choixmenu == "1" ] then echo echo "[+] Interface $interface down" ifconfig $interface down echo "[+] Changing MAC address" macchanger -r $interface > /dev/null 2>&1 echo "[+] Interface $interface up" ifconfig $interface up echo "[+] Informations about the interface" echo macchanger -s $interface fi if [ $choixmenu == "2" ] then echo echo -n "Type the address MAC you want (ex: e4:26:4a:1c:a4:b8): " read newmac echo "[+] Interface $interface down" ifconfig $interface down echo "[+] Changing MAC address" macchanger -m $newmac $interface > /dev/null 2>&1 echo "[+] Interface $interface up" ifconfig $interface up echo "[+] Informations about the interface" echo macchanger -s $interface fi } function restoremac(){ echo echo -n "[+] Interface: " read interface echo "[+] Informations about the interface" echo macchanger -s $interface echo echo "[+] Interface $interface down" ifconfig $interface down echo "[+] Restoring default MAC address" macchanger -p $interface > /dev/null 2>&1 echo "[+] Interface $interface up" ifconfig $interface up echo "[+] Informations about the interface" echo macchanger -s $interface } function restartnm(){ /etc/init.d/network-manager stop /etc/init.d/network-manager start } function restartntwk(){ /etc/init.d/networking stop /etc/init.d/networking start } function quitter(){ exit } selectionmenu=0; while [ $selectionmenu -ne 5 ] do menu read -p "Choose a menu: " selectionmenu case $selectionmenu in 1) changemac;; 2) restoremac;; 3) restartnm;; 4) restartntwk;; 5) quitter;; esac done

Reply





Messages In This Thread
Macchanger script - by hunt3r972 - 02-25-2014, 01:23 PM