博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
hostapd修改beacon帧和probe response帧
阅读量:7028 次
发布时间:2019-06-28

本文共 837 字,大约阅读时间需要 2 分钟。

在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

你可能感兴趣的文章
使用httpclient异步调用WebAPI接口
查看>>
c++ 类的对象与指针
查看>>
SSTI(模板注入)
查看>>
rbac models
查看>>
[2615]传纸条 sdutOJ
查看>>
类图标注的使用范例
查看>>
NumberFormat注解 DateTimeFormat
查看>>
[转载]PV操作简单理解
查看>>
Acm Dima and Lisa的题解
查看>>
2017 ZSTU寒假排位赛 #7
查看>>
深入浅出Tomcat系列
查看>>
从网页提取的关键字
查看>>
位运算符
查看>>
PHP str_replace() 和str_ireplace()函数
查看>>
什么是全栈工程师
查看>>
Html5新特性
查看>>
linux下简易端口扫描器
查看>>
HDU 1205
查看>>
Openstack-L 路由注入方式
查看>>
利用ROS工具从bag文件中提取图片
查看>>