hostapd_cli 命令介绍

hostapd_cli –h

Options:

   -h           help (show this usage text)

   -v           shown version information

  -p<path>     path to findcontrol sockets (default: /var/run/hostapd)

  -a<file>     run in daemonmode executing the action file based on events

               from hostapd

   -B           run a daemon in the background

  -i<ifname>   Interface tolisten on (default: first interface found in the

               socket path)

hostapd_cli 在mstar上面的连接:

hostapd_cli -i uap0 -p /data/misc/wifi/hostapd

连上之后没有交互的EVENT上来,需要分析

 

 

 

命令

命令缩写

描述

测试

all_sta

al

显示当前连入的STA,并记录连上的时间长度

> all_sta

40:f3:08:39:b6:74

connected_time=579          

00:90:4c:78:5d:5c

connected_time=3359

> all    

00:90:4c:78:5d:5c

connected_time=3458

deauthenticate <addr>

dea

解除验证

> all

40:f3:08:39:b6:74    ---à我的设备

connected_time=59

00:90:4c:78:5d:5c

connected_time=4008

> dea 40:f3:08:39:b6:74    -à可以看到设备断开,又启动连接

OK

disassociate <addr>

 

断开连接

过程与上面差不多

wps_pin

 

AP端的wps功能

功能有问题无法测试

wps_pbc

 

Ap端的wps功能

功能有问题无法测试

wps_config <SSID> <auth> <encr> <key> 

 

配置

 

  • 1
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值