|
Shell Scripts and Networking to Automate macchanger
My school uses MAC filtering, which can become a real pain quite often -- like, for instance, when I switch out wireless cards. I used to have to go into admin controls, network controls, deactivate the card, then run macchanger and reactivate the card. I figured I would share this shell script, as it took me the better part of a day and a half to figure out (JUST found the ifdown command! Before I was editing config files a such) It's relatively simple, and I've seen questions related to this before.
clear
ifdown ath0
macchanger -m xx:xx:xx:xx:xx:xx ath0
ifup ath0
clear
echo "Done. MAC Address Changed."
Last edited by fultron; 02-15-2007 at 03:11 PM.
|