Can eBPF be used to modify the list of WiFi networks?
Can eBPF be used to modify the list of WiFi networks?
Can eBPF be used to modify the list of WiFi networks visible to the user via NetworkManager? Hide some of them, add or modify info of the others....
Or even better, modify it on yet the lower level such that any application that polls the list via system API would receive a modified list.
The is about eBPF only
It seems to be plausible, I'd guess you need to use XDP or something similar to it to drop/alter 80211 packets at the data layer.
https://github.com/SIOTLAB/FLIP/tree/master This may be a good place to start
Alternatively netlink could be another route to research https://www.kernel.org/doc/html/next/userspace-api/netlink/intro.html It seems this is a way the kernel talks to userspace networking applications like iw im not sure about NetworkManager in particular.
It's probably more effort than worth it doing this through ebpf is my two cents, what is this for?
2 0 Replyresearch
1 0 Reply