tesa-klebeband / RTL8720dn-WiFi-Packet-Injection

Send raw 802.11 WiFi frames using an RTL8720dn
GNU General Public License v3.0
29 stars 3 forks source link

Deauthenticating an external network #2

Closed YoavLevi closed 5 months ago

YoavLevi commented 5 months ago

Hello dear, First of all, I think this work is great and interesting! Please keep maintaining it. I have a question I'm still not sure about - if one wants to use your code to deauth clients from an external network which the board is not authenticated into (and not the board self-transmitted network), does he only need to change the code at file "wifi_cust_tx.cpp" line 34 from: "memcpy(&frame.access_point, src_mac, 6);" to: "memcpy(&frame.access_point, , 6);" and it would simply work? If so, wouldn't the current setup function in the .ino file be redundant? If not and you think it is possible, what other modifications are needed for it to work?

Thanks in advance.

tesa-klebeband commented 5 months ago

The self hosted network is only required to set the channel correctly and setup some internal functions in order to even send packets. It is not needed to change anything in wifi_cust_tx.cpp as the function can just be called with a different Mac address which doesn't need to be the boards Mac address. I hope this answered your question. The code in the .ino file also does exactly that, the src_mac array can be anything.