An ESP32-based captive portal that clones an existing Wi-Fi network (SSID) and creates an open-access point.
When users connect, they are redirected to a portal promising free bandwidth in exchange for basic details.
The system logs the device's:
- MAC address
- Mobile number
- Name
This project is intended for educational and research purposes to demonstrate captive portal behavior, SSID cloning, and basic logging techniques.
- 🚫 No actual bandwidth delivery — the "free internet" is only a prompt.
- 🔄 Single SSID cloning — cannot mimic multiple networks simultaneously.
- 📄 Basic logging only — no advanced analytics or cross-referencing.
- ESP32 microcontroller
- Captive portal HTTP server
- MAC address & form data logger
- ESP32 clones a target Wi-Fi SSID from:
- The strongest available nearby network, or
- A custom SSID set via serial commands.
- Creates an open network with the cloned SSID.
- When a user connects, they are redirected to
/login— the captive portal page. - The portal displays a "Free Bandwidth" offer form requesting:
- Name
- Mobile number
- Upon submission, the ESP32 logs:
- MAC address (from connection request)
- Name (from form input)
- Mobile number (from form input)
- Flash the firmware to your ESP32 using PlatformIO or Arduino IDE.
- After boot, the ESP32 will:
- Automatically scan and clone the strongest nearby Wi-Fi SSID, OR
- Use a custom SSID if set via serial commands.
- Connect to the cloned SSID (open network).
- Open any webpage — you will be redirected to
/login. - To access the admin panel for logs and settings, navigate to
/admin:- Username:
admin - Password:
scamaware
- Username:
- Admin panel features:
- View captured logs (MAC, name, phone)
- Clear stored data
- Change SSID target via serial or UI
- To stop the portal, simply power down the ESP32.
⚠️ This project is for educational purposes only.
Unauthorized collection or use of personal data may be illegal in your jurisdiction.
Always obtain permission before deploying in real environments.
- Add multi-SSID cloning support
- Implement secure storage for captured data
- Integrate data visualization dashboard
- Add optional real bandwidth delivery feature


