hostapd修改beacon帧和probe response帧

在AP模式下,热点会不断定期地发送Beacon帧来宣告自己存在,告知设备可以加入网络;

Probe Response帧是用于应答Probe Request帧,Probe Request帧是移动工作站用于扫描周围是否有网络所用

hostapd的配置文件hostapd.conf里的vendor_elements这一项,允许用户(厂商)在Beacon帧和Probe帧里增加自定义的数据:

# Additional vendor specfic elements for Beacon and Probe Response frames # This parameter can be used to add additional vendor specific element(s) into # the end of the Beacon and Probe Response frames. The format for these # element(s) is a hexdump of the raw information elements (id+len+payload for # one or more elements) #vendor_elements=dd0411223301

需要把自己的要增加的数据转换为二进制,赋值给vendor_elements即可。

 

利用 iw  dev wlan0 scan 命令来进行查看接收到的beacon和probe response时,必须带着“-u”参数,否则 "Vendor specific:" 部分显示不出来。

扫描时还有一个参数 -b,用来打印扫描到的beacon帧中的相关信息。

若不加-b参数,只会打印接收到的 probe response帧 的信息,加入-b参数后,后面会追加beacon帧信息。

转载于:https://www.cnblogs.com/rohens-hbg/p/8865553.html

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值