mfontanini / libtins

High-level, multiplatform C++ network packet sniffing and crafting library.
http://libtins.github.io/
BSD 2-Clause "Simplified" License
1.91k stars 375 forks source link

Sending Deauth Packet With Monitor Mode Interface under MacOS #347

Closed dove1413 closed 5 years ago

dove1413 commented 5 years ago

Hi, I'm trying to send Deauth Packet with a Monitor Mode Interface(which I need keep sniffing), snipper as

Tins::RadioTap radio = Tins::RadioTap(); Tins::Dot11Deauthentication deauth = Tins::Dot11Deauthentication(); Tins::PacketSender sender; deauth.addr1(apTarget); deauth.addr3(apTarget); radio.release_inner_pdu(); deauth.addr2(macTarget); radio.inner_pdu(deauth);

sender.send(radio, monitorInterace);

While I'm running this snipper, I sniffing the packets with Wireshark, But I can't see the packet I send(I filter with wlan.fc.type_subtype == 0x000c which is the sign of Deauth )And the victim didn't "Deauthed"

I'm not sure whether I could sending packet with a Monitor Mode Interface(It seems work on some software And Wikipedia says it depends on the wireless adapter's driver, its firmware, and features of its chipset ), And not sure Is there any filter or something under the Tins::PacketSender.send(xx,xx)(maybe interface is supported but PacketSender implementation directly return with monitor mode?)

Any experience with this scenario or Any Insight?

Best Regards