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

About abedazaben

Abed Ahmad Al-Zaben, interseted in computer programming and ethical hacking,undergraduate (Telecommuncation Engineering) View all posts by abedazaben

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: