This project creates a fake Facebook login page using the ESP8266 in Access Point (AP) mode. When users connect to the WiFi network, they are redirected to a custom login page mimicking Facebook’s interface. The credentials are captured and displayed locally.
Disclaimer: This project is for educational purposes only. Do not use it for unauthorized activities.
- Fake Facebook login form
- Captures and stores credentials in memory (up to 10 entries)
- DNS spoofing for redirecting all URLs to the fake portal
- Blinks built-in LED upon each credential submission
- Minimal and mobile-friendly HTML/CSS layout
- Requirements
- ESP8266 (e.g., NodeMCU, Wemos D1 mini)
- Arduino IDE with ESP8266 board support
- Required libraries:
ESP8266WiFi
ESP8266WebServer
DNSServer
- Installation Steps
- Clone or download this repo
- Open
main.ino
fromsrc/
in Arduino IDE - Select the correct board and COM port
- Upload the code
- Open Serial Monitor to debug
- Operation
- Connect to the WiFi named
Facebook Free WiFi
- Any URL will redirect to a Facebook-like login
- Entering credentials will blink the onboard LED
- To view captured credentials, visit:
http://192.168.4.1/pass
This project demonstrates how a captive portal phishing method works using microcontrollers and embedded servers. It can be used for:
- Security education
- Demonstration of ethical hacking techniques
- IoT web interfaces
Author: Kayes Azam
License: MIT
NOTE: Avoid using this on real users. Always test ethically and responsibly.