Raw socket on WiFi
I'm working on a project based on the SiPy module.
My need is to generate and receive fully custom network packets, starting from the data link layer.
This mean that I want to be able to change anything in the packet, source mac address, destination mac address, ecc..
Is there any way to do this?
Using raw socket (AF_INET and SOCK_RAW) I am able to generate packets, but only form the payload of the IP packet (I'm not able, for example, to change the destination IP address, or the destination mac address).
How can I do that? Is there any way to send a raw packet over the WiFi interface?
In case of negative response, how can I do to change the destination IP address
using raw socket?