-
Notifications
You must be signed in to change notification settings - Fork 13.3k
promicous mode and wifi class , intended behaviour? #4682
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@DasVoelkel the behavior of promiscous mode is specific to the SDK, and not of the core libs in this repo. That means that it is currently completely unsupported. In addition, I am not aware of any developer with plans to support it in the foreseeable future. |
ah ok. |
Do you need promiscuous at the PHY level (radio) or Ethernet level (network) ? |
I am kinda new to git, what exactly is #4678 ? I don't get anywhere with the info presented to me on that screen. |
That is a PR (pull request) with a proposal of a new lib, which can capture ethernet packets. You can dump the packets (print them out), or do whatever you want. |
For the purpose of capturing beacon packets. I think i need phy level. |
With #4678 you can monitor arp packets if you are inside/connected to the WiFi network. |
Monitoring arp packets would be great and even better would be the ability to send them myself. If monitoring arp packets is supported on here, how come i've not found anything in those regards in the library source code ? |
And who said that? You are being a Dickhead. d-a-v has been very generous with his time in regard to your request. He has pointed you in the correct directions. He explained that the access you want is not part of the Arduino/ESP8266 framework but may be available from a lower level (that is not the code here) that you need to explore on your own. If you want to see what information is here regarding arp requests then use the search box. Have you even tried that? Because that is what is here. Nothing else. |
Alright, let's keep things.civil here. |
Testing this PR is welcome. Assuming you are using git, the instructions are
then restart the arduino IDE, and you will find two examples in Just run the edit: going back to master branch
|
Thanks a lot for the help! If i find issues with that build should i report them in a new issue? |
@DasVoelkel no, if you find issues in the PR, please report them in that same PR. |
Thanks a lot fot the help! Sorry for not understanding everything right away! |
Basic Infos
Platform
Settings in IDE
Problem Description
Working on a node MCU E-12 .
I've been trying out promiscuous mode, as from the mini sniffer or spacehuhns project. I tried if it was possible to connect wifi while using this mode.
(after disabling promicous_mode, setting a new callback, and then reenabling it)
WiFi.status() kept responding 0 although that the connection didn't seem to be successful -> because, client.connect(WiFi.gatewayIP(); ,80); //tried it with my router first, both respond 0.
So, is this intended behavior? shouldn't wifi.status change it's status if promiscuous mode cancels it?
recalling Wifi.disconnect() and Wifi.begin() right after, on the same network, seems to get stuck indefinetly.
This works:
So i have to disable promiscuous mode when connecting or using wifi. otherwise begin will get stuck and any connection tries will return 0.
I am guessing i can't use promiscuous mode while using the wifi normally. which seems a little odd since it doesn't seem like it gets in the way of normal traffic. If promiscuous mode just listens in on whatever floats through the air it shouldn't really matter if those packets are addressed to me.
And if it is a problem, shouldn't WiFi.begin scream if promiscuous mode gets or is enabled while it is called ?
The text was updated successfully, but these errors were encountered: