[TLUG] Szyforwanie WEP w karcie WIFI

Grzegorz Dajuk tlug at linux.gda.pl
Mon, 16 Apr 2007 19:15:25 +0200


Robert Jaroszuk wrote:
> Grzegorz Dajuk wrote:
>   
>> Robert Jaroszuk wrote:
>>     
>>> Grzegorz Dajuk wrote:
>>>  
>>>       
>>>> Jakub Kulczynski wrote:
>>>>    
>>>>         
>>>>> On 2007-04-14, at 15:34, Piotr Stolc wrote:
>>>>>      
>>>>>           
>>>>>> generalnie chodzi o to:
>>>>>> http://hostap.epitest.fi/wpa_supplicant/
>>>>>>         
>>>>>>             
>>>> BTWL Ten supplicat nie wspiera mojej karty Intel 3945 ;/
>>>>
>>>>     
>>>>         
>>> Eee?
>>>
>>> Co?
>>>
>>> Ja właśnie z tego teraz klikam:
>>> 03:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG
>>> Network Connection (rev 02)
>>>
>>> I jak najbardziej działa z wpa_supplicantem.
>>>
>>> /sbin/iwconfig eth1 essid "moje_essid"
>>> /sbin/iwconfig eth1 channel 11
>>> /sbin/wpa_supplicant -B -Dwext -ieth1 -c/etc/wpasupplicant.conf
>>>
>>> [11:51](root@shahid init.d)# cat /etc/wpasupplicant.conf
>>> network={
>>>   scan_ssid=1
>>>   proto=WPA
>>>   key_mgmt=WPA-PSK
>>>   ssid="moje_ssid"
>>>   #psk="haselko"
>>>   psk=zakodowane_haselko
>>> }
>>> [11:51](root@shahid init.d)#
>>>
>>>
>>>   
>>>       
>> Właśnie mam coś problem z kompilacja tego wpa_suspplica=
nt'a;
>> mógłbyś zapodać swój ".config" od źró=
deł ?
>> Oraz dać swoje lspci :)
>>
>> Z góry thx.
>>
>>
>>     
>
> 08:54](root@shahid ~)# lspci
> 00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and
> 945GT Express Memory Controller Hub (rev 03)
> 00:01.0 PCI bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and
> 945GT Express PCI Express Root Port (rev 03)
> 00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High
> Definition Audio Controller (rev 02)
> 00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express
> Port 1 (rev 02)
> 00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express
> Port 2 (rev 02)
> 00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express
> Port 3 (rev 02)
> 00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express
> Port 4 (rev 02)
> 00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI
> #1 (rev 02)
> 00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI
> #2 (rev 02)
> 00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI
> #3 (rev 02)
> 00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI
> #4 (rev 02)
> 00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHC=
I
> Controller (rev 02)
> 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
> 00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface
> Bridge (rev 02)
> 00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE
> Controller (rev 02)
> 00:1f.2 SATA controller: Intel Corporation 82801GBM/GHM (ICH7 Family)
> Serial ATA Storage Controller AHCI (rev 02)
> 00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller
> (rev 02)
> 01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility
> X1400
> 02:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5751M
> Gigabit Ethernet PCI Express (rev 21)
> 03:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG
> Network Connection (rev 02)
> 15:00.0 CardBus bridge: Texas Instruments PCIxx12 Cardbus Controller
> 15:00.1 FireWire (IEEE 1394): Texas Instruments PCIxx12 OHCI Compliant
> IEEE 1394 Host Controller
> [08:54](root@shahid ~)#
>
> a wpa_supplicanta mam z .deb, bo nie chcialo mi sie ze zrodel robic :)
>
> ii  wpasupplicant                     
> 0.5.5-4                             Client support for WPA and WPA2
> (IEEE 802.11
>   
No dobra jakoś to przekompilowałem, ale wywala błąd, na configu:

[root@homelinux:~] #  wpa_supplicant -B -i eth1 -c 
/etc/wpa_supplicant.conf -D ipw -dd
Initializing interface 'eth1' conf '/etc/wpa_supplicant.conf' driver 
'ipw' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
update_config=1
Line 2: Invalid configuration line 'ctrl_interface=/var/run/wpa_supplicant'.
Line 3: Invalid configuration line 'ctrl_interface_group=0'.
eapol_version=1
ap_scan=1
fast_reauth=1
Line: 8 - start of a new network block
ssid - hexdump_ascii(len=5):
     64 6c 69 6e 6b                                    dlink
scan_ssid=1 (0x1)
key_mgmt: 0x1
proto: 0x2
PSK (ASCII passphrase) - hexdump_ascii(len=10): [REMOVED]
priority=3 (0x3)
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Priority group 3
   id=0 ssid='dlink'
Failed to read or parse configuration '/etc/wpa_supplicant.conf'.
Failed to add interface eth1
Cancelling scan request
Cancelling authentication 
timeout                                                                                                                                                        


 a config:

[root@homelinux:~] #  cat /etc/wpa_supplicant.conf
update_config=1
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=1

network={
ssid="dlink"
scan_ssid=1
key_mgmt=WPA-EAP
proto=WPA2
psk="tu_moj klucz wpa2"
priority=3
}

No ale troszke bez sensu jak wywala zmienna konfiguracjna ktora jest w 
manualu :>
No ale dobra, wywalilem te 2 wpisy to wywala cos takiego:
Initializing interface 'eth1' conf '/etc/wpa_supplicant.conf' driver 
'ipw' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
update_config=1
eapol_version=1
ap_scan=1
fast_reauth=1
Line: 8 - start of a new network block
ssid - hexdump_ascii(len=5):
     64 6c 69 6e 6b                                    dlink
scan_ssid=1 (0x1)
key_mgmt: 0x1
proto: 0x2
PSK (ASCII passphrase) - hexdump_ascii(len=10): [REMOVED]
priority=3 (0x3)
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Priority group 3
   id=0 ssid='dlink'
Initializing interface (2) 'eth1'
wpa_driver_ipw_init is called
SIOCGIWRANGE: WE(compiled)=21 WE(source)=16 enc_capa=0xf
  capabilities: key_mgmt 0xf enc 0xf
WEXT: Operstate: linkmode=1, operstate=5
Linux wireless extensions version 21 detected.
ipw2x00 driver uses driver_wext (-Dwext) instead of driver_ipw.
Own MAC address: 00:18:de:65:30:ea
wpa_driver_ipw_set_wpa: enabled=1
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
wpa_driver_ipw_set_key: alg=none key_idx=0 set_tx=0 seq_len=0 key_len=0
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
Failed to set encryption.
wpa_driver_ipw_set_key: alg=none key_idx=1 set_tx=0 seq_len=0 key_len=0
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
Failed to set encryption.
wpa_driver_ipw_set_key: alg=none key_idx=2 set_tx=0 seq_len=0 key_len=0
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
Failed to set encryption.
wpa_driver_ipw_set_key: alg=none key_idx=3 set_tx=0 seq_len=0 key_len=0
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
Failed to set encryption.
wpa_driver_ipw_set_countermeasures: enabled=0
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
wpa_driver_ipw_set_drop_unencrypted: enabled=1
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
Setting scan request: 0 sec 100000 usec
Added interface eth1
Daemonize..


-- 
Pozdrawiam
Grzegorz Dajuk