-
-
Notifications
You must be signed in to change notification settings - Fork 318
Installation
Requirements:
- ESP8266 module (any board)
- Micro-USB cable
- Computer
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!
-
Download the current release of Wi-PWN
-
Upload the
.bin
file using the nodemcu-flasher. Alternatively you can use the official esptool from espressif. -
Connect your ESP8266 (making sure the drivers are installed) and open up the NodeMCU Flasher
-
Go to the
Advanced
tab and select the correct values for your board. -
Navigate to the
config
tab and click the gear icon for the first entry. -
Browse for the
.bin
file you just downloaded and click open. -
Switch back to the
Operation
tab and click Flash(F).
-
Download the source code of this project.
-
Install Arduino and open it.
-
Go to
File
>Preferences
-
Add
http://arduino.esp8266.com/stable/package_esp8266com_index.json
to the Additional Boards Manager URLs. (refer to https://github.com/esp8266/Arduino) -
Go to
Tools
>Board
>Boards Manager
-
Type in
esp8266
-
Select version
2.0.0
and click onInstall
(must be version 2.0.0!)
-
Go to
File
>Preferences
-
Open the folder path under
More preferences can be edited directly in the file
-
Go to
packages
>esp8266
>hardware
>esp8266
>2.0.0
>tools
>sdk
>include
-
Open
user_interface.h
with 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
-
Copy
ESP8266Wi-Fi.cpp
andESP8266Wi-Fi.h
toC:\Users\%username%\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\ESP8266WiFi\src
-
Open
arduino/Wi-PWN/esp8266_deauther.ino
in Arduino -
Select your ESP8266 board at
Tools
>Board
and the right port atTools
>Port
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
Tools
>Board
>Flash Frequency
and theTools
>Board
>Flash Size
. I used the80MHz
Flash Frequency, and the4M (1M SPIFFS)
Flash Size -
Upload! CTRL-U
Note: If you use a 512kb version of the ESP8266, you need to comment out a part of the mac vendor list in data.h