
Get full C++ & Python code + lifetime access
PROJECT OVERVIEW: ESP8266 WI-FI TESTING DEVICE
This project uses a NodeMCU ESP8266, an OLED display, and three push buttons to demonstrate Wi-Fi discovery and management messages.
The customised firmware includes: β’ Wi-Fi access-point scanning β’ Client-device observation β’ A custom SPAM feature β’ Probe-request generation β’ Deauthentication testing β’ A packet monitor β’ A clock β’ Local web and USB serial interfaces
IMPORTANT: This guide describes the customised firmware used in this project. The SPAM feature and some menu controls differ from the original firmware.
Use this project only on networks and devices you own or have explicit permission to test.
β’ 1 Γ NodeMCU ESP8266 development board β’ 1 Γ SSD1306 IΒ²C OLED display β’ 3 Γ normally open momentary push buttons β’ Breadboard β’ Jumper wires β’ USB data cable β’ Computer with Arduino IDE
The current display interface is designed for a 128 Γ 64 OLED.
The ESP8266 works with 2.4 GHz Wi-Fi. It does not operate on 5 GHz or 6 GHz.
NodeMCU ESP8266 SSD1306 OLED β IΒ²C ββββββββββββββββ ββββββββββββββββββ 3V3 ββββββββββββββββββββββ VCC GND ββββββββββββββββββββββ GND D2 (GPIO4) βββββββββββββββ SDA D1 (GPIO5) βββββββββββββββ SCL
NodeMCU PUSH BUTTONS ββββββββββββββββ ββββββββββββ D5 (GPIO14) ββββ[ UP ]ββββ GND D6 (GPIO12) ββββ[ DOWN ]ββββ GND D7 (GPIO13) ββββ[ SELECT ]ββββ GND
POWER βββββ USB cable βββββββββββββββββ NodeMCU USB port
All GND connections share the same ground.
Each button must connect its GPIO to GND only while pressed. The firmware uses INPUT_PULLUP, so external button pull-up resistors are not required.
Connect the OLED according to its printed pin labels. Different display modules can arrange their pins differently.
The relevant settings near the top of A_config.h are:
#define NODEMCU #define SSD1306_I2C #define FLIP_DIPLAY true
#define I2C_ADDR 0x3C #define I2C_SDA 4 #define I2C_SCL 5
#define BUTTON_UP 14 #define BUTTON_DOWN 12 #define BUTTON_A 13
The numbers above are GPIO numbers, not NodeMCU D-pin numbers.
Examples: D1 = GPIO5 D2 = GPIO4 D5 = GPIO14 D6 = GPIO12 D7 = GPIO13
FLIP_DIPLAY is the actual spelling used by this project. Setting it to true requests a 180-degree screen rotation.
The current bundled display driver uses:
Wire.setClock(100000);
This lower IΒ²C speed was selected while troubleshooting scrambled display text.
BUILDING AND UPLOADING
Connect the NodeMCU using a USB data cable.
Open esp8266_deauther.ino in Arduino IDE.
Use the matching Deauther ESP8266 board package.
Select the NodeMCU board and its USB port.
Compile and upload the customised sketch.
Open Serial Monitor at 115200 baud when checking messages.
This project was successfully compiled using: β’ Deauther ESP8266 platform 2.7.5 β’ NodeMCU board target
Keep the working board-package configuration when rebuilding. Changing to another ESP8266 core can introduce compatibility issues.
Saving a source file does not update the board. You must compile and upload it again.
UP β D5: Moves upward through menus.
DOWN β D6: Moves downward through menus.
SELECT β D7: Opens the highlighted menu or activates its action.
BACK: This three-button setup has no separate Back button. Use the on-screen BACK entry.
In the customised AP list: A normal Select press opens the network details.
Inside AP details: SELECT / DESELECT marks or unmarks that network.
Station and saved-name lists retain their original behaviour: A short press toggles selection. A hold of about 0.8 seconds opens details.
SCAN
SCAN APs: Discovers nearby access points and their advertised information.
SCAN Stations: Observes client devices in traffic associated with discovered APs. Quiet devices can be missed.
SCAN AP + ST: Scans access points first, then observes client traffic.
A scan result is an observation, not a complete inventory of every device connected to a router.
SELECT
APs: Displays discovered networks.
Stations: Displays observed client devices.
Names: Stores readable labels associated with device addresses.
SSIDs: Stores the names used by the advertisement and probe features.
The on-screen menu is called SELECT. Some source-code sections refer to it as SHOW.
SSID: The advertised Wi-Fi name.
BSSID / MAC: An identifier associated with an access-point radio. Two access points can advertise the same SSID.
RSSI: Received signal strength in dBm. A value closer to zero generally indicates a stronger signal.
Example: -45 dBm is stronger than -80 dBm.
Channel: The radio channel used by the access point.
Encryption: The security type reported by the scan. This does not reveal the Wi-Fi password.
Vendor: A manufacturer estimate based on the address prefix.
The SPAM feature uses exactly one selected access point.
For a network named βadityaβ, it generates:
aditya a aditya b ... aditya z
and:
aditya 1 aditya 2 ... aditya 100
Total: 126 advertised names.
To use the customised menu:
The action creates the names and immediately starts the existing beacon-advertising mode.
Use STOP to end it.
The feature replaces the previous SSID list and disables random-name mode.
These entries are simulated network advertisements. They do not create 126 internet connections or change your real routerβs name, password, or configuration.
Your phone controls how it displays and orders scan results. It may not show all 126 names at once.
The customised storage settings are:
#define SSID_DEFAULT_LIST_SIZE 60 #define SSID_LIST_SIZE 126
The extended capacity retains all 126 SPAM names. Random mode and the older bulk-clone action retain their original 60-name size.
BEACON: Advertises names from the SSID list using beacon frames.
Simple explanation: βA network with this name is being announced.β
PROBE: Sends discovery-request messages using names from the SSID list.
Simple explanation: βIs a network with this name nearby?β
PROBE uses the SSID list; it does not automatically use only the access point selected in the AP list.
The counter reports locally transmitted requests. It does not confirm replies or prove a network was found.
DEAUTHENTICATION: Attempts to send forged disconnect-management messages.
Simple explanation: βThis message requests a device to disconnect.β
Its effect depends on the connection and its protections. Protected Management Frames can reject forged disconnect messages.
A changing transmission counter does not prove that a device actually disconnected.
Stop the active mode before choosing a different test.
CLONE SSID: The action inside an APβs details creates the letter-only βname aβ through βname zβ list.
CLONE APs: An older bulk-copy feature for selected AP names.
RANDOM MODE: Repeatedly generates new names. It can replace a carefully prepared SSID list.
REMOVE / REMOVE ALL: Deletes entries from the local list. It does not remove or reconfigure a real router.
Advertised encryption flag: Changes the security indication in an advertisement. It does not create a working authentication service.
PACKET MONITOR: Plots recent observed packet activity on a channel.
Up and Down change the monitored channel. Select exits monitoring.
This is a packet-activity graph, not an internet-speed test.
CLOCK: Displays or manually adjusts time.
The current NodeMCU configuration has no external real-time clock enabled, so it is not automatically synchronized to the correct time after startup.
The compiled control-hotspot defaults are:
Wi-Fi name: pwned Password: deauther Local address: 192.168.4.1
Saved settings can change these defaults.
The local control hotspot provides access to the deviceβs interface. It does not automatically provide internet access.
USB serial settings: β’ Baud rate: 115200 β’ Line ending: Newline
Useful diagnostic commands:
sysinfo get display screen mode buttontest
Exit the button-test screen with:
screen mode menu
After the corrected labels are uploaded: β’ UP corresponds to D5. β’ DOWN corresponds to D6. β’ A corresponds to Select on D7. β’ B is unassigned in this setup.
COMMON BEGINNER MISTAKES
CONFUSING D-PINS WITH GPIO NUMBERS
Writing β5β in this configuration means GPIO5, which is D1. It does not mean the pin labelled D5.
This setup uses: SDA β D2 SCL β D1
Read the labels on your module before connecting power.
SSD1306 and SH1106 modules require the correct driver. The current UI expects 128 Γ 64 pixels.
Some legs are permanently connected internally. Choose a pair that becomes connected only when pressed.
The board may power on but remain unavailable for uploading.
Use the same board-package configuration that successfully compiled this customised firmware.
Changes on the computer take effect on the NodeMCU only after a successful upload.
Existing settings can keep the display disabled even after the compiled defaults are corrected.
To enable it through Serial Monitor, send separately:
set display true save settings reboot
That limit cannot retain the customised 126-name SPAM list.
APs are discovered networks. SSIDs are stored names used by advertisement/probe features.
Beacon advertisements may appear in the Wi-Fi list. Probe requests may produce no obvious phone-screen change.
A local transmission count is not confirmation of reception, a response, or a disconnected client.
The ESP8266 radio operates on 2.4 GHz.
The software clock requires appropriate time setup or additional clock hardware.
This project is for education and authorized testing.
Use it only on networks and devices you own or have explicit permission to test. Never disrupt another personβs connection.
An educational disclaimer does not replace authorization.