# daggersec/wifiphisher architecture

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

- Interactive diagram: https://gitdiagram.com/daggersec/wifiphisher
- Repository: https://github.com/daggersec/wifiphisher

## Overview

Wifiphisher is a Wi-Fi rogue-access-point and phishing framework. The tester launches the tool, selects or configures interfaces, targets, and a scenario, then the runtime performs wireless discovery and association disruption, starts a rogue AP, and serves a phishing page to connected clients. Client and request information can be tracked, while extensions add wireless techniques and monitoring. Edges reflect the sampled source references and README-described behavior; some extension and HTTP wiring is not shown in the excerpts, so those links are marked unverified.

Main entry points: [`wifiphisher/pywifiphisher.py`](https://github.com/daggersec/wifiphisher/blob/master/wifiphisher/pywifiphisher.py) (Runtime engine), [`wifiphisher/common/extensions.py`](https://github.com/daggersec/wifiphisher/blob/master/wifiphisher/common/extensions.py) (Extension manager), [`wifiphisher/common/recon.py`](https://github.com/daggersec/wifiphisher/blob/master/wifiphisher/common/recon.py) (Wi-Fi discovery), [`wifiphisher/common/phishinghttp.py`](https://github.com/daggersec/wifiphisher/blob/master/wifiphisher/common/phishinghttp.py) (Phishing server)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Runtime control"]
  node_engine["Runtime engine<br/>[pywifiphisher.py]"]
  node_tui["Interactive interface<br/>[tui.py]"]
  node_opmode["Mode selection<br/>[opmode.py]"]
end

subgraph group_wireless["Wireless operations"]
  node_interfaces["Interface manager<br/>[interfaces.py]"]
  node_recon["Wi-Fi discovery<br/>[recon.py]"]
  node_accesspoint["Rogue access point<br/>[accesspoint.py]"]
  node_firewall["Firewall control<br/>[firewall.py]"]
end

subgraph group_phishing["Phishing workflow"]
  node_templates["Template manager<br/>[phishingpage.py]"]
  node_scenarios["Phishing scenarios"]
  node_http["Phishing server<br/>[phishinghttp.py]"]
  node_victims[("Client tracking<br/>[victim.py]")]
end

subgraph group_extensions["Extensions"]
  node_extmanager["Extension manager<br/>[extensions.py]"]
  node_deauth["Deauthentication<br/>[deauth.py]"]
  node_knownbeacons["Known Beacons<br/>[knownbeacons.py]"]
  node_lure10["Lure10<br/>[lure10.py]"]
  node_handshake["Handshake verification<br/>[handshakeverify.py]"]
  node_wps["WPS monitoring<br/>[wpspbc.py]"]
  node_rogueinfo["AP information"]
end

node_tester(("Tester"))
node_clients(("Wireless clients"))

node_tester -->|"launches"| node_engine
node_engine -->|"invokes"| node_tui
node_engine -->|"configures"| node_opmode
node_engine -->|"starts"| node_interfaces
node_engine -->|"uses"| node_recon
node_engine -->|"starts"| node_accesspoint
node_engine -->|"uses"| node_firewall
node_engine -->|"starts"| node_extmanager
node_engine -->|"configures"| node_templates
node_engine -->|"uses"| node_http
node_engine -->|"tracks"| node_victims
node_recon -->|"uses"| node_interfaces
node_tui -->|"reads discoveries"| node_recon
node_templates -.->|"loads"| node_scenarios
node_clients -->|"associates"| node_accesspoint
node_clients -->|"requests pages"| node_http
node_http -->|"records clients"| node_victims
node_extmanager -->|"dispatches"| node_deauth
node_extmanager -.->|"loads"| node_knownbeacons
node_extmanager -.->|"loads"| node_lure10
node_extmanager -.->|"loads"| node_handshake
node_extmanager -.->|"loads"| node_wps
node_extmanager -.->|"loads"| node_rogueinfo

click node_engine "https://github.com/daggersec/wifiphisher/blob/master/wifiphisher/pywifiphisher.py"
click node_tui "https://github.com/daggersec/wifiphisher/blob/master/wifiphisher/common/tui.py"
click node_opmode "https://github.com/daggersec/wifiphisher/blob/master/wifiphisher/common/opmode.py"
click node_interfaces "https://github.com/daggersec/wifiphisher/blob/master/wifiphisher/common/interfaces.py"
click node_recon "https://github.com/daggersec/wifiphisher/blob/master/wifiphisher/common/recon.py"
click node_accesspoint "https://github.com/daggersec/wifiphisher/blob/master/wifiphisher/common/accesspoint.py"
click node_firewall "https://github.com/daggersec/wifiphisher/blob/master/wifiphisher/common/firewall.py"
click node_extmanager "https://github.com/daggersec/wifiphisher/blob/master/wifiphisher/common/extensions.py"
click node_deauth "https://github.com/daggersec/wifiphisher/blob/master/wifiphisher/extensions/deauth.py"
click node_knownbeacons "https://github.com/daggersec/wifiphisher/blob/master/wifiphisher/extensions/knownbeacons.py"
click node_lure10 "https://github.com/daggersec/wifiphisher/blob/master/wifiphisher/extensions/lure10.py"
click node_handshake "https://github.com/daggersec/wifiphisher/blob/master/wifiphisher/extensions/handshakeverify.py"
click node_wps "https://github.com/daggersec/wifiphisher/blob/master/wifiphisher/extensions/wpspbc.py"
click node_rogueinfo "https://github.com/daggersec/wifiphisher/blob/master/wifiphisher/extensions/roguehostapdinfo.py"
click node_templates "https://github.com/daggersec/wifiphisher/blob/master/wifiphisher/common/phishingpage.py"
click node_scenarios "https://github.com/daggersec/wifiphisher/tree/master/wifiphisher/data/phishing-pages"
click node_http "https://github.com/daggersec/wifiphisher/blob/master/wifiphisher/common/phishinghttp.py"
click node_victims "https://github.com/daggersec/wifiphisher/blob/master/wifiphisher/common/victim.py"

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_engine,node_tui,node_opmode,node_clients toneBlue
class node_interfaces,node_recon,node_accesspoint,node_firewall toneAmber
class node_templates,node_scenarios,node_http,node_victims toneMint
class node_extmanager,node_deauth,node_knownbeacons,node_lure10,node_handshake,node_wps,node_rogueinfo toneRose
class node_tester toneIndigo
```

## Components

### Runtime control

- [Runtime engine](https://github.com/daggersec/wifiphisher/blob/master/wifiphisher/pywifiphisher.py): `wifiphisher/pywifiphisher.py`
- [Interactive interface](https://github.com/daggersec/wifiphisher/blob/master/wifiphisher/common/tui.py): `wifiphisher/common/tui.py`
- [Mode selection](https://github.com/daggersec/wifiphisher/blob/master/wifiphisher/common/opmode.py): `wifiphisher/common/opmode.py`

### Wireless operations

- [Interface manager](https://github.com/daggersec/wifiphisher/blob/master/wifiphisher/common/interfaces.py): `wifiphisher/common/interfaces.py`
- [Wi-Fi discovery](https://github.com/daggersec/wifiphisher/blob/master/wifiphisher/common/recon.py): `wifiphisher/common/recon.py`
- [Rogue access point](https://github.com/daggersec/wifiphisher/blob/master/wifiphisher/common/accesspoint.py): `wifiphisher/common/accesspoint.py`
- [Firewall control](https://github.com/daggersec/wifiphisher/blob/master/wifiphisher/common/firewall.py): `wifiphisher/common/firewall.py`

### Phishing workflow

- [Template manager](https://github.com/daggersec/wifiphisher/blob/master/wifiphisher/common/phishingpage.py): `wifiphisher/common/phishingpage.py`
- [Phishing scenarios](https://github.com/daggersec/wifiphisher/tree/master/wifiphisher/data/phishing-pages): `wifiphisher/data/phishing-pages`
- [Phishing server](https://github.com/daggersec/wifiphisher/blob/master/wifiphisher/common/phishinghttp.py): `wifiphisher/common/phishinghttp.py`
- [Client tracking](https://github.com/daggersec/wifiphisher/blob/master/wifiphisher/common/victim.py): `wifiphisher/common/victim.py`

### Extensions

- [Extension manager](https://github.com/daggersec/wifiphisher/blob/master/wifiphisher/common/extensions.py): `wifiphisher/common/extensions.py`
- [Deauthentication](https://github.com/daggersec/wifiphisher/blob/master/wifiphisher/extensions/deauth.py): `wifiphisher/extensions/deauth.py`
- [Known Beacons](https://github.com/daggersec/wifiphisher/blob/master/wifiphisher/extensions/knownbeacons.py): `wifiphisher/extensions/knownbeacons.py`
- [Lure10](https://github.com/daggersec/wifiphisher/blob/master/wifiphisher/extensions/lure10.py): `wifiphisher/extensions/lure10.py`
- [Handshake verification](https://github.com/daggersec/wifiphisher/blob/master/wifiphisher/extensions/handshakeverify.py): `wifiphisher/extensions/handshakeverify.py`
- [WPS monitoring](https://github.com/daggersec/wifiphisher/blob/master/wifiphisher/extensions/wpspbc.py): `wifiphisher/extensions/wpspbc.py`
- [AP information](https://github.com/daggersec/wifiphisher/blob/master/wifiphisher/extensions/roguehostapdinfo.py): `wifiphisher/extensions/roguehostapdinfo.py`

### Other components

- **Tester**
- **Wireless clients**

## Connections

- Tester → Runtime engine: launches (evidence: `README.md`)
- Runtime engine → Interactive interface: invokes (evidence: `wifiphisher/pywifiphisher.py`)
- Runtime engine → Mode selection: configures (evidence: `wifiphisher/pywifiphisher.py`)
- Runtime engine → Interface manager: starts (evidence: `wifiphisher/pywifiphisher.py`)
- Runtime engine → Wi-Fi discovery: uses (evidence: `wifiphisher/pywifiphisher.py`)
- Runtime engine → Rogue access point: starts (evidence: `wifiphisher/pywifiphisher.py`)
- Runtime engine → Firewall control: uses (evidence: `wifiphisher/pywifiphisher.py`)
- Runtime engine → Extension manager: starts (evidence: `wifiphisher/pywifiphisher.py`)
- Runtime engine → Template manager: configures (evidence: `wifiphisher/pywifiphisher.py`)
- Runtime engine → Phishing server: uses (evidence: `wifiphisher/pywifiphisher.py`)
- Runtime engine → Client tracking: tracks (evidence: `wifiphisher/pywifiphisher.py`)
- Wi-Fi discovery → Interface manager: uses (evidence: `wifiphisher/common/recon.py`)
- Interactive interface → Wi-Fi discovery: reads discoveries (evidence: `wifiphisher/common/tui.py`)
- Template manager → Phishing scenarios: loads (evidence: `README.md`)
- Wireless clients → Rogue access point: associates (evidence: `README.md`)
- Wireless clients → Phishing server: requests pages (evidence: `README.md`)
- Phishing server → Client tracking: records clients (evidence: `wifiphisher/common/phishinghttp.py`)
- Extension manager → Deauthentication: dispatches (evidence: `wifiphisher/common/extensions.py`)
- Extension manager → Known Beacons: loads
- Extension manager → Lure10: loads
- Extension manager → Handshake verification: loads (evidence: `wifiphisher/extensions/handshakeverify.py`)
- Extension manager → WPS monitoring: loads (evidence: `wifiphisher/extensions/wpspbc.py`)
- Extension manager → AP information: loads
