Skip to content
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

add MQTT publish #20

Open
achill-es opened this issue Apr 16, 2022 · 3 comments
Open

add MQTT publish #20

achill-es opened this issue Apr 16, 2022 · 3 comments

Comments

@achill-es
Copy link

Wouldn't it be a nice improvement to add a function that publishes the channel number where an deauth attack has been identified (LED on) to a pre-configured MQTT broker?

The broker would implicitly record the UTC for the event for later deep analysis.

More ideas on this proposed enhancement welcome...

@vongyver
Copy link

vongyver commented Jul 7, 2022

It should be possible, in the event of an attack being detected to step out of the main loop, connect to wifi network, then mqtt server and post a record.
Alternatively, if you have a running Node-red instance with a serial interface, you could read from the serial port and post to MQTT within Node-red, which is what I am currently doing. I skipped the timestamp from the esp32 because modding time is a pain.
if (packet_rate>0) {
Serial.print("{Channel:");
Serial.print(channels[ch_index]);
Serial.print(",Packets:");
Serial.print(packet_rate);
Serial.println("}");
}

@chris-nite
Copy link

It should be possible, in the event of an attack being detected to step out of the main loop, connect to wifi network, then mqtt server and post a record. Alternatively, if you have a running Node-red instance with a serial interface, you could read from the serial port and post to MQTT within Node-red, which is what I am currently doing. I skipped the timestamp from the esp32 because modding time is a pain. if (packet_rate>0) { Serial.print("{Channel:"); Serial.print(channels[ch_index]); Serial.print(",Packets:"); Serial.print(packet_rate); Serial.println("}"); }

Hi @vongyver , i'm currently trying to implement the deauth detector into my home assistant + node-red build as sensor, so i can properly alert via App, Telegram, Lights, etc.
Would you be kind enough to share your Node-Red-Template for properly splitting up the serial input into a MQTT-Topic?
Thanks in advance and best regards.

@vongyver
Copy link

vongyver commented Jul 3, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants