ESP8266 Deauther with a clean & minimalistic web interface
Wi-PWN vs ESP8266_Deauther
- Responsive Material Design UI, with optional dark mode
- Integrated Deauth Detector (with full PIN customization)
- Connect Wi-PWN onto an external WiFi network
- Info page with total packets sent, uptime, memory usage, check for updates...
Table of Contents
- How to use it
- Sources and additional links
What is Wi-PWN
Wi-PWN is a firmware that performs deauth attacks on cheap Arduino boards. The ESP8266 is a cheap micro controller with built-in Wi-Fi. It contains a powerful 160 MHz processor and it can be programmed using Arduino.
A deauthentication attack is often confused with Wi-Fi jamming, as they both block users from accessing Wi-Fi networks.
How it works
The 802.11 Wi-Fi protocol contains a so called deauthentication frame. It is used to disconnect clients safely from a wireless network.
Because these management packets are unencrypted, you just need the MAC address of the Wi-Fi router and of the client device which you want to disconnect from the network. You don’t need to be in the network or know the password, it’s enough to be in its range.
How to protect against it
With the 802.11w-2009 updated standards, management frames are encrypted by default.
802.11w is rarely used in the real world as both the router and the client device need to support this standard, otherwise they won't be able to connect to the routers.
Updating to the 802.11w standard is often expensive and difficult due to the vast devices of legacy devices not supporting the new standard. Because of the maintenance nightmare, over 95% of devices use the vulnerable 802.11 standard — even though newer devices support newer standards.
- ESP8266 module (any board)
- Micro-USB cable
I would recommend getting a USB breakout/developer board, mainly due to the 4Mb of flash and simplicity.
In order to upload the Wi-PWN firmware, you can use one of two methods. The first method is easier overall but using Arduino is better for debugging. YOU ONLY NEED TO DO ONE OF THE INSTALLATION METHODS!
Install the necessary drivers
There are two variants of UART converters that ESP8266 boards use:
Download the current release of Wi-PWN
Connect your ESP8266 (making sure the drivers are installed) and open up the NodeMCU Flasher
Go to the
Advancedtab and select the correct values for your board.
Navigate to the
configtab and click the gear icon for the first entry.
Browse for the
.binfile you just downloaded and click open.
Switch back to the
Operationtab and click Flash(F).
Download the source code of this project.
Install Arduino and open it.
http://arduino.esp8266.com/stable/package_esp8266com_index.jsonto the Additional Boards Manager URLs. (refer to https://github.com/esp8266/Arduino)
user_interface.hwith a text editor
Just before the last line
#endif, add the following:
typedef void (*freedom_outside_cb_t)(uint8 status); int wifi_register_send_pkt_freedom_cb(freedom_outside_cb_t cb); void wifi_unregister_send_pkt_freedom_cb(void); int wifi_send_pkt_freedom(uint8 *buf, int len, bool sys_seq);
Go to the arduino/SDK_fix folder of this project
Select your ESP8266 board at
Boardand the right port at
If no port shows up you need to reinstall the drivers, search online for chip part number + 'driver Windows'
Depending on your board you may have to adjust the
Flash Frequencyand the
Flash Size. I used the
80MHzFlash Frequency, and the
4M (1M SPIFFS)Flash Size
Note: If you use a 512kb version of the ESP8266, you need to comment out a part of the mac vendor list in
How to use
Connect your ESP8266 to a USB power source (you can power it with your phone using an OTG cable)
Scan for Wi-Fi networks on your device and connect to
Wi-PWN(no password by default).
Once connected, open up your browser and go to
Reconnect to the new network using the SSID & Password you specified in the previous step.
Go back to your browser and the page should reload (open
http://192.168.4.1again if the page doesn't reload)
Select the WiFi network(s) you want to perform the attack on. Once finished, click on the Attack button
Only able to connect to Wi-Fi network on some devices
This happens due to a channel conflict. Simply navigate to
192.168.4.1/settings.html on a device that is able to connect to the Wi-Fi network and change the Channel number from
1 to any number up to
espcomm_sync failed /
espcomm_open when uploading
The ESP upload tool can't communicate with the chip.
- Reconnect the chip using a different USB port and cable.
- Install the USB drivers (cp2102 or ch340).
- Make sure the right COM port is selected.
SSID's wont load? (No clear button)
Try resetting the SSID list by visiting
192.168.4.1/clearSSID.json while connected to your ESP.
If this doesnt solve your problem, ask for help in the official discord.
Deauth attack won't work
If you see 0 pkts/s on the website, then you've made a mistake. Check that you have followed the installation steps correctly and that the right SDK installed, it must be version 2.0.0! If it can send packets but your target doesn't lose its connection, then the Wi-Fi router either uses 802.11w and it's protected against such attacks, or it communicates on the 5GHz band, which the ESP8266 doesn't support because of its 2.4GHz antenna.