lemontree55 / packetgen

Ruby library to easily generate and capture network packets
MIT License
98 stars 13 forks source link

Add monitor (rfmon) support. #107

Closed optix2000 closed 4 years ago

optix2000 commented 4 years ago

Add monitor support using pcap_set_rfmon().

Makes it easier to put the interface in monitor mode without needing to shell out to another tool. Obviously only works with NICs that support entering monitor mode using libpcap.

Tested on macOS 10.15.3 (19D76).

Let me know if you want any changes since it digs pretty deep into your abstractions.

Also probably needs a wiki update for the wifi example.

sdaubert commented 4 years ago

@optix2000 thanks for your interest on packetgen. I will have a look today.

sdaubert commented 4 years ago

@optix2000 Thanks for this PR :smile: