# h9zdev/wiretapper architecture

> Architecture diagram of the GitHub repository h9zdev/wiretapper, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/h9zdev/wiretapper
- Repository: https://github.com/h9zdev/wiretapper

## Overview

WireTapper is a Flask-based wireless OSINT and signal-intelligence application. Users launch the web application, then query or scan nearby signals, inspect results, or import telemetry and manage ALPR datasets. The sampled app.py shows WiGLE-backed discovery, BLE scanning, geocoding, and IoT scanning; README capabilities add cellular, SDR, and credential-audit integrations. app.py is a substantial monolith, so several domain responsibilities share that path. The excerpts do not expose every route or integration; documented but unsampled capabilities are represented without speculative internal call chains.

Main entry points: [`app.py`](https://github.com/h9zdev/wiretapper/blob/main/app.py) (Web application), [`flock_manager.py`](https://github.com/h9zdev/wiretapper/blob/main/flock_manager.py) (ALPR dataset manager), [`cli.py`](https://github.com/h9zdev/wiretapper/blob/main/cli.py) (CLI launcher), [`telemetry_importer.py`](https://github.com/h9zdev/wiretapper/blob/main/telemetry_importer.py) (Telemetry import)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Application entry"]
  node_cli["CLI launcher<br/>[cli.py]"]
  node_flask["Web application<br/>[app.py]"]
end

subgraph group_discovery["Signal discovery"]
  node_wifi["Wi-Fi discovery<br/>[app.py]"]
  node_ble["BLE radar<br/>[app.py]"]
  node_iot["IoT scanning<br/>[app.py]"]
  node_sdr["SDR detection<br/>[app.py]"]
  node_cellular["Cellular lookup<br/>[app.py]"]
  node_geocode["Location geocoding<br/>[app.py]"]
end

subgraph group_datasets["Telemetry and datasets"]
  node_importer["Telemetry import"]
  node_flock["ALPR dataset manager<br/>[flock_manager.py]"]
  node_uploads[("Flock datasets")]
end

subgraph group_intelligence["External intelligence"]
  node_wigle{{"WiGLE"}}
  node_shodan{{"Shodan"}}
  node_censys{{"Censys"}}
  node_opencellid{{"OpenCellID"}}
  node_wpa_sec{{"wpa-sec"}}
  node_nominatim{{"Nominatim"}}
end

node_investigator(("Investigator"))

node_investigator -.->|"uses"| node_flask
node_cli -->|"starts"| node_flask
node_flask -.->|"serves"| node_wifi
node_flask -.->|"serves"| node_ble
node_flask -->|"scans"| node_iot
node_flask -.->|"checks"| node_sdr
node_flask -.->|"queries"| node_cellular
node_flask -->|"serves"| node_geocode
node_flask -->|"imports"| node_importer
node_flask -->|"imports"| node_flock
node_flask -->|"queries"| node_wigle
node_wifi -.->|"searches"| node_wigle
node_iot -.->|"searches"| node_shodan
node_iot -.->|"searches"| node_censys
node_cellular -.->|"queries"| node_opencellid
node_wifi -.->|"audits"| node_wpa_sec
node_geocode -->|"geocodes"| node_nominatim
node_flock -->|"reads and writes"| node_uploads

click node_cli "https://github.com/h9zdev/wiretapper/blob/main/cli.py"
click node_flask "https://github.com/h9zdev/wiretapper/blob/main/app.py"
click node_wifi "https://github.com/h9zdev/wiretapper/blob/main/app.py"
click node_ble "https://github.com/h9zdev/wiretapper/blob/main/app.py"
click node_iot "https://github.com/h9zdev/wiretapper/blob/main/app.py"
click node_sdr "https://github.com/h9zdev/wiretapper/blob/main/app.py"
click node_cellular "https://github.com/h9zdev/wiretapper/blob/main/app.py"
click node_geocode "https://github.com/h9zdev/wiretapper/blob/main/app.py"
click node_importer "https://github.com/h9zdev/wiretapper/blob/main/telemetry_importer.py"
click node_flock "https://github.com/h9zdev/wiretapper/blob/main/flock_manager.py"
click node_uploads "https://github.com/h9zdev/wiretapper/tree/main/uploads/flock"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_cli,node_flask toneBlue
class node_wifi,node_ble,node_iot,node_sdr,node_cellular,node_geocode toneAmber
class node_importer,node_flock,node_uploads toneMint
class node_wigle,node_shodan,node_censys,node_opencellid,node_wpa_sec,node_nominatim toneRose
class node_investigator toneIndigo
```

## Components

### Application entry

- [CLI launcher](https://github.com/h9zdev/wiretapper/blob/main/cli.py): `cli.py`
- [Web application](https://github.com/h9zdev/wiretapper/blob/main/app.py): `app.py`

### Signal discovery

- [Wi-Fi discovery](https://github.com/h9zdev/wiretapper/blob/main/app.py): `app.py`
- [BLE radar](https://github.com/h9zdev/wiretapper/blob/main/app.py): `app.py`
- [IoT scanning](https://github.com/h9zdev/wiretapper/blob/main/app.py): `app.py`
- [SDR detection](https://github.com/h9zdev/wiretapper/blob/main/app.py): `app.py`
- [Cellular lookup](https://github.com/h9zdev/wiretapper/blob/main/app.py): `app.py`
- [Location geocoding](https://github.com/h9zdev/wiretapper/blob/main/app.py): `app.py`

### Telemetry and datasets

- [Telemetry import](https://github.com/h9zdev/wiretapper/blob/main/telemetry_importer.py): `telemetry_importer.py`
- [ALPR dataset manager](https://github.com/h9zdev/wiretapper/blob/main/flock_manager.py): `flock_manager.py`
- [Flock datasets](https://github.com/h9zdev/wiretapper/tree/main/uploads/flock): `uploads/flock`

### External intelligence

- **WiGLE**
- **Shodan**
- **Censys**
- **OpenCellID**
- **wpa-sec**
- **Nominatim**

### Other components

- **Investigator**

## Connections

- Investigator → Web application: uses (evidence: `README.md`)
- CLI launcher → Web application: starts (evidence: `cli.py`)
- Web application → Wi-Fi discovery: serves (evidence: `README.md`)
- Web application → BLE radar: serves (evidence: `README.md`)
- Web application → IoT scanning: scans (evidence: `app.py`)
- Web application → SDR detection: checks (evidence: `README.md`)
- Web application → Cellular lookup: queries (evidence: `README.md`)
- Web application → Location geocoding: serves (evidence: `app.py`)
- Web application → Telemetry import: imports (evidence: `app.py`)
- Web application → ALPR dataset manager: imports (evidence: `app.py`)
- Web application → WiGLE: queries (evidence: `app.py`)
- Wi-Fi discovery → WiGLE: searches (evidence: `README.md`)
- IoT scanning → Shodan: searches (evidence: `README.md`)
- IoT scanning → Censys: searches (evidence: `README.md`)
- Cellular lookup → OpenCellID: queries (evidence: `README.md`)
- Wi-Fi discovery → wpa-sec: audits (evidence: `README.md`)
- Location geocoding → Nominatim: geocodes (evidence: `app.py`)
- ALPR dataset manager → Flock datasets: reads and writes (evidence: `flock_manager.py`)
