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


i trying send data between 2 raspberry pi's on wifi without them being connected network.

i want work similar way beacons , probe requests work, broadcast can sent out wireless interface.

the data want send hostname of device , time packet sent.

i've been trying figure out last few days cannot work without them being on same network.

is able point me in right direction? i'm not fussed language use. have been trying python , c little success.

note: not answer, ideas research, feel free edit or comment corrections.


there 6 modes wifi adapter can operate in. wikipedia:

master (acting access point), managed (client, known station), ad hoc, mesh, repeater, , monitor mode.

but believe not wifi adapters support modes, make sure have suitable hardware.

i suggest adhoc or mesh suitable purpose. adhoc mode @ least devices need configured beforehand use same ssid , channel. may not apply mesh mode.

a quick search yields few links in regards using raspberry pis in mesh network:

i @ using dot11* family of packets in excellent python scapy library (not confused scrapy). should able craft custom packets , transmit them if interface in right mode. here's project creates fake access points contains info: https://github.com/rpp0/scapy-fakeap


Comments