Alexxdal/ESP32WifiPhisher
About
Headless WiFi, BLE & network pentest suite for ESP32 — web UI, recon, Evil Twin/Karma, deauth arsenal, handshake capture, BLE spam, host discovery & port scanner.
Systems & InfrastructureMeasured star growth
- in 24h
- +1
- in 7 days
- +8
- in 15 days
- +12
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalWifiPhisher for ESP32
ESP32WifiPhisher turns an ESP32 into a headless WiFi, BLE, and network penetration-testing platform, driven entirely from a browser-based web UI. Beyond classic phishing (Evil Twin and Karma attacks with multiple captive-portal scenarios), it provides live packet sniffing, airodump-style reconnaissance, a 15-mode deauthentication/DoS arsenal (from legacy deauth to WPA3 SAE flooding, PMF/802.11w downgrade, and CSA spoofing), WPA handshake and PMKID capture with PCAP export, BLE scanning and advertisement spam, subnet host discovery, and a built-in port scanner — letting security researchers assess the resilience of Wi-Fi networks and connected devices in authorized engagements.
It runs across the ESP32 family (ESP32/S2/S3/C3/C5/C6 and the M5 Cardputer), supports 2.4 GHz and 5 GHz operation, an optional USB Wi-Fi dongle, and a multilingual interface. The project is built with PlatformIO on top of the ESP-IDF framework, and can be installed in seconds from the browser-based web flasher.
Legal notice: this tool is intended strictly for educational purposes and authorized security testing. See the Disclaimer section before use.
Table of Contents
- Features
- Supported Hardware
- Requirements
- Getting Started
- Usage
- Screenshots
- Roadmap
- Contributing
- Further Reading
- License
- Disclaimer
Features
Reconnaissance
- Wi-Fi Packet Sniffer & Live Analyzer — Promiscuous-mode capture with automatic channel hopping and a real-time packet analyzer streamed to the web UI, tracking nearby access points and clients (RSSI, packet/byte counters).
- Host Discovery (Subnet Scan) — ARP sweep of the subnet the device is connected to, listing every live host's IP address, MAC address, and hostname (when a local DNS server is reachable).
- Port Scanner — Probe a target host's ports using TCP Connect or TCP SYN (stealth) scanning, with presets for the top 20/50 ports, common IoT ports, or a custom port list.
Attacks
- Evil Twin Attack — Create a rogue access point (AP) that mimics the target network to trick clients into connecting to it.
- Karma Attack — Automatically detect devices probing for known networks and send spoofed responses to lure them onto the rogue AP.
- Deauther & Advanced Attacks — 15 disconnection techniques ranging from classic deauth/disassociation frames to authentication/association floods, CSA channel-switch spoofing, EAPOL-Logoff and EAPOL-Start manipulation, EAP-Failure injection, WPA3 SAE-flood, PMF downgrade pressure, and beacon spam.
- Aircrack — Capture a client's WPA/WPA2/WPA3 4-way handshake or PMKID and verify a candidate password against it, entirely on-device.
Phishing & Data Capture
- Multiple Phishing Scenarios — Serve an OS-native captive-portal login prompt, a fake router firmware-update page, a fake plugin/software-update page, a fake OAuth/social login page, or an ISP-branded login page auto-matched from the target SSID.
- Captured Credentials Log — Every submitted phishing form is saved on-device and can be reviewed or exported from the admin dashboard.
- Handshake / PMKID Export — Download any captured handshake (or PMKID-only capture) as a ready-to-use
.pcapfile, compatible with aircrack-ng and hashcat, directly from the web UI.
Quality of Life
- Persistent Configuration — AP SSID/password/channel/TX rate and the last-used Wi-Fi credentials are stored in flash and restored after reboot.
- Multi-language Web UI — Admin dashboard and captive portal available in Italian, English, French, German, Spanish, Russian, and Chinese.
Supported Hardware
The firmware is built per-target with PlatformIO. Pick the environment that matches your board:
| PlatformIO environment | Board / chip |
|---|---|
esp32 |
ESP32 (esp32dev) |
esp32s2 |
ESP32-S2 |
esp32s3 |
ESP32-S3 |
esp32c3 |
ESP32-C3 |
esp32c5 |
ESP32-C5 |
esp32c6 |
ESP32-C6 |
cardputer |
M5Stack Cardputer (ESP32-S3) |
Requirements
Software
- PlatformIO — integrated into your IDE (e.g. Visual Studio Code). Install PlatformIO.
- ESP-IDF Framework — required to build and flash the firmware; PlatformIO configures this automatically as part of the project environment.
Hardware
- One of the supported ESP32 boards above.
- A USB cable for flashing and serial monitoring.
Getting Started
Option A: Flash the Prebuilt Firmware (Recommended)
The fastest way to get started: use the Online Flasher to flash your device directly from the browser — no build tools required.
Option B: Build from Source
Clone the repository
git clone https://github.com/Alexxdal/WifiPhisher.git cd WifiPhisherBuild and upload
Open the project in Visual Studio Code and make sure PlatformIO is correctly set up.
- Select your target environment (e.g.
esp32s3) from the PlatformIO toolbar. - Connect your ESP32 board to your computer via USB.
- Click General->Upload.
- Click Platform->Upload Filesystem Image
- Select your target environment (e.g.
Monitor Logs
To debug or monitor the ESP32's serial output:
pio device monitor
Press Ctrl+C to stop the monitor.
Usage
Access the web interface
- Connect to the ESP32's rogue AP (default SSID:
MagicWifi, password:MagicWifi1234). - Open a browser and go to
http://192.168.4.1/admin.html.
- Connect to the ESP32's rogue AP (default SSID:
Configure the attack
- Select the target Wi-Fi network to impersonate.
- Choose a phishing scenario: OS-native captive portal, fake firmware update, fake plugin update, fake OAuth login, or the auto-matched ISP-branded login page.
Run the attack
Once configured, the ESP32 executes the Evil Twin attack and serves the phishing page.
Screenshots
Status Overview![]() |
Packet Analyzer![]() |
Scan![]() |
Evil Twin Attack![]() |
Karma Attack![]() |
Deauther![]() |
Example Phishing Page![]() |
Roadmap
Ideas being considered for future releases:
- Complete the Port Scanner — implement the FIN, NULL, XMAS, ACK, and UDP scan methods already selectable in the UI (currently only TCP Connect and TCP SYN are functional).
- Session Reports — export a single JSON/PDF summary of a test session (discovered hosts, open ports, captured handshakes, harvested credentials) instead of pulling each result separately.
- Customizable Phishing Templates — allow uploading a custom logo/template from the web UI instead of relying only on the built-in ISP-branded pages.
Contributing
Contributions are welcome! Feel free to open an issue or a pull request to improve phishing scenarios, optimize performance, add support for new hardware, or add new features.
Further Reading
Background research that informed this project:
- Schepers, D., Ranganathan, A., & Vanhoef, M. (2022). On the Robustness of Wi-Fi Deauthentication Countermeasures. WiSec '22.
- Cayre, R., Cauquil, D., & Francillon, A. (2023). ESPwn32: Hacking with ESP32 System-on-Chips. WOOT '23.
License
This project is licensed under the MIT License.
Disclaimer
This tool is intended strictly for educational purposes and ethical hacking in controlled environments. Unauthorized use of WifiPhisher for malicious purposes is illegal and punishable by law. Always ensure you have explicit permission before conducting any testing.
Explore related projects
Loading…






