[bash]MAC Changer 07-31-2011, 09:39 AM
#1
hi guys well i don't know if its the right section to post even tough im a mod 
bash is like batch except for linux.
for making bash files create a empty file and rename it like this:
Name.sh
.sh is like .bat except for linux and Name is the filename you want.
ok open it up with kate or nano. now what we are going to do is ask the user if he wants the interface setup'ed into monitor mode and the MAC's changed or just change a custom interface MAC.
and now open it. if it can't be opened right click on the file and tick the option to run it as a executable file then open it and click "Run in terminal".

bash is like batch except for linux.
for making bash files create a empty file and rename it like this:
Name.sh
.sh is like .bat except for linux and Name is the filename you want.
ok open it up with kate or nano. now what we are going to do is ask the user if he wants the interface setup'ed into monitor mode and the MAC's changed or just change a custom interface MAC.
Code:
echo "Do you want to put your wireless interface into monitor mode and change its mac? (yes/no/cancel)
read INPUT
if [ $INPUT = "yes"]; then
ifconfig wlan0 down
macchanger -r wlan0
ifconfig wlan0 up
airmon-ng start wlan0
ifconfig mon0 down
macchanger -r mon0
ifconfig mon0 up
fi
if [ $INPUT = "no"]; then
echo "Please enter device interface: "
read INTERFACE
ifconfig $INTERFACE down
macchanger -r $INTERFACE
ifconfig $INTERFACE up
fi
if [ $INPUT = "cancel"]; then
exit
fi
echo -e "\n\n\n\nDone! Press (Ctrl+C) anytime to exit this program."and now open it. if it can't be opened right click on the file and tick the option to run it as a executable file then open it and click "Run in terminal".
Pierce the life fibers with your drill.




![[+]](https://sinister.li/images/modern/collapse_collapsed.png)