colonelpanichacks/oui-spy-unified-blue
소개
Unified OUI Spy ESP32 firmware — detector, flockyou, foxhunter, skyspy in one build
기타 프로젝트측정된 스타 증가
- in 24h
- +1
- in 7 days
- +2
- in 15 days
- +7
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalOUI SPY
Multi-mode surveillance detection and BLE intelligence firmware for the Seeed Studio XIAO ESP32-S3.
One device. Seven firmware modes. Select from a boot menu, reboot, and go.
Web Flasher
Flash straight from the browser — no Python, no PlatformIO, no drivers to think about:
https://colonelpanichacks.github.io/oui-spy-unified-blue/
Chrome, Edge, or Opera on desktop (Web Serial API). Plug in the XIAO ESP32-S3 with a USB-C data cable, click Connect & Flash, pick the serial port. The page always serves the latest firmware committed to master.
The page has two tabs. App version (recommended) installs the firmware for the OUI SPY Recon app, your OUI SPY's screen on Android and macOS. OUI SPY Unified Blue installs this firmware: the seven modes and their boot menu, no app. The App version is the page's front (colonelpanichacks.github.io/oui-spy-unified-blue), and Unified Blue has its own page (colonelpanichacks.github.io/oui-spy-unified-blue/unified-blue).
Remote mesh nodes
The App version also makes an OUI SPY a remote node of your fleet: a board with no phone of its own that reports over the long-range ESP-NOW mesh to the board on your phone, where the app runs the whole fleet. Pick what it will be before you install:
| Pick | What it does |
|---|---|
| OUI SPY for the app (default) | Every mode, switched from the app, which is its screen. The board on your phone, and the fleet's home. |
| Detector (remote node) | Watches for the device signatures the app sends it and reports every hit over the mesh. |
| Sky-Spy (remote node) | Drone Remote ID: every drone it hears and its pilot, over the mesh. |
| Wardriver (remote node) | Logs every Wi-Fi network and Bluetooth device it hears and shares them over the mesh. |
After a remote node installs, the page sets it up over the same USB cable: its mesh channel, the fleet key (typed or generated on the page, sent only over USB to the node, shown afterwards only as its fingerprint) and an optional name, and it can lock the node so it starts in the mesh after every power cut. Every node of a fleet needs the same channel and the same fleet key, the board on your phone too (in the app: Fleet > Board > Mesh). From then on the app lists the node under Fleet, sends it filters and updates its firmware over the mesh. Links: #detector, #skyspy, #wardrive open the page on that node.
The remote node builds are the OUI-SPY Detector family, the same images the app carries to update them over the mesh. They speak the same mesh as the OUI SPY app firmware and the OUI SPY Recon: one fleet, one key.
Quick Connect
On first boot, connect to the selector AP to pick a firmware mode:
SSID:
oui-spy| Password:ouispy123| Dashboard:192.168.4.1
Modes
Mode 1: Detector
BLE alert tool that continuously scans for specific target devices by OUI prefix, MAC address, and device name patterns. When a match is found, the device triggers audible and visual alerts. Configurable target lists via web interface.
- AP:
snoopuntothem/astheysnoopuntous - Scans BLE advertisements against user-configured watchlists
- NeoPixel + buzzer feedback on detection
- Web dashboard for managing targets and viewing scan results
Six signature classes. OUI prefix and full MAC are typed into the config boxes. Company ID, 16-bit service UUID, device-name substring, and the Meta composite cannot be expressed as text and are installed from the OUI Database.
OUI Database. A browsable list of known surveillance hardware — RING, AXON, FLOCK SAFETY, DJI, PARROT, SKYDIO, META / RAY-BAN — each with prefixes, category, and typical devices. AXON carries more than OUIs, so its button reads + Add all signatures:
| Vendor | Signatures |
|---|---|
| AXON | OUI 00:25:DF, company ID 0x034D (TASER International), service UUIDs 0xFC81, 0xFE6B, 0xFE6C (BT SIG member registry) |
| META / RAY-BAN | Composite: company ID 0x0D53 + service UUID 0xFD5F in the same advert, or name Ray-Ban / Wayfarer / Oakley Meta |
OUIs alone are the weakest signal — Axon hardware may never expose its OUI
in an advertisement, so the company ID and service UUIDs do most of the work.
Each added vendor renders one colour-coded line under the OUI box with an
x to remove. Manual OUI entry is unaffected.
Meta / Ray-Ban detection. META / RAY-BAN has its own OUI-Database
card whose button reads + Add composite signature. The glasses use RPA
(rotating random MAC per BT spec), so OUI-based matching is pure noise, and
CID-only or svc-UUID-only filters are false-positive magnets (0xFD5F is
advertised by phones running Meta apps). The preset installs a single
composite filter that fires only when either: mfr company ID 0x0D53
(Luxottica) AND service UUID 0xFD5F (Meta) are present in the same advert,
or the complete local name contains Ray-Ban, Wayfarer, or Oakley Meta.
Hits render with a red-pink META badge (red-pink signature line) and are
logged with match_method: "meta_composite". Not installed = no Meta
detection: remove it with the x on its signature line, or wipe it via
Clear All Filters. Manually adding 0x0D53, 0xFD5F, or a Luxottica MAC
via the target config UI still triggers via the normal single-signature
filter path with its normal badge.
Burn-in is reversible. Locking the config disables the AP permanently, but holding BOOT during power-on clears the lock and restores config mode. Older firmware claimed a reflash would unlock it — it does not, NVS survives a reflash.
Mode 2: Foxhunter
RSSI-based proximity tracker for hunting down a specific BLE device. Lock onto a target MAC address, then follow the signal strength. The buzzer cadence increases as you get closer — like a Geiger counter for Bluetooth.
- AP:
foxhunter - Select target from live BLE scan or enter MAC manually
- Audio feedback rate scales inversely with distance
- Web interface for target selection and RSSI monitoring
Mode 3: Flock-You — Promiscuous WiFi Edition
Passive 2.4 GHz promiscuous-mode detector for Flock Safety surveillance infrastructure. No AP, no transmit — the radio stays dedicated to sniffing while the device hops channels 1 / 6 / 11 at 350 ms dwell. Detections beep, flash, persist to SPIFFS with a CRC envelope, and stream over USB-CDC for live ingestion by the Flask dashboard at colonelpanichacks/flock-you.
This is a port of the promiscious branch of flock-you — see that repo for the full research write-up and the Flask side.
Detection methods (WiFi only):
Detection uses a union signature set combining community field research and a real Flock Safety ALPR camera firmware dump (Qualcomm MSM8953 + QCA9377, Android 8.1, codename hpnotiq):
- addr2 OUI match — transmitter-side match against 34 OUIs: 32 community prefixes (@NitekryDPaul 2026-07-16 +
82:6b:f2from DeFlockJoplin) plusb4:1e:52(Flock Safety IEEE MA-L) and00:03:7f(Qualcomm Atheros QCA9377 default radio MACs). - addr1 OUI match — receiver-side technique: catches Flock STAs that appear only as the destination of probe responses or data frames during burst-sleep windows.
- Wildcard probe + IE fingerprint (tier 4) — Probe Request + zero-length SSID IE + known OUI + community LiteON/DeFlockJoplin IE signature. Tier 3 fires when IE does not match.
- BLE advert match (passive NimBLE, in-firmware) — Penguin battery name/serial, mfg company ID
0x09C8, Flock/Raven GATT service UUIDs. 10% duty cycle so WiFi keeps priority.
Features:
- No AP — radio is dedicated to promiscuous sniffing
- Audible alerts: two-chirp on new MAC, monotone heartbeat while target stays in range
- SPIFFS-persisted session with atomic CRC envelope; previous-boot data is preserved
- USB-CDC command protocol so the host can pull stored detections without re-flashing:
CMD:DUMP_PREV— streams the previous session from/prev_session.jsonas replay-flagged JSONCMD:DUMP_LIVE— streams the in-RAM detection tableCMD:STATUS/CMD:VERSION— device telemetry and firmware identifierCMD:CLEAR_PREV/CMD:CLEAR_LIVE— wipe persisted or in-memory state
- Flask-compatible JSON line per detection on Serial (same schema as the BLE companion)
Companion dashboard: api/flockyou.py in colonelpanichacks/flock-you exposes the command protocol as REST endpoints — /api/flock/{status,version,dump_prev,dump_live,clear_prev,clear_live} — and surfaces them in the web UI as a five-button Sniffer command bar (Pull Prev, Pull Live, Status, Clear Prev, Clear Live) that appears once the device is connected.
Replayed detections show up in the detection list with a purple FLASH badge (from SPIFFS) or blue RAM badge (from the in-memory table), a tinted left border, and timestamp_source: device_replay. They don't get GPS temporal matching (the device's stored entries only have monotonic millis, not wall-clock) and never overwrite a fresher live entry for the same MAC. Every command response surfaces as a coloured top-right toast.
The canonical "plug device back in after wardriving" workflow from a terminal:
curl -X POST http://localhost:5000/api/flock/dump_prev
curl -X POST http://localhost:5000/api/flock/clear_prev
Full dashboard docs (endpoints, socket events, JSON wire formats, GPS setup, persistence layout, troubleshooting): colonelpanichacks/flock-you/api/README.md.
Mode 4: PCAP
Passive WiFi packet capture. Fills the slot vacated by the retired Flock-You BLE mode. Hosts a live web dashboard on ouispy-pcap / packetsniffer and keeps a rolling 2 MB in-PSRAM session pcap (linktype 127, IEEE 802.11 with radiotap) that the browser can download at any time via Save PCAP.
- AP:
ouispy-pcap/packetsniffer(configurable from the dashboard, stored in the mode's own NVS namespacepcap-mode) - Dashboard at
http://192.168.4.1— live packet table, vendor colouring (RING / AXON / FLOCK / DJI / PARROT / SKYDIO / META), chip filters, per-frame CSV snapshot, and one-click session PCAP download - Two channel modes: locked (AP + one channel) or hop (STA, no AP, cycles a user-selected 2.4 GHz channel mask with configurable dwell)
- USB-CDC output: human-readable one-line summaries per frame (scriptable)
- USB-CDC command protocol:
CMD:STATUS,CMD:VERSION,CMD:CHAN <n>,CMD:HOP 0x0422,CMD:DWELL <ms> - The USB PCAP binary streaming path (previously extcap / pipe helpers) has been removed — ESP32-S3 Arduino USB CDC is not reliable for high-rate binary streaming. Use the dashboard Save PCAP button instead; the download parses cleanly in Wireshark regardless of capture rate.
Mode 5: Sky Spy
Numbering note: Sky Spy keeps its original number 5 (retained after the Flock-You BLE mode was retired) so devices with a mode already saved to NVS keep booting into the mode they were set to. Mode 4 is now PCAP.
Passive drone detection via FAA Remote ID (Open Drone ID) WiFi beacon monitoring. Listens in promiscuous mode for ASTM F3411 compliant broadcasts and extracts drone telemetry.
- Captures drone serial numbers, operator/UAV IDs
- Tracks location (lat/lon), altitude, ground speed, heading
- Parses all ODID message types: Basic ID, Location, Authentication, Self-ID, System, Operator ID
- Real-time logging of all detected drones
- Dedicated FreeRTOS buzzer task for non-blocking audio alerts
Mode 6: BLE Sniff
Passive BLE advertising capture. Listens on the three BLE advertising channels (37 / 38 / 39) via NimBLE, hosts a live web dashboard on ouispy-blesniff / sniffuntothem, and keeps a rolling 2 MB in-PSRAM session pcap (LINKTYPE_BLUETOOTH_LE_LL_WITH_PHDR, linktype 256) that the browser can download at any time via Save PCAP.
Scope: advertisements only. This mode does not capture connected-device (LL data channel) traffic — it observes the same broadcasts a phone sees while scanning, no more.
- AP:
ouispy-blesniff/sniffuntothem(configurable from the dashboard, stored in the mode's own NVS namespaceblesniff) - Dashboard at
http://192.168.4.1— live packet table, vendor chips (RING / AXON / FLOCK / DJI / PARROT / SKYDIO / META), advert-type + address-type + trait chip filters, per-frame CSV snapshot, and one-click session PCAP download - USB-CDC output: human-readable one-line summaries per advert (scriptable)
- Passive receive only —
setActiveScan(false)means the radio never transmits aSCAN_REQ - Scan defaults:
window=30ms,interval=100ms(leaves ~70% of the radio for WiFi coexistence so the AP stays reachable while scanning) - USB-CDC command protocol:
CMD:STATUS,CMD:VERSION,CMD:WINDOW <ms>,CMD:INTERVAL <ms> - Vendor identify against the OUI Database (same list surfaced by PCAP and Detector)
- The USB PCAP binary streaming path (previously extcap / pipe helpers) has been removed — ESP32-S3 Arduino USB CDC is not reliable for high-rate binary streaming. Use the dashboard Save PCAP button instead; the download parses cleanly in Wireshark regardless of capture rate.
Mode 7: AXEOFF
Headless Axon detector. No AP, no dashboard, no config — power on, hear four ascending beeps, and the board is already scanning for Axon gear. The buzzer is the entire UX. Port of the standalone axeoff firmware; same signatures, same audio semantics.
- Detects: BLE MAC prefix
00:25:DF, mfr company ID0x034D(TASER International), service UUIDs0xFC81/0xFE6B/0xFE6C, WiFi probe + beacon from OUI00:25:DF - Fully passive — BLE passive scan (no
SCAN_REQ) + WiFi promiscuous listen only; the radio never transmits - Sounds: boot = 4 ascending beeps · detection = 8-bit ascending arpeggio · heartbeat = lub-dub whose rate encodes proximity (~2 s far → ~250 ms close) · lost = descending 2-beep
- Tracks up to 8 Axon MACs; serial debug at 115200 (
=== AXEOFF — Axon detector ===)
WiFi Access Points
Each mode creates its own AP. When switching modes, your phone/laptop will auto-reconnect to the last saved network, which may be the wrong mode's AP. To avoid confusion:
- Forget the previous mode's network before switching, or
- Disable auto-connect/auto-reconnect for all OUI-SPY networks in your WiFi settings
| Mode | SSID | Password | Dashboard | Notes |
|---|---|---|---|---|
| Boot Selector | oui-spy |
ouispy123 |
192.168.4.1 |
Configurable from selector UI, saved to NVS |
| Detector | snoopuntothem |
astheysnoopuntous |
192.168.4.1 |
Configurable from web dashboard, saved to NVS |
| Foxhunter | foxhunter |
foxhunter |
192.168.4.1 |
Fixed credentials |
| Flock-You WiFi | none | — | — | No AP — radio is dedicated to promiscuous sniffing; talk to it via USB-CDC commands and the Flask dashboard |
| PCAP | ouispy-pcap |
packetsniffer |
192.168.4.1 |
Configurable from mode dashboard, saved to NVS. Hop mode disables the AP — radio is dedicated to sniffing; use USB-CDC then |
| Sky Spy | none | — | — | No AP — passive scanner, serial JSON output only |
| BLE Sniff | ouispy-blesniff |
sniffuntothem |
192.168.4.1 |
Configurable from mode dashboard, saved to NVS |
| AXEOFF | none | — | — | No AP — fully passive headless detector; buzzer-only UI, serial debug at 115200 |
Tip: If you can't reach the dashboard after a mode switch, check which WiFi network you're connected to. Your device may have auto-joined a previously saved OUI-SPY AP from a different mode.
Hardware
Board: Seeed Studio XIAO ESP32-S3
| Pin | Function |
|---|---|
| GPIO 3 | Piezo buzzer |
| GPIO 21 | NeoPixel LED |
| GPIO 0 | BOOT button (hold 1.5s to return to mode selector) |
Boot Selector
On power-up, the device starts a WiFi access point (oui-spy / ouispy123 by default) and serves a firmware selector at 192.168.4.1. Pick a mode, the device stores the selection in NVS, and reboots into it.
- Return to menu: Hold the BOOT button for 1.5 seconds at any time
- AP credentials: Configurable SSID and password from the selector page, stored in NVS
- Buzzer toggle: Enable/disable the boot buzzer globally from the selector menu
- MAC randomization: Device MAC is randomized on every boot
- Boot sounds: Each mode plays its own distinct tone sequence on startup — modulated sweeps, retro melodies, and other piezo-buzzer tributes to let you know which firmware you're in before the screen is even up
Flashing
Everything you need to flash a board is included in the repo. No PlatformIO or build tools required -- just Python and a USB cable.
What You Need
- Python 3.8 or newer -- download here if you don't have it
- Windows: check "Add Python to PATH" during install
- macOS:
brew install python3or use the installer from python.org - Linux:
sudo apt install python3 python3-pip
- USB-C data cable -- must be a data cable, not a charge-only cable
- USB drivers (if your OS doesn't auto-detect the board):
Step 1: Install Dependencies
pip install -r requirements.txt
Or manually:
pip install esptool pyserial
Note: On some systems you may need to use
pip3instead ofpip, andpython3instead ofpython.
Step 2: Flash a Single Board
- Plug in your XIAO ESP32-S3 via USB-C
- Run:
python3 flash.py
- The script auto-detects your board and the firmware
- Type
yand press Enter to confirm - Wait for "Done!" -- the board reboots automatically and plays a boot melody
Step 3: Verify It Worked
After a successful flash, the board reboots automatically. Here's how to confirm it's working:
- Listen for 4 ascending beeps -- this is the boot confirmation sound. If you hear it, the firmware is running.
- On your phone or laptop, look for the WiFi network
oui-spy - Connect with password
ouispy123 - Open http://192.168.4.1 in your browser
- You should see the mode selector dashboard
No beeps? The board may not have flashed correctly. Try flashing again with
python3 flash.py --eraseto do a full erase first.
Batch Mode (Multiple Boards)
For flashing many boards in a row. Fully hands-free -- no button presses or typing between boards.
python3 flash.py --batch
How it works:
- The script starts and waits for a board
- Plug in a board -- it is detected and flashed automatically
- Wait for the board to reboot -- listen for 4 ascending beeps. That's your confirmation the flash was successful and the firmware is running.
- Unplug the board and plug in the next one -- flashing starts automatically
- Repeat until all boards are done
- Press Ctrl+C to stop
The script never times out. It will wait as long as needed for the next board. It also tracks how many boards were flashed successfully vs. failed.
Quick test cycle: Plug in -> auto-flash -> hear 4 beeps -> unplug -> next board. That's it.
To erase flash completely before writing (clean slate, recommended for first-time flash):
python3 flash.py --batch --erase
What Gets Flashed
The flasher writes all four binary files from the firmware/ folder in one shot:
| File | Offset | Purpose |
|---|---|---|
bootloader.bin |
0x0000 |
ESP32-S3 bootloader |
partitions.bin |
0x8000 |
Partition table |
boot_app0.bin |
0xe000 |
OTA data partition |
oui-spy-unified-blue.bin |
0x10000 |
Application firmware |
All four files must be present in the firmware/ folder. The script will warn you if any are missing.
All Options
python3 flash.py # flash one board (interactive)
python3 flash.py --erase # full erase before flashing
python3 flash.py --batch # batch mode: hands-free, auto-detect
python3 flash.py --batch --erase # batch + erase (production runs)
python3 flash.py my_firmware.bin # flash a specific .bin file
python3 flash.py --help # show help
Troubleshooting
| Problem | Fix |
|---|---|
python: command not found |
Use python3 instead of python |
esptool not found |
Run pip install esptool pyserial (or pip3) |
| No port detected | Check USB cable is a data cable (not charge-only). Install CH340/CP210x drivers. Try a different USB port. |
| Board doesn't boot after flash | Make sure all 4 .bin files are in firmware/. Try python3 flash.py --erase to do a full erase first. |
| Multiple serial devices detected | In single mode, the script lets you pick. In batch mode, it auto-selects. Unplug other USB serial devices if you get unexpected behavior. |
| Permission denied on serial port | Linux: sudo usermod -a -G dialout $USER then log out and back in. macOS: should work out of the box. |
Building from Source
Only needed if you want to modify the firmware. Requires PlatformIO.
pio run # build
pio run -t upload # flash directly
pio device monitor # serial output (115200 baud)
The build output lands in .pio/build/seeed_xiao_esp32s3/firmware.bin. To use the flasher script instead, copy the build artifacts into firmware/:
cp .pio/build/seeed_xiao_esp32s3/bootloader.bin firmware/
cp .pio/build/seeed_xiao_esp32s3/partitions.bin firmware/
cp ~/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin firmware/
cp .pio/build/seeed_xiao_esp32s3/firmware.bin firmware/oui-spy-unified-blue.bin
Build dependencies (managed by PlatformIO):
NimBLE-Arduino-- BLE scanningESP Async WebServer+AsyncTCP-- web interfacesArduinoJson-- JSON serializationAdafruit NeoPixel-- LED control
Flash layout: Custom partition table with ~6MB app + ~2MB LittleFS data. See partitions.csv.
Acknowledgments
Thanks and a shout-out to:
- DeFlock Joplin, for the wildcard probe-request detection research.
- NitekryDPaul, for the many OUI submissions: nite-oui-collection.
- WiGLE, the wardriving database the OUI SPY Recon app uploads to.
- cybertiger at the EFF.
Shout-outs to the wrew, dz_az, h4d35x0 and Luke Switzer.
Will Greenberg (@wgreenberg) — His flock-you fork was instrumental in improving the Flock Safety detection heuristics. The BLE manufacturer company ID detection method (0x09C8 XUNTONG) was sourced directly from his work and shipped in the Flock-You BLE mode; that mode has since been retired in favour of the promiscuous WiFi edition, but the structured pattern-management approach it introduced still informs the detection architecture. Thank you for the research and for making it open.
OUI-SPY Firmware Ecosystem
Each firmware is available as a standalone project:
| Firmware | Description | Board |
|---|---|---|
| OUI-SPY Unified | Multi-mode BLE + WiFi detector (this project) | ESP32-S3 / ESP32-C5 |
| OUI-SPY Detector | Targeted BLE scanner with OUI filtering | ESP32-S3 |
| OUI-SPY Foxhunter | RSSI-based proximity tracker | ESP32-S3 |
| Flock You | Flock Safety / Raven surveillance detection | ESP32-S3 |
| AXEOFF | Headless Axon surveillance detector (beep-only) | ESP32-S3 |
| Sky-Spy | Drone Remote ID detection | ESP32-S3 / ESP32-C5 |
| Remote-ID-Spoofer | WiFi Remote ID spoofer & simulator with swarm mode | ESP32-S3 |
| OUI-SPY UniPwn | Unitree robot exploitation system | ESP32-S3 |
Author
colonelpanichacks
Disclaimer
For research purposes only. Use at your own risk: you assume all responsibility for how you use it, and the authors accept no liability. Provided as is, with no warranty. Follow your local laws, and don't do anything illegal or stupid.
License
MIT, see LICENSE. The bundled OpenDroneID files (opendroneid.c, opendroneid.h, odid_wifi.h, wifi.c) are Copyright Intel Corporation and stay under the Apache License 2.0, as their headers state. The UniPwn mode (src/raw/unipwn_web.cpp) is based on Bin4ry/UniPwn, which publishes no software license; parts derived from it stay under its author's terms.
관련 프로젝트 살펴보기
불러오는 중…