From 5174caba2ab61dfc40aa6227f360e861b941e2b1 Mon Sep 17 00:00:00 2001 From: Michael Ingraham <34340210+meingraham@users.noreply.github.com> Date: Mon, 30 Sep 2019 10:09:20 -0400 Subject: [PATCH] Sniff SSID --- FAQ.md | 38 +++++++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/FAQ.md b/FAQ.md index 2bbf52b1..a6932145 100644 --- a/FAQ.md +++ b/FAQ.md @@ -97,26 +97,34 @@ With some Wi-Fi routers (i.e. Linksys with DD-WRT), you may have conflicts with DD-WRT also has Wi-Fi Multi-Media (WMM) enabled by default. Disabling WMM can resolve connectivity issues. ### I entered the wrong Wi-Fi information -If you have a device with a button and it is configured as a component in the Tasmota settings, you can try pressing the button to force the device into [Wi-Fi configuration mode](Button-usage#4-short-presses) with 4 short presses of the button. +- If you have a device with a button and the button is configured as a component in the Tasmota settings (e.g., GPIO0 - Button1), you can try pressing the button to force the device into [Wi-Fi configuration mode](Button-usage#4-short-presses) with 4 short presses of the button. -If you flashed a light bulb or any device without a built-in button and entered wrong Wi-Fi password you now have a device that won't connect to your Wi-Fi and you have no button to force it into Wi-Fi configuration mode. +- If you flashed a light bulb or any device without a built-in button and entered wrong Wi-Fi password you now have a device that won't connect to your Wi-Fi and you have no button to force it into Wi-Fi configuration mode. -To solve this you can try creating a new Wi-Fi AP with the same SSID and no (none) authentication. Use an old router, a mobile phone or, if you're desperate, change the settings on your main router (but remember to turn authentication back on when you're done. Depending on the router/phone it will ignore the wrong Wi-Fi password since authentication is set to none and let your Tasmota flashed device connect to it. + To solve this you can try creating a new Wi-Fi AP with the same SSID and no (none) authentication. Use an old router, a mobile phone or, if you're desperate, change the settings on your main router (but remember to turn authentication back on when you're done). Depending on the router/phone it will ignore the wrong Wi-Fi password since authentication is set to none and let your Tasmota flashed device connect to it. -Now simply connect to the same AP and open the web UI, triple check your ssid and password, enter some simple info for `SSID2` which you can create as a hotspot on your phone and save. + Now simply connect to the same AP and open the web UI, triple check your ssid and password, enter some simple info for `SSID2` which you can create as a hotspot on your phone and save. -If you are unsure what SSID you have entered, you can try to find that with special Wi-Fi sniffing tools. For example [Nirsoft WifiChannelMonitor](https://www.nirsoft.net/utils/wifi_channel_monitor.html) can show your mistakenly configured SSID name. +- If you are unsure what SSID you have entered, you can try to find that with special Wi-Fi sniffing tools. For example [Nirsoft WifiChannelMonitor](https://www.nirsoft.net/utils/wifi_channel_monitor.html) can show your mistakenly configured SSID name. + **Linux system example:** + ``` + apt install aircrack-ng wireshark + airmon-ng check kill + airmon-ng start (e.g. wlp58s0 or wlan0) + wireshark + ``` + Select your Wi-Fi device from the list. Plug in the mis-configured device and immediately watch SSIDs. You should see your mis-configured SSID fairly soon. -If these methods don't work, it may still be possible to save the device without opening it to perform a serial flash. Since Tasmota uses GET request for forms, the password may be in your browser history. -1. Search in your browser history for 192.168.4.1 (or whatever address you used for configuring it) -2. There should be an entry similar to this: - `http://192.168.4.1/wi?s1=&p1=-********&s2=&p2=********&h=hostName&save=` - - `s1` is your first AP SSID - - `p1` is the first AP password - - `s2` and `p2` are the same parameters but for the second AP - - `h` is the hostname given to the device by the Tasmota configuration -3. After getting the incorrectly entered configuration from this URL, configure an access point with these settings as described above -4. Access your device and set the correct Wi-Fi credentials +- If these methods don't work, it may still be possible to save the device without opening it to perform a serial flash. Since Tasmota uses GET request for forms, the password may be in your browser history. + 1. Search in your browser history for 192.168.4.1 (or whatever address you used for configuring it) + 2. There should be an entry similar to this: + `http://192.168.4.1/wi?s1=&p1=-********&s2=&p2=********&h=hostName&save=` + - `s1` is your first AP SSID + - `p1` is the first AP password + - `s2` and `p2` are the same parameters but for the second AP + - `h` is the hostname given to the device by the Tasmota configuration + 3. After getting the incorrectly entered configuration from this URL, configure an access point with these settings as described above + 4. Access your device and set the correct Wi-Fi credentials ### Device disconnects from Wi-Fi often