some questions about the EAP-SIM

why why1988seu
Sat Oct 8 21:06:10 PDT 2011


Hi, all. I want to test the EAP-SIM with hostapd and wpa_supplicant, but i failed. Can someone tell me how should i correct it? Thank you very much!


1.hostapd.sim_db:460021505910060:8FFD3E3F7DD1B000:778a7e3d:FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

2.hostapd_sim.conf:
interface=wlan0
bridge=br0
driver=nl80211
ssid=eap-sim
hw_mode=g
channel=6
wpa_key_mgmt=WPA-EAP
wpa=1
ieee8021x=1
eapol_version=2
eap_server=1
eap_user_file=./hostapd.eap_user
eap_sim_db=unix:/tmp/hlr_auc_gw.sock
radius_server_clients=./hostapd.radius_clients
radius_server_auth_port=1812

3.wpa_wupplicant_sim.conf:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=root
ap_scan=1
eapol_version=2

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

4.hostapd.radius_clients:
0.0.0.0/0 radius

5.hostapd.eap_user:
*    SIM
"0"*   SIM   [2]
"1"*   SIM   [2]
"2"*   SIM   [2]
"4"*   SIM   [2]

6.hostapd result:
authentication: STA=40:16:9f:16:56:44 auth_alg=0 auth_transaction=1 status_code=0 wep=0
  New STA
wlan0: STA 40:16:9f:16:56:44 IEEE 802.11: authentication OK (open system)
wlan0: STA 40:16:9f:16:56:44 MLME: MLME-AUTHENTICATE.indication(40:16:9f:16:56:44, OPEN_SYSTEM)
wlan0: STA 40:16:9f:16:56:44 MLME: MLME-DELETEKEYS.request(40:16:9f:16:56:44)
authentication reply: STA=40:16:9f:16:56:44 auth_alg=0 auth_transaction=2 resp=0 (IE len=0)
mgmt::auth cb
wlan0: STA 40:16:9f:16:56:44 IEEE 802.11: authenticated
mgmt::reassoc_req
reassociation request: STA=40:16:9f:16:56:44 capab_info=0x431 listen_interval=10 current_ap=00:14:78:71:42:67
  new AID 1
wlan0: STA 40:16:9f:16:56:44 IEEE 802.11: association OK (aid 1)
mgmt::reassoc_resp cb
wlan0: STA 40:16:9f:16:56:44 IEEE 802.11: associated (aid 1)
wlan0: STA 40:16:9f:16:56:44 MLME: MLME-REASSOCIATE.indication(40:16:9f:16:56:44)
wlan0: STA 40:16:9f:16:56:44 MLME: MLME-DELETEKEYS.request(40:16:9f:16:56:44)
wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=0x8cbf748 key_idx=0 set_tx=1 seq_len=0 key_len=0
   addr=40:16:9f:16:56:44
wlan0: STA 40:16:9f:16:56:44 WPA: event 1 notification
wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=0x8cbf748 key_idx=0 set_tx=1 seq_len=0 key_len=0
   addr=40:16:9f:16:56:44
wlan0: STA 40:16:9f:16:56:44 IEEE 802.1X: start authentication
EAP: Server state machine created
IEEE 802.1X: 40:16:9f:16:56:44 BE_AUTH entering state IDLE
IEEE 802.1X: 40:16:9f:16:56:44 CTRL_DIR entering state FORCE_BOTH
wlan0: STA 40:16:9f:16:56:44 WPA: start authentication
WPA: 40:16:9f:16:56:44 WPA_PTK entering state INITIALIZE
wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=0x8cbf748 key_idx=0 set_tx=1 seq_len=0 key_len=0
   addr=40:16:9f:16:56:44
WPA: 40:16:9f:16:56:44 WPA_PTK_GROUP entering state IDLE
WPA: 40:16:9f:16:56:44 WPA_PTK entering state AUTHENTICATION
WPA: 40:16:9f:16:56:44 WPA_PTK entering state AUTHENTICATION2
IEEE 802.1X: 40:16:9f:16:56:44 AUTH_PAE entering state DISCONNECTED
wlan0: STA 40:16:9f:16:56:44 IEEE 802.1X: unauthorizing port
IEEE 802.1X: 40:16:9f:16:56:44 AUTH_PAE entering state RESTART
EAP: EAP entering state INITIALIZE
CTRL-EVENT-EAP-STARTED 40:16:9f:16:56:44
EAP: EAP entering state SELECT_ACTION
EAP: getDecision: no identity known yet -> CONTINUE
EAP: EAP entering state PROPOSE_METHOD
EAP: getNextMethod: vendor 0 type 1
CTRL-EVENT-EAP-PROPOSED-METHOD vendor=0 method=1
EAP: EAP entering state METHOD_REQUEST
EAP: building EAP-Request: Identifier 41
EAP: EAP entering state SEND_REQUEST
EAP: EAP entering state IDLE
EAP: retransmit timeout 3 seconds (from dynamic back off; retransCount=0)
IEEE 802.1X: 40:16:9f:16:56:44 AUTH_PAE entering state CONNECTING
IEEE 802.1X: 40:16:9f:16:56:44 AUTH_PAE entering state AUTHENTICATING
IEEE 802.1X: 40:16:9f:16:56:44 BE_AUTH entering state REQUEST
wlan0: STA 40:16:9f:16:56:44 IEEE 802.1X: Sending EAP Packet (identifier 41)
nl80211: Event message available
nl80211: Ignored unknown event (cmd=19)
IEEE 802.1X: 40:16:9f:16:56:44 TX status - version=2 type=0 length=5 - ack=0
mgmt::deauth
deauthentication: STA=40:16:9f:16:56:44 reason_code=3
AP-STA-DISCONNECTED 40:16:9f:16:56:44
wlan0: STA 40:16:9f:16:56:44 WPA: event 3 notification
wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=0x8cbf748 key_idx=0 set_tx=1 seq_len=0 key_len=0
   addr=40:16:9f:16:56:44
WPA: 40:16:9f:16:56:44 WPA_PTK entering state DISCONNECTED
WPA: 40:16:9f:16:56:44 WPA_PTK entering state INITIALIZE
wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=0x8cbf748 key_idx=0 set_tx=1 seq_len=0 key_len=0
   addr=40:16:9f:16:56:44
wlan0: STA 40:16:9f:16:56:44 IEEE 802.11: deauthenticated
wlan0: STA 40:16:9f:16:56:44 MLME: MLME-DEAUTHENTICATE.indication(40:16:9f:16:56:44, 3)
wlan0: STA 40:16:9f:16:56:44 MLME: MLME-DELETEKEYS.request(40:16:9f:16:56:44)
wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=0x8cbf748 key_idx=0 set_tx=1 seq_len=0 key_len=0
   addr=40:16:9f:16:56:44
EAP: Server state machine removed
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::auth



--


???
????????????
??????2??210096
QQ???715546252 at qq.com

Heyi Wu
SEU Infosec
#2, sipailou, Nanjing
QQ mailbox:715546252 at qq.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.shmoo.com/pipermail/hostap/attachments/20111009/a464242e/attachment.htm 



More information about the Hostap mailing list