schloss / insecurity-demos

A packaged, graphical user interface for demonstrating various digital security threats and mitigations in a training room context.
4 stars 2 forks source link

Forced de-auth: include existing monitor mode adapters in the dropdown, but remove the (non-monitor-mode) adapter currently selected for capture #70

Closed poser closed 10 years ago

poser commented 10 years ago

If a WiFi adapter can send a de-auth packet, its monitor mode adapter can still do so even while being used simultaneously as the capture interface (at least for the drivers we've tested so far). So, there's no reason to spawn an additional monitor mode interface on the adapter currently being used to sniff (that is, the one selected in the first adapter dropdown). Of course, if a different adapter is selected, we will still need to spawn the monitor mode interface.

So:

poser commented 10 years ago

As is, attempting to select the adapter from which we spawned the monitor mode interface being used for capture produces... Interface wlanX already in monitor mode on channel Z. ...rather than, as I'd assumed, spawning an additional monitor mode interface.

poser commented 10 years ago

Perhaps it was the resolution of other, related bugs, but this now appears to work in a more acceptable way. Specifically, selecting an adapter that has already spawned a monitor mode interface now appears to use that monitor mode interface. (Albeit only if the the application itself spawned the monitor mode interface when the demo was started? If airmon-ng was used, outside of the application, to spawn mon0 from wlan0, for example, then selecting wlan0 appears to spawn mon1 rather than recognizing the existence of mon0 and using it.)

Regardless, this seems acceptable (at least for now).