This code can be used to make a captive portal that can make a wifi connection by the name you want and then makes a captive portal and would recive the password from victim and shows it in display and serial monitor.
- esp8266
- 1.3 display with SH1106(not necessary)
Follow these steps to set up the WiFi captive portal on your ESP8266:
-
Clone or download this repository to your local machine.
-
Open the project using the Arduino IDE or PlatformIO.
-
Configure the SSID and password for your Wi-Fi network in the code.
const char *ssid = "Guest_Wifi";
const char *password = NULL;-
Flash the code to your ESP8266 Mini.
-
Once the code is uploaded, the ESP8266 Mini will act as a captive portal ready to catch login attempts.