How 7wp81x/duckesp works
DuckESP is ESP32 firmware controlled through a WiFi-hosted web interface. The main workflow is browser editing or uploading a DuckyScript, saving it to onboard storage, then running it as BLE keyboard input on a paired target. The README also documents settings, device scanning and name cloning. These responsibilities appear to live in one firmware file; the excerpts show only parts of its UI, handlers, interpreter and setup, so some documented links cite the README rather than sampled implementation.
Main entry points: main.cpp Web interface
Components 15
Web control
- Web interface
src/main.cpp - HTTP server
src/main.cpp - WiFi access point
src/main.cpp
Payload handling
- Script editor
src/main.cpp - Script upload
src/main.cpp - Profile handlers
src/main.cpp - LittleFS storage
src/main.cpp - Ducky interpreter
src/main.cpp
Wireless device
- BLE keyboard
src/main.cpp - BLE scanner
src/main.cpp - Device cloning
src/main.cpp
Device configuration
- Settings handlers
src/main.cpp - Saved preferences
src/main.cpp
Other components
- Operator
- Paired target
Connections 19
- Operator → Web interface: controls
README.md - Web interface → WiFi access point: connects through
README.md - Web interface → HTTP server: requests routes
src/main.cpp - Web interface → Profile handlers: lists profiles
src/main.cpp - Web interface → Script upload: uploads scripts
src/main.cpp - Web interface → Settings handlers: configures
README.md - Web interface → BLE scanner: starts scans
src/main.cpp - Web interface → Device cloning: requests clone
src/main.cpp - HTTP server → Profile handlers: routes requests
src/main.cpp - Script upload → LittleFS storage: saves scripts
README.md - Profile handlers → LittleFS storage: reads and writes
README.md - Profile handlers → Ducky interpreter: runs payload
README.md - Ducky interpreter → BLE keyboard: sends keystrokes
README.md - BLE keyboard → Paired target: injects keystrokes
README.md - BLE scanner → Device cloning: offers device names
src/main.cpp - Device cloning → Saved preferences: stores BLE name
src/main.cpp - Settings handlers → Saved preferences: saves configuration
README.md - Settings handlers → WiFi access point: changes WiFi settings
README.md - Settings handlers → BLE keyboard: changes advertised name
README.md