EAP-SIM with no SIM Card

Ronaldo Afonso ronaldo.afonso at vexcorp.com
Thu Nov 3 09:58:02 EDT 2011


 Hi all,

 Is it possible to configure wpa_supplicant for EAP-SIM authentication with
no SIM Card?

 I just want to simulate a EAP-SIM client authentication.

 I'm using a configuration file like that:

# EAP-SIM with a GSM SIM or USIM
network={
   ssid="vexatt-eap"
   key_mgmt=WPA-EAP
   eap=SIM
   pin="1234"
   pcsc=""
}

  but it seems wpa_supplicant is trying to get some information from a SIM
Card.

  Thats what I got from an execution of wpa_supplicant:

rafonso at rafonso-laptop:~/Vex/projetos/EAP-SIM/wpa_supplicant$ sudo
wpa_supplicant -c ./eap-sim.conf -iwlan1 -ddd
[sudo] password for rafonso:
Initializing interface 'wlan1' conf './eap-sim.conf' driver 'default'
ctrl_interface 'N/A' bridge 'N/A'
Configuration file './eap-sim.conf' ->
'/home/rafonso/Vex/projetos/EAP-SIM/wpa_supplicant/./eap-sim.conf'
Reading configuration file
'/home/rafonso/Vex/projetos/EAP-SIM/wpa_supplicant/./eap-sim.conf'
Line: 4 - start of a new network block
ssid - hexdump_ascii(len=10):
     76 65 78 61 74 74 2d 65 61 70                     vexatt-eap
key_mgmt: 0x1
eap methods - hexdump(len=16): 00 00 00 00 12 00 00 00 00 00 00 00 00 00 00
00
pin - hexdump_ascii(len=4): [REMOVED]
pcsc - hexdump_ascii(len=0):
Priority group 0
   id=0 ssid='vexatt-eap'
Interface wlan1 set UP - waiting a second for the driver to complete
initialization
SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf
  capabilities: key_mgmt 0xf enc 0xf flags 0x0
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:24:2b:c7:3d:02
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
RSN: flushing PMKID list in the driver
Setting scan request: 0 sec 100000 usec
WPS: UUID based on MAC address - hexdump(len=16): 36 ec 23 06 94 3c 50 5e
91 ca 08 ef fa 44 f6 e2
WPS: Build Beacon and Probe Response IEs
WPS:  * Version
WPS:  * Wi-Fi Protected Setup State (0)
WPS:  * Version
WPS:  * Wi-Fi Protected Setup State (0)
WPS:  * Response Type (2)
WPS:  * UUID-E
WPS:  * Manufacturer
WPS:  * Model Name
WPS:  * Model Number
WPS:  * Serial Number
WPS:  * Primary Device Type
WPS:  * Device Name
WPS:  * Config Methods (0)
WPS:  * RF Bands (3)
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
Added interface wlan1
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan1' added
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan1' added
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan1' added
Wireless event: cmd=0x8b19 len=8
Received 1520 bytes of scan results (4 BSSes)
New scan results available
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 00:14:1c:bc:7b:e1 ssid='vexatt-eap' wpa_ie_len=24 rsn_ie_len=20 caps=0x11
   selected based on RSN IE
   selected WPA AP 00:14:1c:bc:7b:e1 ssid='vexatt-eap'
Selected network is configured to use SIM (sim=1 aka=0) - initialize PCSC
SCARD: initializing smart card interface
SCARD: Could not establish smart card context (err=-2146435043)
SCARD: deinitializing smart card interface
Failed to initialize SIM (pcsc-lite)
Setting scan request: 10 sec 0 usec
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan1' added
Wireless event: cmd=0x8b06 len=8
EAPOL: disable timer tick
^CCTRL-EVENT-TERMINATING - signal 2 received
Removing interface wlan1
State: DISCONNECTED -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
No keys have been configured - skip key clearing
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
wpa_driver_wext_set_wpa
wpa_driver_wext_set_drop_unencrypted
wpa_driver_wext_set_countermeasures
No keys have been configured - skip key clearing
Cancelling scan request
Cancelling authentication timeout
WEXT: Operstate: linkmode=0, operstate=6


  Any help would be great.

 Thank you.

-- 
Ronaldo Afonso
www.vexcorp.com
+55 11 4932-5971
ronaldo.afonso at vexcorp.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.shmoo.com/pipermail/hostap/attachments/20111103/012d4b2e/attachment-0001.htm 


More information about the HostAP mailing list