Monitor interface packet injection

I'm working on a project that needs to send 802.11 packets on a wireless interface that is operating in monitor mode. I haven't been able to find a good example on how to do so. Anyone able to point me to an example?

aircrack-ng and reaver/wash would be examples. The latter does fewer things, so is probably simpler code to look at.

For simple stuff, you can inject raw packets using socket/bind. For more complicated stuff, libpcap is probably the way to go.

1 Like

airmon-ng is what youre looking for i think, opkg install airmon-ng, then airmon-ng -h should help.

I know this is a super old post, but if anyone comes across it, the solution was quite simple. If you want to send packets on a wireless interface that is in Monitor mode, you simply need to prepend a radiotap header to the packet to instruct the stack on how to send it.

1 Like