Kali linux wpa_supplicant cli config

Kali linux wpa_supplicant cli config.

To setup a wifi connection using wpa_supplicant on the cli in kali, first you have to bring up your network interface

ifconfig wlan0 up

Next, we create a config file

wpa_passphrase 'router_ssid' 'wifi_password' > /etc/wpa_supplicant.conf

We need to edit the config file and remove some things

vim /etc/wpa_supplicant.conf

Change the config file so that it contains:

network={
    ssid="router_ssid"
    #psk="wifi_password"
    psk=long_hex_string_goes_here
}

Finally, we can auth with our router and obtain an ip address to access the network

sudo wpa_supplicant -B -iwlan0 -c/etc/wpa_supplicant.conf -Dwext
sudo dhclient wlan0

This Post Has 3 Comments

  1. Rupert

    I don’t fully understand this. Can you please elaborate on what this is doing to my Windows XP Computer?
    Should I be using Windows XP for this? I’ve already tried on Windows 7, and it doesn’t work as well.
    Some help would be greatly appreciated!

    Great tutorial though!

    1. jonathan

      sure, run your python 2.7 scripts from your xp oem install. pretty sure you got here from a google for ‘kali wpa supplicant’ or similar, so you arent on xp or 7.

Leave a Reply