Tag Archives: Linux

Connecting to WPA-TKIP Network From Terminal | Linux

Hello guys!
I am a BackTrack user and currently it’s version 4 R2 (grab yours from here), so every time I try to launch the GUI Network Manager it fails. So here’s how to connect to your WPA/WPA2 TKIP secured WLAN.

  • First of all, you need a tool called “wpasupplicant”
  • Create a new file and place it in /etc
  • name it wpa_supplicant.conf

In the terminal or Kwrite edit the wpa_supplicant.conf configuration file. I will use the “nano” command in the terminal

sudo nano /etc/wpa_supplicant.conf

Add the following and change it accordingly

ap_scan=1
ctrl_interface=/var/run/wpa_supplicant
network={
ssid=”Your Network SSID Ex. Speedtouch in Quotes”
scan_ssid=0
proto=WPA
key_mgmt=WPA-PSK
psk=”Your ASCII PSK Password in Quotes”
pairwise=TKIP
group=TKIP
}

Then type the following code!

ifconfig [interface] down
dhclient -r [interface]
wpasupplicant -i [interface] -c /etc/wpa_supplicant.conf -dd

Then fire up another terminal and let the current one running.

ifconfig [interface] up
iwconfig [interface] mode Managed
dhclient [interface]

After that you will get your connection.
By the way [interface] must be replaced by your interface’s id, example, wlan0
Happy “Linuxing”

Advertisements