I have since made an updated version that will work with WEP. You can find it here Connecting to WEP, and WPA/WPA2 networks for n00bs.
Feel free to delete this thread if you like as im unable to.
So for whatever reason i found it rather hard to learn how to connect to my WPA2 network. It was a long learning process but well worth it as i figured out how to make my first script in the process.
It should work for everyone altho as i said this is my very first so suggestions are welcome "thats why its in the n00b section"
All credit goes to ptrakk because without his modified script i wouldn't have known how to make this.
To run this stop any scanning, then save the code to a text file and name it connect.sh, place it on the desktop, open bash and do "cd Desktop" watch out for the D, then type "sh connect.sh" and follow the directions. When your all finished run dhclient wlan0 "or whatever your interface is" to set up dhcp.
Im using BT4 and the ALFA card incase your wondering.
Please comment if you try it.#start
rm conn.conf
killall NetworkManager
killall knetworkmanager
killall wpa_supplicant
killall dhclient
clear
echo "Enter the interface name (eth1, wlan0, rausb0, etc)"
read IFACE
clear
echo "it takes a little bit"
airmon-ng stop wlan0
airmon-ng stop mon0
clear
echo "dont worry its not frozen it just takes a moment"
echo "about 30 seconds so be patient"
echo "and dont hit enter"
ifconfig $IFACE up;
wait 20
echo "see i told you"
clear
echo "Enter the SSID!"
read SSID
clear
echo "Enter the Pass!"
read PASS
clear
wpa_passphrase $SSID $PASS > conn.conf
clear
iwconfig $IFACE essid $SSID
clear
wpa_supplicant -B -Dwext -i $IFACE -c conn.conf
clear
echo "Now just dhclient your interface or write iptabels"
#end
Thanks
Using backtrack for the first time is like being 10 years old again with the keys to a Ferrari.
I have since made an updated version that will work with WEP. You can find it here Connecting to WEP, and WPA/WPA2 networks for n00bs.
Feel free to delete this thread if you like as im unable to.
Using backtrack for the first time is like being 10 years old again with the keys to a Ferrari.
thanks for sharing the noobs will appreciate it, and that's good that your looking at other peoples work thats one of the best ways of learning how to write your own scripts good job