View Full Version : wpa_supplicant
netpumber
05-22-2007, 04:39 PM
Hi i have extract the wpa_supplicant in root directory of back|track and the tutorial tha i have read says tha its need to configure a .config file but i cnat find it .plz any1 knows tell me which file(the full name) to to configure and how .Thnx again
alacityathome
05-22-2007, 05:17 PM
Netpumber,
Hi. You actually have to create or make the wpa_supplicant.conf thru the nano/edit process.
As an example, go to:
http://ubuntuforums.org/showthread.php?t=263136
which explains the process pretty well.
Once it is working for you, you can use a script (xxx.sh) to turn the wpa_supplicant on when you need it.
Sorry we hijacked your other thread. Let us know if you need any more help.
Good luck,
Alacrity
:
netpumber
05-22-2007, 05:56 PM
when i write sudo gedit /etc/wpa_supplicant.conf its says command not found
netpumber
05-22-2007, 06:11 PM
Now WHAT???????
alacityathome
05-22-2007, 06:14 PM
Netpumber,
Yes, the commands in ubuntu are slightly different.
Use: nano /etc/wpa_supplicant.conf
That will create an empty wpa_supplicant.conf from which you will add commands. By the way, for me, I only needed the "network={......" portion ... not the initial "ctrl_ ......."portion of the ubuntu conf edit.
The Ubuntu thread shows the process....but you will have to adapt it to the BT2 commands
You really have to play with this stuff.....the wpa_supplicant.conf and the wpa_supplicant command until the whole thing clicks into place. That's one reason I got a little excited on your other thread....I thought there was a new wpa GUI included in a recent wlanassistant.
There are other sources of information as well. The www.thinkwiki.org/wiki/Wpa_supplicant has a good configuration section you might read.
But, that is half the fun of learning!
Good luck & don't forget to have fun.
Alacrity
netpumber
05-22-2007, 07:41 PM
Oh man there isnt any wireless assistant with GUI for wpa.Some mercy plz!!!!!!:( :(
alacityathome
05-22-2007, 08:12 PM
LOL!
From what I have seen from my noobish standpoint is that each year and even each month all the Linux Distributions progress in terms of their ease of use and GUI capabilities. So, my guess is that within 6-12 months there might be something for us noobs for the wpa.
And, with the modular approach to BT2, it is easy to add modular improvements as they occur. For example, when aircrack-ptw or aircrack-ng-0.9 came out, it was easy without having to have a BT3 to add the new module.
But, in the meantime, you and I get to learn thru trial and error, much forum reading, wiki reviews, and so on......LINUX!
Thankfully, we do have forums like this one with great help from the experts.
Alacrity
netpumber
05-22-2007, 08:15 PM
i have read this (thinkwiki.org/wiki/Wpa_supplicant) and i configure it .(ihope corectlly)and when i'm going to run it with the command wpa_supplicant -d -c/etc/wpa_supplicant.conf -iath0 -Dmadwifi writing it in a shell it gets an error
(Failed to add inderface ath0
Cancelling scan request
Cancelling authentication timeout) Now What.SOME MErcy PLZZZZZZZZZZ
alacityathome
05-22-2007, 08:18 PM
you are getting close.
What is your interface?
Type iwconfig and confirm.
Assuming you are using Atheros, try this:
wpa_supplicant -Dwext -iath0 -c /etc/wpa_supplicant.conf
netpumber
05-22-2007, 08:25 PM
Yes i use atheros .i m goingto trry it!!!;)
netpumber
05-22-2007, 08:37 PM
I write it and it says that (Failed to read or parse configuration '/etc/wpa_supplicant.conf) mabe i have not configure right the .conf file or because i have madwifi drivers.I don't know !!!!!
netpumber
05-22-2007, 08:44 PM
I write it and it says that (Failed to read or parse configuration '/etc/wpa_supplicant.conf) mabe i have not configure right the .conf file or because i have madwifi drivers.I don't know !!!!!
alacityathome
05-22-2007, 09:02 PM
Ok. Getting closer.
Now keep the command constant and play with the configuration.
shamanvirtuel
05-22-2007, 09:06 PM
there is already a gui for wpa ..... just update wireless assistant to version 0.5.7, 0.5.5 version is already installed, but don't work with wpa
alacityathome
05-22-2007, 09:30 PM
shaman,
Just to try and clarify...
...can you do wpa with the new wlanassistant?
...with GUI built into it?
...or are you saying the new wlanassistant does everything but wpa?
...if it does handle wpa, can you give an exact web site address to download the new wlanassitant?
Sorry ...... our translation capability is limited! AND...we are definitely noobs.
Alacrity
netpumber
05-22-2007, 09:36 PM
Yes yes shamanvirtuel do it for us plz.I play with the .conf file but nothing......So we need the wireless assistant or an other sollution.Thanx AGAIN!!!!
alacrityathome
05-22-2007, 09:58 PM
Ok.
I will take a look at both the command and the configuration file and post it for you. A missing space in this stuff is enough to throw everything off.
I think Shaman is pulling our chain!
If there are any other experts lurking on the forum.....can you tell the two noobs on this thread if there exists a new wlanassistant that has a GUI wpa included in it......and where to download the file?
Let me go get the exact wording on the other stuff.
Keep trying while I check this.
Alacrity
alacrityathome
05-22-2007, 10:05 PM
Ok.
I know this configuration file works with BT2 and atheros....I am using it right now under WPA.
Remember to keep the quotes on the ssid.
Substitute your ssid name in the quotes.
Subsitute your psk in the code below. Do not use the phrase...but translate it to HEX.
Have fun.................
ctrl_interface=/var/run/wpa_supplicant
#ap_scan=2
network={
ssid="INSERT YOUR AP NAME HERE"
scan_ssid=1
proto=WPA RSN
key_mgmt=WPA-PSK
pairwise=TKIP CCMP
group=TKIP CCMP
psk=df551c97bb2958e691134a73a2020210b7baa871824a2d d914979065a9e8c588
}
alacityathome
05-22-2007, 10:16 PM
And, use this exact command to trigger the wpa....
wpa_supplicant -Dwext -iath0 -c /etc/wpa_supplicant
Don't forget to put the space between the -c and /etc.
Now you have everything.
Thank me later.
Alacrity
netpumber
05-23-2007, 08:52 AM
I do it and its says Failed to read or parse configuration '/etc/wpa_supplicant'. i need the assistaaaaaaaaaaaaaaaant!!!!!
hobbes
05-24-2007, 02:13 AM
Please, please tell me that you ran wpa_passphrase "ESSID" "PASSPHRASE" > /etc/wpa_supplicant.conf first.
andlog6
05-24-2007, 08:48 AM
check this out
forums.remote-exploit.org/showthread.php?t=6498
it talks about your problem, although it would be helpful if you update your madwifi drivers after that, so you won't only connect, but could also get out :D
netpumber
05-28-2007, 01:12 PM
Eh guys Thanxxxxx all of you finaly i make it work.Nice Work in this for:D :D :D :D um
beetle
06-03-2007, 03:45 PM
Hi i have extract the wpa_supplicant in root directory of back|track and the tutorial tha i have read says tha its need to configure a .config file but i cnat find it .plz any1 knows tell me which file(the full name) to to configure and how .Thnx again
In Backtrack 2, just a few commands will get your Atheros-based card up and running on a WPA-PSK or WPA2-PSK protected network.
wpa_passphrase wifightclub “passphrase 123” > /etc/wpa_supplicant.conf
chmod 640 /etc/wpa_supplicant.conf
wpa_supplicant -w -Dwext -iath0 -c/etc/wpa_supplicant.conf
That assumes you've already got ath0 configured in sta mode, scanning, and up with:
wlanconfig ath0 create wlandev wifi0 wlanmode sta
modprobe wlan_scan_sta
ifconfig ath0 up
With the wpa_supplicant command above, you can watch as wpa_supplicant looks for, finds, and authenticates to the WPA2-PSK protected network. You'll see that you get a GTK and PTK--keys to use for you and for talking to the broadcast. Yay.
You'll still have to dhcpcd ath0 to get an IP, or assign it yourself with ifconfig and manual configuration of your default route and DNS stuff.
Once you know that works, you can add the -B option to the wpa_supplicant command above to "just work" in the background.
Hope this info helps. Take care.
Sincerely,
Beetle
G-Stress
06-18-2007, 02:26 AM
Anybody get wpa_supplicant working with "broadcom" cards?
Paton
06-18-2007, 03:09 AM
Yup. 4306 running just fine. Used the methods on the 3 threads here.
G-Stress
06-18-2007, 04:00 AM
hmmm... so I think what my problem may be is when executing
wpa_supplicant -Dwext -ieth1 -c /etc/wpa_supplicant.conf
-Dwext I believe I read that was just a generic driver but I think that might be a problem with the broadcom cards is that what you used Paton?
G-Stress
06-24-2007, 04:42 AM
Yup. 4306 running just fine. Used the methods on the 3 threads here.
So did you use:
wpa_supplicant -Dbcm4306 -ieth1 -c /etc/wpa_supplicant.conf
I tried and am still getting unsupported driver?
jpb2433
07-17-2007, 07:08 AM
In Backtrack 2, just a few commands will get your Atheros-based card up and running on a WPA-PSK or WPA2-PSK protected network.
wpa_passphrase wifightclub “passphrase 123” > /etc/wpa_supplicant.conf
chmod 640 /etc/wpa_supplicant.conf
wpa_supplicant -w -Dwext -iath0 -c/etc/wpa_supplicant.conf
That assumes you've already got ath0 configured in sta mode, scanning, and up with:
wlanconfig ath0 create wlandev wifi0 wlanmode sta
modprobe wlan_scan_sta
ifconfig ath0 up
With the wpa_supplicant command above, you can watch as wpa_supplicant looks for, finds, and authenticates to the WPA2-PSK protected network. You'll see that you get a GTK and PTK--keys to use for you and for talking to the broadcast. Yay.
You'll still have to dhcpcd ath0 to get an IP, or assign it yourself with ifconfig and manual configuration of your default route and DNS stuff.
Once you know that works, you can add the -B option to the wpa_supplicant command above to "just work" in the background.
Hope this info helps. Take care.
Sincerely,
Beetle
Thanks Beetle!
Paton
07-17-2007, 10:30 PM
If it's still good info, my BC4306 I use -dwext driver.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.