[TLUG] Szyforwanie WEP w karcie WIFI

Grzegorz Dajuk tlug at linux.gda.pl
Sat, 28 Apr 2007 20:43:03 +0200


Dobra zrobilem kolejne podejście.

Błędy typu:
*Kod:*

Line 2: Invalid configuration line 
'ctrl_interface=/var/run/wpa_supplicant'.


pojawialy sie ponieważ używałem stara wersje wpa_supplicanta którą 
wrzucilem po wcześniejszej kompilacji gdzie nie było w .config opcji:
*Kod:*

CONFIG_CTRL_IFACE=y



no dobra, ale na tą chwile sytuacja wyglada juz niezle bo pinguje mi 
router, ale nie pinguje Internetu ;/

*Kod:*

[root@homelinux:~] #  /sbin/wpa_supplicant -B -D wext -i eth1 -c 
/etc/wpa_supplicant.conf -dd
Initializing interface 'eth1' conf '/etc/wpa_supplicant.conf' driver 
'wext' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/usr/local/bin/wpa_supplicant'
Line: 3 - start of a new network block
scan_ssid=1 (0x1)
proto: 0x2
key_mgmt: 0x2
ssid - hexdump_ascii(len=5):
     64 6c 69 6e 6b                                    dlink
PSK (ASCII passphrase) - hexdump_ascii(len=10): [REMOVED]
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Priority group 0
   id=0 ssid='dlink'
Initializing interface (2) 'eth1'
SIOCGIWRANGE: WE(compiled)=21 WE(source)=16 enc_capa=0xf
  capabilities: key_mgmt 0xf enc 0xf
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:18:de:65:30:ea
wpa_driver_wext_set_wpa
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_countermeasures
wpa_driver_wext_set_drop_unencrypted
Setting scan request: 0 sec 100000 usec
Added interface eth1
Daemonize..
[root@homelinux:~] #  cat /etc/wpa_supplicant.conf
ctrl_interface=/usr/local/bin/wpa_supplicant

network={
        scan_ssid=1
        proto=WPA2
        key_mgmt=WPA-PSK
        ssid="dlink"
        psk="as7sbSsf32"
}
[root@homelinux:~] #
[root@homelinux:~] #  iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      IEEE 802.11g  ESSID:"dlink"  Nickname:"homelinux"
          Mode:Managed  Frequency:2.472 GHz  Access Point: 
00:19:5B:07:37:E9
          Bit Rate:54 Mb/s   Tx-Power:15 dBm
          Retry limit:15   RTS thr:off   Fragment thr:off
          Encryption key:7011-BCD3-A993-AF46-72B3-F4A7-8AC9-AED6  
 Security mode:open
          Power Management:off
          Link Quality=92/100  Signal level=-38 dBm  Noise level=-39 dBm
          Rx invalid nwid:0  Rx invalid crypt:172  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:2   Missed beacon:0

[root@homelinux:/usr/local/src/wifi/ipw3945-1.2.0] #  ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0F:B0:CB:82:98
          inet addr:192.168.0.2  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:133486 errors:0 dropped:0 overruns:0 frame:0
          TX packets:99976 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:113049315 (107.8 MiB)  TX bytes:11323466 (10.7 MiB)
          Interrupt:18 Base address:0xe000

eth1      Link encap:Ethernet  HWaddr 00:18:DE:65:30:EA
          inet addr:192.168.0.40  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:95 errors:93 dropped:93 overruns:0 frame:0
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:31434 (30.6 KiB)  TX bytes:339 (339.0 b)
          Interrupt:17 Base address:0x6000 Memory:b3000000-b3000fff

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:200 (200.0 b)  TX bytes:200 (200.0 b)

[root@homelinux:/usr/local/src/wifi/ipw3945-1.2.0] #  ifconfig eth0 down
[root@homelinux:/usr/local/src/wifi/ipw3945-1.2.0] #     
[root@homelinux:/usr/local/src/wifi/ipw3945-1.2.0] #  ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
64 bytes from 192.168.0.1: icmp_seq=1 ttl=127 time=1.18 ms
64 bytes from 192.168.0.1: icmp_seq=2 ttl=127 time=2.00 ms

--- 192.168.0.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 1.183/1.594/2.006/0.413 ms
[root@homelinux:/usr/local/src/wifi/ipw3945-1.2.0] #  ping wp.pl
connect: Network is unreachable                                          
                                                                        
                                       
root@homelinux:/usr/local/src/wifi/ipw3945-1.2.0] #  ping 212.77.100.101
connect: Network is unreachable
[root@homelinux:/usr/local/src/wifi/ipw3945-1.2.0] #                    
                                                                        
                                         
[root@homelinux:/] #  cat /etc/rc.d/rc.inet1.conf|grep -v "#"




IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]=""

IPADDR[1]="192.168.0.40"
NETMASK[1]="255.255.255.0"
USE_DHCP[1]="no"
DHCP_HOSTNAME[1]=""

IPADDR[2]=""
NETMASK[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""

IPADDR[3]=""
NETMASK[3]=""
USE_DHCP[3]=""
DHCP_HOSTNAME[3]=""

GATEWAY="192.168.0.1"

DEBUG_ETH_UP="no"

[root@homelinux:/] #



Any sugesstions ?

-- 
Pozdrawiam
Grzegorz Dajuk