This project implements a web server on an ESP8266 microcontroller that allows for deauthentication attacks and Evil Twin attacks. The web server provides a user-friendly interface to control these functionalities directly from your browser.
- Web Server: Serves a web interface to control the ESP8266 functionalities.
- Deauthentication Attack: Disconnects clients from a WiFi network by sending deauth packets.
- Evil Twin Attack: Creates a fake access point to capture credentials or mislead users.
- WiFi Network Scanning: Scans and lists available WiFi networks in the vicinity.
- Password Validation: Validates the entered password and provides feedback.
-
WebServ
Handles the web server setup and client requests. -
ScanAp
Scans for available WiFi networks and stores the results. -
Utils
Provides utility functions for HTML generation and byte-string conversion. -
EvilTwin
Manages the creation and stopping of the Evil Twin access point. -
Deauth
Performs deauthentication attacks on specified WiFi networks.
WebServ.h
/WebServ.cpp
: Web server implementation.ScanAp.h
/ScanAp.cpp
: WiFi network scanning implementation.Utils.h
/Utils.cpp
: Utility functions for handling HTML and data conversions.EvilTwin.h
/EvilTwin.cpp
: Evil Twin attack implementation.Deauth.h
/Deauth.cpp
: Deauthentication attack implementation.esp8266-deauth-eviltwin.ino
: Main Arduino sketch.
- ESP8266 microcontroller (e.g., NodeMCU or Wemos D1 Mini)
- USB cable for programming
- Arduino IDE
- ESP8266 board package installed in Arduino IDE
ESP8266WiFi
DNSServer
ESP8266WebServer
- Go into the
esp8266-deauth-eviltwin
folder and openesp8266-deauth-eviltwin.ino
with Arduino IDE. - In Arduino IDE, go to File > Preferences and add this URL to the Additional Boards Manager URLs:
https://raw.githubusercontent.com/SpacehuhnTech/arduino/main/package_spacehuhn_index.json
. - Now go to Tools > Board > Boards Manager, search for "Deauther," and install Deauther ESP8266 Boards.
- Select your board at Tools > Board and ensure it is set to Deauther ESP8266 Boards (not ESP8266 Modules).
- Plug in your Deauther and select its COM port at Tools > Port.
- Optional: To reset or override previous settings, select Tools > Erase Flash > All Flash Contents.
- Press Upload to upload the sketch to the board.
-
git clone https://github.com/A3ST1CODE/esp8266-deauth-eviltwin.git
- Open the
esp8266-deauth-eviltwin.ino
file in Arduino IDE. - Select the correct ESP8266 board and port in the Arduino IDE settings.
- Upload the sketch to the ESP8266.
- Connect to the ESP8266's access point (SSID: Deauther, Password: deauther).
- Open a web browser and navigate to
http://192.168.4.1
. - Use the web interface to:
- Scan for WiFi networks.
- Start/Stop Deauthentication attacks.
- Start/Stop the Evil Twin attack.
This project is licensed under the MIT License. See the LICENSE file for details.
This project is intended for educational purposes only. You are responsible for using it responsibly and ethically. Do not use it to harm others or violate any laws. The authors are not responsible for any misuse of this project.
- ESP8266 Community
- Arduino
Special thanks to SpacehuhnTech and M1z23R for their contributions and inspiration.
For any issues or contributions, please open an issue or submit a pull request on the GitHub repository.
Happy hacking!