how can I send raw packets over wifi without a network?

别说谁变了你拦得住时间么 提交于 2019-12-06 01:29:51
Peter Gibson

Note: This is not really an answer, just some ideas to research, so feel free to edit or comment with corrections.


There are 6 modes a wifi adapter can operate in. From wikipedia:

Master (acting as an access point), Managed (client, also known as station), Ad hoc, Mesh, Repeater, and Monitor mode.

But I believe not all wifi adapters support all modes, so make sure you have suitable hardware.

I would suggest adhoc or mesh would be the most suitable to your purpose. With adhoc mode at least the devices would need to be configured beforehand to use the same SSID and channel. This may not apply to mesh mode.

A quick search yields a few links in regards to using Raspberry Pis in a mesh network:

I would also look at using the Dot11* family of packets in the excellent Python Scapy library (not to be confused with Scrapy). You should be able to craft custom packets and transmit them if the interface is in the right mode. Here's a project that creates fake access points that probably contains good info: https://github.com/rpp0/scapy-fakeap

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!