wpasupplicantcommand.docx
- 文档编号:10446972
- 上传时间:2023-02-11
- 格式:DOCX
- 页数:37
- 大小:29.84KB
wpasupplicantcommand.docx
《wpasupplicantcommand.docx》由会员分享,可在线阅读,更多相关《wpasupplicantcommand.docx(37页珍藏版)》请在冰豆网上搜索。
wpasupplicantcommand
Controlinterfacecommands
Followingcommandscanbeusedwithwpa_ctrl_request():
PING
Thiscommandcanbeusedtotestwhetherwpa_supplicantisreplyingtothecontrolinterfacecommands.TheexpectedreplyisPONGiftheconnectionisopenandwpa_supplicantisprocessingcommands.
MIB
RequestalistofMIBvariables(dot1x,dot11).Theoutputisatextblockwitheachlineinvariable=valueformat.Forexample:
dot11RSNAOptionImplemented=TRUE
dot11RSNAPreauthenticationImplemented=TRUE
dot11RSNAEnabled=FALSE
dot11RSNAPreauthenticationEnabled=FALSE
dot11RSNAConfigVersion=1
dot11RSNAConfigPairwiseKeysSupported=5
dot11RSNAConfigGroupCipherSize=128
dot11RSNAConfigPMKLifetime=43200
dot11RSNAConfigPMKReauthThreshold=70
dot11RSNAConfigNumberOfPTKSAReplayCounters=1
dot11RSNAConfigSATimeout=60
dot11RSNAAuthenticationSuiteSelected=00-50-f2-2
dot11RSNAPairwiseCipherSelected=00-50-f2-4
dot11RSNAGroupCipherSelected=00-50-f2-4
dot11RSNAPMKIDUsed=
dot11RSNAAuthenticationSuiteRequested=00-50-f2-2
dot11RSNAPairwiseCipherRequested=00-50-f2-4
dot11RSNAGroupCipherRequested=00-50-f2-4
dot11RSNAConfigNumberOfGTKSAReplayCounters=0
dot11RSNA4WayHandshakeFailures=0
dot1xSuppPaeState=5
dot1xSuppHeldPeriod=60
dot1xSuppAuthPeriod=30
dot1xSuppStartPeriod=30
dot1xSuppMaxStart=3
dot1xSuppSuppControlledPortStatus=Authorized
dot1xSuppBackendPaeState=2
dot1xSuppEapolFramesRx=0
dot1xSuppEapolFramesTx=440
dot1xSuppEapolStartFramesTx=2
dot1xSuppEapolLogoffFramesTx=0
dot1xSuppEapolRespFramesTx=0
dot1xSuppEapolReqIdFramesRx=0
dot1xSuppEapolReqFramesRx=0
dot1xSuppInvalidEapolFramesRx=0
dot1xSuppEapLengthErrorFramesRx=0
dot1xSuppLastEapolFrameVersion=0
dot1xSuppLastEapolFrameSource=00:
00:
00:
00:
00:
00
STATUS
RequestcurrentWPA/EAPOL/EAPstatusinformation.Theoutputisatextblockwitheachlineinvariable=valueformat.Forexample:
bssid=02:
00:
01:
02:
03:
04
ssid=testnetwork
pairwise_cipher=CCMP
group_cipher=CCMP
key_mgmt=WPA-PSK
wpa_state=COMPLETED
ip_address=192.168.1.21
SupplicantPAEstate=AUTHENTICATED
suppPortStatus=Authorized
EAPstate=SUCCESS
STATUS-VERBOSE
SameasSTATUS,butwithmoreverbosity(i.e.,morevariable=valuepairs).
bssid=02:
00:
01:
02:
03:
04
ssid=testnetwork
id=0
pairwise_cipher=CCMP
group_cipher=CCMP
key_mgmt=WPA-PSK
wpa_state=COMPLETED
ip_address=192.168.1.21
SupplicantPAEstate=AUTHENTICATED
suppPortStatus=Authorized
heldPeriod=60
authPeriod=30
startPeriod=30
maxStart=3
portControl=Auto
SupplicantBackendstate=IDLE
EAPstate=SUCCESS
reqMethod=0
methodState=NONE
decision=COND_SUCC
ClientTimeout=60
PMKSA
ShowPMKSAcache
Index/AA/PMKID/expiration(inseconds)/opportunistic
1/02:
00:
01:
02:
03:
04/000102030405060708090a0b0c0d0e0f/41362/0
2/02:
00:
01:
33:
55:
77/928389281928383b34afb34ba4212345/362/1
SET
Setvariables:
∙EAPOL:
:
heldPeriod
∙EAPOL:
:
authPeriod
∙EAPOL:
:
startPeriod
∙EAPOL:
:
maxStart
∙dot11RSNAConfigPMKLifetime
∙dot11RSNAConfigPMKReauthThreshold
∙dot11RSNAConfigSATimeout
Examplecommand:
SETEAPOL:
:
heldPeriod45
LOGON
IEEE802.1XEAPOLstatemachinelogon.
LOGOFF
IEEE802.1XEAPOLstatemachinelogoff.
REASSOCIATE
Forcereassociation.
RECONNECT
Connectifdisconnected(i.e.,likeREASSOCIATE,butonlyconnectifindisconnectedstate).
PREAUTH
Startpre-authenticationwiththegivenBSSID.
ATTACH
Attachtheconnectionasamonitorforunsolicitedevents.Thiscanbedonewithwpa_ctrl_attach().
DETACH
Detachtheconnectionasamonitorforunsolicitedevents.Thiscanbedonewithwpa_ctrl_detach().
LEVEL
Changedebuglevel.
RECONFIGURE
Forcewpa_supplicanttore-readitsconfigurationdata.
TERMINATE
Terminatewpa_supplicantprocess.
BSSID
SetpreferredBSSIDforanetwork.NetworkidcanbereceivedfromtheLIST_NETWORKScommandoutput.
LIST_NETWORKS
Listconfigurednetworks.
networkid/ssid/bssid/flags
0examplenetworkany[CURRENT]
(note:
fieldsareseparatedwithtabs)
DISCONNECT
DisconnectandwaitforREASSOCIATEorRECONNECTcommandbeforeconnecting.
SCAN
RequestanewBSSscan.
SCAN_RESULTS
Getthelatestscanresults.
bssid/frequency/signallevel/flags/ssid
00:
09:
5b:
95:
e0:
4e2412208[WPA-PSK-CCMP]jkmprivate
02:
55:
24:
33:
77:
a32462187[WPA-PSK-TKIP]testing
00:
09:
5b:
95:
e0:
4f2412209jkmguest
(note:
fieldsareseparatedwithtabs)
BSS
Getdetailedper-BSSscanresults.BSScommandcanbeusedtoiteratethroughscanresultsoneBSSatatimeandtofetchallinformationfromthefoundBSSes.ThisprovidesaccesstothesamedatathatisavailablethroughSCAN_RESULTSbutinawaythatavoidsproblemswithlargenumberofscanresultsnotfittinginthectrl_ifacemessages.
TherearetwooptionsforselectingtheBSSwiththeBSScommand:
"BSS
01:
02:
03:
04:
05format).
BSSinformationispresentedinfollowingformat.Pleasenotethatnewfieldsmaybeaddedtothisfield=valuedata,sothectrl_ifaceusershouldbepreparedtoignorevaluesitdoesnotunderstand.
bssid=00:
09:
5b:
95:
e0:
4e
freq=2412
beacon_int=0
capabilities=0x0011
qual=51
noise=161
level=212
tsf=0000000000000000
ie=000b6a6b6d2070726976617465010180dd180050f20101000050f20401000050f20401000050f2020000
ssid=jkmprivate
SELECT_NETWORK
Selectanetwork(disableothers).NetworkidcanbereceivedfromtheLIST_NETWORKScommandoutput.
ENABLE_NETWORK
Enableanetwork.NetworkidcanbereceivedfromtheLIST_NETWORKScommandoutput.Specialnetworkidallcanbeusedtoenableallnetwork.
DISABLE_NETWORK
Disableanetwork.NetworkidcanbereceivedfromtheLIST_NETWORKScommandoutput.Specialnetworkidallcanbeusedtodisableallnetwork.
ADD_NETWORK
Addanewnetwork.Thiscommandcreatesanewnetworkwithemptyconfiguration.ThenewnetworkisdisabledandonceithasbeenconfigureditcanbeenabledwithENABLE_NETWORKcommand.ADD_NETWORKreturnsthenetworkidofthenewnetworkorFAILonfailure.
REMOVE_NETWORK
Removeanetwork.NetworkidcanbereceivedfromtheLIST_NETWORKScommandoutput.Specialnetworkidallcanbeusedtoremoveallnetwork.
SET_NETWORK
Setnetworkvariables.NetworkidcanbereceivedfromtheLIST_NETWORKScommandoutput.
Thiscommandusesthesamevariablesanddataformatsastheconfigurationfile.Seeexamplewpa_supplicant.confformoredetails.
∙ssid(networkname,SSID)
∙psk(WPApassphraseorpre-sharedkey)
∙key_mgmt(keymanagementprotocol)
∙identity(EAPidentity)
∙password(EAPpassword)
∙...
GET_NETWORK
Getnetworkvariables.NetworkidcanbereceivedfromtheLIST_NETWORKScommandoutput.
SAVE_CONFIG
Savethecurrentconfiguration.
P2P_FIND
StartP2Pdevicediscovery.Optionalparametercanbeusedtospecifythedurationforthediscoveryinseconds(e.g.,"P2P_FIND5").Ifthedurationisnotspecified,discoverywillbestartedforindefinitetime,i.e.,untilitisterminatedbyP2P_STOP_FINDorP2P_CONNECT(tostartgroupformationwithadiscoveredpeer).
开始P2P设备发现。
可选参数可以用来指定持续时间发现在几秒钟内(如。
“P2P_FIND5”)。
如果没有指定持续时间,发现将开始不确定时间,即。
直到终止P2P_STOP_FIND或P2P_CONNECT(开始组地层发现同行)。
Thedefaultsearchtypeistofirstrunafullscanofallchannelsandthencontinuescanningonlysocialchannels(1,6,11).Thisbehaviorcanbechangedbyspecifyingadifferentsearchtype:
social(e.g.,"P2P_FIND5type=social")willskiptheinitialfullscanandonlysearchsocialchannels;progressive(e.g.,"P2P_FINDtype=progressive")startswithafullscanandthensearchesprogressivelythroughallchannelsonechannelatthetimewiththesocialchannelscans.Progressivedevicediscoverycanbeusedtofindnewgroups(andgroupsthatwerenotfoundduringtheinitialscan,e.g.,duetotheGObeingasleep)overtimewithoutaddingconsiderableextradelayforeverySearchstateround.
默认搜索类型是首先运行一个完整的扫描频道,然后继续扫描只有社会渠道(1、6、11)。
这种行为可以改变通过指定一个不同的搜索类型:
社会(如。
“P2P_FIND5类型=社会”)只会跳过初始全扫描和搜索社会渠道;进步(如。
“P2P_FIND类型=进步”)开始于一个完整的扫描,然后通过所有渠道逐步搜索一个频道与社会频道扫描。
进步的设备发现可以用来寻找新的组(和组没有发现在初始扫描,如。
随着时间的推移,由于入睡)没有增加相当大的额外延迟每一轮搜索状态。
P2P_STOP_FIND
StopongoingP2Pdevicediscoveryorotheroperation(connect,listenmode).
P2P_CONNECT
StartP2PgroupformationwithadiscoveredP2Ppeer.Thisincludesgroupownernegotiation,groupinterfacesetup,provisioning,andestablishingdataconnection.
P2P群体形成一开始就发现了P2P对等。
这包括组所有者谈判,组织界面设置,配置,建立数据连接。
P2P_CONNECT
StartP2PgroupformationwithadiscoveredP2Ppeer.Thisincludesoptionalgroupownernegotiation,groupinterfacesetup,provisioning,andestablishingdataconnection.
The
<中国人民银行||销销#>参数指定WPS提供方法。
“中国人民银行”字符串开始按钮的方法,“销”字符串开始销方法使用一个自动生成的销(将返回的命令返回代码),销#意味着可以使用预先确定销(如。
12345670)。
标签||显示键盘是用于销方法指定使用哪个销(标签=销从当地标签,显示=动态生成的随机销从本地显示器,键盘=销进入从对等设备标签或显示)。
“持久”参数可用于请求一个持久的组织形成。
"join"indicatesthatthisisacommandtojoinanexistinggroupasaclient.ItskipstheGONegotiationpart.
"au
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- wpasupplicantcommand