Bonjour,
J’essaye de me connecter en wifi en mode console. J’ai trouvé de nombreuses solution sur le net mais aucune n’a pu résoudre mon problème.
Le premier essai est de se connecter à un AP qui ne pose pas de problème (je peux le faire avec network-manager/wcid) et ensuite sur une Bbox qui pour l’instant refuse toute connexion.
J’utilise wlan1 qui est une carte awus036H branché en usb. Elle fonctionne parfaitement sur n’importe quel AP sauf ma bbox.
Pour l’instant le but est de se connecter en mode console au premier AP.
[code]root@localhost:~# iwconfig
wlan0 IEEE 802.11bgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=15 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
lo no wireless extensions.
eth0 no wireless extensions.
wlan1 IEEE 802.11bg ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off[/code]
Le contenu de /etc/network/interfaces : http://www.pastebin.com/Fwu31bM9
Le contenu de /etc/wpa_supplicant/wpa_supplicant.conf : http://www.pastebin.com/XPrd3VSD
Avec la méthode 1 et 2 :
[code]root@localhost:~# sudo /etc/init.d/networking restart
[warn] Running /etc/init.d/networking restart is deprecated because it may not re-enable some interfaces … (warning).
[…] Reconfiguring network interfaces…Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/wlan1/00:c0:ca:75:ce:e3
Sending on LPF/wlan1/00:c0:ca:75:ce:e3
Sending on Socket/fallback
DHCPRELEASE on wlan1 to 192.168.2.1 port 67
Reloading /etc/samba/smb.conf: smbd only.
wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/wlan1/00:c0:ca:00:00:00
Sending on LPF/wlan1/00:c0:ca:00:00:00
Sending on Socket/fallback
DHCPDISCOVER on wlan1 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on wlan1 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on wlan1 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on wlan1 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on wlan1 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on wlan1 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on wlan1 to 255.255.255.255 port 67 interval 7
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.[/code]
root@localhost:~# wpa_supplicant -Dwext -iwlan1 -c/etc/wpa_supplicant/wpa_supplicant.conf
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ctrl_iface exists and seems to be in use - cannot override it
Delete '/var/run/wpa_supplicant/wlan1' manually if it is not used anymore
Failed to initialize control interface '/var/run/wpa_supplicant'.
You may have another wpa_supplicant process already running or the file was
left by an unclean termination of wpa_supplicant in which case you will need
to manually remove this file before starting wpa_supplicant again.
Je suis sur kali 1.1.0 qui est une distribution basé sur debian et tout est à jour.

