# oyi77/wifi-jammer architecture

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

- Interactive diagram: https://gitdiagram.com/oyi77/wifi-jammer
- Repository: https://github.com/oyi77/wifi-jammer

## Overview

WiFi Jammer is an educational WiFi security-testing application with CLI, terminal UI, and Qt GUI front ends. The main workflow is to choose an interface, scan networks and optionally discover clients, configure an attack, create its strategy, then execute and monitor it. Platform-specific interface handling supports scanning and packet-injection capabilities; documented attack options include flooding, channel hopping, handshake capture, evil-twin, and selective client attacks. Some feature links rely on README statements because their implementation files were not sampled.

Main entry points: [`wifi_jammer/scanner/network_scanner.py`](https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/scanner/network_scanner.py) (Network scanner), [`wifi_jammer/cli_session.py`](https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/cli_session.py) (CLI session), [`wifi_jammer/core/platform/factory.py`](https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/core/platform/factory.py) (Platform factory), [`wifi_jammer/cli.py`](https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/cli.py) (CLI commands)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interfaces["User interfaces"]
  node_cli["CLI commands<br/>[cli.py]"]
  node_cli_session["CLI session<br/>[cli_session.py]"]
  node_cli_display["Progress display<br/>[cli_display.py]"]
  node_tui["Terminal UI<br/>[tui.py]"]
  node_tui_screens["TUI screens<br/>[tui_screens.py]"]
  node_gui["Qt main window<br/>[main_window.py]"]
  node_gui_scanner["GUI scan widget"]
  node_gui_config["GUI attack config"]
  node_gui_progress["GUI progress"]
end

subgraph group_workflow["Scan and configure"]
  node_scanner["Network scanner<br/>[network_scanner.py]"]
  node_client_scanner["Client discovery<br/>[client_scanner.py]"]
  node_packet_processor["Frame parsing"]
  node_scan_state[("Scan state<br/>[scan_state.py]")]
  node_config["Configuration<br/>[config.py]"]
  node_interfaces_contracts["Domain contracts<br/>[interfaces.py]"]
end

subgraph group_attacks["Attack execution"]
  node_attack_factory["Attack factory<br/>[attack_factory.py]"]
  node_base_attack["Attack runtime<br/>[base_attack.py]"]
  node_attack_types["Attack strategies"]
end

subgraph group_platform["Platform and utilities"]
  node_platform_factory["Platform factory<br/>[factory.py]"]
  node_platform_contract["Platform contract<br/>[base_types.py]"]
  node_linux["Linux interface<br/>[linux_interface.py]"]
  node_macos["macOS interface<br/>[macos_interface.py]"]
  node_windows["Windows interface"]
  node_platform_shim["Platform API"]
  node_logger["Logging<br/>[logger.py]"]
  node_platform_utils["Platform utilities<br/>[platform_utils.py]"]
  node_validators["Input validation<br/>[validators.py]"]
  node_warning_suppression["Warning handling"]
  node_python_detector["Python detection<br/>[python_detector.py]"]
  node_crypto["Modern crypto<br/>[modern_crypto.py]"]
end

node_user(("Operator"))

node_user -->|"invokes"| node_cli
node_user -->|"launches"| node_tui
node_user -->|"launches"| node_gui
node_cli -->|"delegates"| node_cli_session
node_cli_session -->|"scans with"| node_scanner
node_cli_session -->|"creates attack"| node_attack_factory
node_cli_session -->|"renders progress"| node_cli_display
node_cli_session -->|"discovers clients"| node_client_scanner
node_tui -->|"uses screens"| node_tui_screens
node_gui -->|"uses"| node_gui_scanner
node_gui -->|"uses"| node_gui_config
node_gui -->|"uses"| node_gui_progress
node_gui_scanner -->|"scans with"| node_scanner
node_gui_config -->|"configures"| node_interfaces_contracts
node_scanner -->|"parses frames"| node_packet_processor
node_scanner -->|"updates"| node_scan_state
node_scanner -->|"delegates"| node_client_scanner
node_cli -->|"loads settings"| node_config
node_attack_factory -->|"selects strategy"| node_attack_types
node_attack_types -->|"extends runtime"| node_base_attack
node_base_attack -->|"sets interface mode"| node_platform_shim
node_base_attack -->|"logs events"| node_logger
node_base_attack -->|"validates config"| node_validators
node_platform_shim -->|"re-exports"| node_platform_factory
node_platform_factory -->|"uses contract"| node_platform_contract
node_platform_factory -->|"selects"| node_linux
node_platform_factory -->|"selects"| node_macos
node_platform_factory -->|"selects"| node_windows
node_scanner -->|"queries platform"| node_platform_shim
node_scanner -->|"checks platform"| node_platform_utils
node_client_scanner -->|"configures interface"| node_platform_shim
node_client_scanner -->|"gets device MAC"| node_platform_utils
node_cli -->|"sets up"| node_warning_suppression
node_tui -->|"detects interpreter"| node_python_detector

click node_cli "https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/cli.py"
click node_cli_session "https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/cli_session.py"
click node_cli_display "https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/cli_display.py"
click node_tui "https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/tui.py"
click node_tui_screens "https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/tui_screens.py"
click node_gui "https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/gui/main_window.py"
click node_gui_scanner "https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/gui/network_scanner_widget.py"
click node_gui_config "https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/gui/attack_config_widget.py"
click node_gui_progress "https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/gui/progress_monitor_widget.py"
click node_scanner "https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/scanner/network_scanner.py"
click node_client_scanner "https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/scanner/client_scanner.py"
click node_packet_processor "https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/scanner/packet_processor.py"
click node_scan_state "https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/scanner/scan_state.py"
click node_config "https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/config.py"
click node_interfaces_contracts "https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/core/interfaces.py"
click node_attack_factory "https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/factory/attack_factory.py"
click node_base_attack "https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/attacks/base_attack.py"
click node_attack_types "https://github.com/oyi77/wifi-jammer/tree/main/wifi_jammer/attacks"
click node_platform_factory "https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/core/platform/factory.py"
click node_platform_contract "https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/core/platform/base_types.py"
click node_linux "https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/core/platform/linux_interface.py"
click node_macos "https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/core/platform/macos_interface.py"
click node_windows "https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/core/platform/windows_interface.py"
click node_platform_shim "https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/core/platform_interface.py"
click node_logger "https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/utils/logger.py"
click node_platform_utils "https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/utils/platform_utils.py"
click node_validators "https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/utils/validators.py"
click node_warning_suppression "https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/utils/warning_suppressor.py"
click node_python_detector "https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/utils/python_detector.py"
click node_crypto "https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/utils/modern_crypto.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_cli,node_cli_session,node_cli_display,node_tui,node_tui_screens,node_gui,node_gui_scanner,node_gui_config,node_gui_progress toneBlue
class node_scanner,node_client_scanner,node_packet_processor,node_scan_state,node_config,node_interfaces_contracts toneAmber
class node_attack_factory,node_base_attack,node_attack_types toneMint
class node_platform_factory,node_platform_contract,node_linux,node_macos,node_windows,node_platform_shim,node_logger,node_platform_utils,node_validators,node_warning_suppression,node_python_detector,node_crypto toneRose
class node_user toneIndigo
```

## Components

### User interfaces

- [CLI commands](https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/cli.py): `wifi_jammer/cli.py`
- [CLI session](https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/cli_session.py): `wifi_jammer/cli_session.py`
- [Progress display](https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/cli_display.py): `wifi_jammer/cli_display.py`
- [Terminal UI](https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/tui.py): `wifi_jammer/tui.py`
- [TUI screens](https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/tui_screens.py): `wifi_jammer/tui_screens.py`
- [Qt main window](https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/gui/main_window.py): `wifi_jammer/gui/main_window.py`
- [GUI scan widget](https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/gui/network_scanner_widget.py): `wifi_jammer/gui/network_scanner_widget.py`
- [GUI attack config](https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/gui/attack_config_widget.py): `wifi_jammer/gui/attack_config_widget.py`
- [GUI progress](https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/gui/progress_monitor_widget.py): `wifi_jammer/gui/progress_monitor_widget.py`

### Scan and configure

- [Network scanner](https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/scanner/network_scanner.py): `wifi_jammer/scanner/network_scanner.py`
- [Client discovery](https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/scanner/client_scanner.py): `wifi_jammer/scanner/client_scanner.py`
- [Frame parsing](https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/scanner/packet_processor.py): `wifi_jammer/scanner/packet_processor.py`
- [Scan state](https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/scanner/scan_state.py): `wifi_jammer/scanner/scan_state.py`
- [Configuration](https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/config.py): `wifi_jammer/config.py`
- [Domain contracts](https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/core/interfaces.py): `wifi_jammer/core/interfaces.py`

### Attack execution

- [Attack factory](https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/factory/attack_factory.py): `wifi_jammer/factory/attack_factory.py`
- [Attack runtime](https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/attacks/base_attack.py): `wifi_jammer/attacks/base_attack.py`
- [Attack strategies](https://github.com/oyi77/wifi-jammer/tree/main/wifi_jammer/attacks): `wifi_jammer/attacks`

### Platform and utilities

- [Platform factory](https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/core/platform/factory.py): `wifi_jammer/core/platform/factory.py`
- [Platform contract](https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/core/platform/base_types.py): `wifi_jammer/core/platform/base_types.py`
- [Linux interface](https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/core/platform/linux_interface.py): `wifi_jammer/core/platform/linux_interface.py`
- [macOS interface](https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/core/platform/macos_interface.py): `wifi_jammer/core/platform/macos_interface.py`
- [Windows interface](https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/core/platform/windows_interface.py): `wifi_jammer/core/platform/windows_interface.py`
- [Platform API](https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/core/platform_interface.py): `wifi_jammer/core/platform_interface.py`
- [Logging](https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/utils/logger.py): `wifi_jammer/utils/logger.py`
- [Platform utilities](https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/utils/platform_utils.py): `wifi_jammer/utils/platform_utils.py`
- [Input validation](https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/utils/validators.py): `wifi_jammer/utils/validators.py`
- [Warning handling](https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/utils/warning_suppressor.py): `wifi_jammer/utils/warning_suppressor.py`
- [Python detection](https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/utils/python_detector.py): `wifi_jammer/utils/python_detector.py`
- [Modern crypto](https://github.com/oyi77/wifi-jammer/blob/main/wifi_jammer/utils/modern_crypto.py): `wifi_jammer/utils/modern_crypto.py`

### Other components

- **Operator**

## Connections

- Operator → CLI commands: invokes
- Operator → Terminal UI: launches
- Operator → Qt main window: launches
- CLI commands → CLI session: delegates (evidence: `wifi_jammer/cli.py`)
- CLI session → Network scanner: scans with (evidence: `wifi_jammer/cli_session.py`)
- CLI session → Attack factory: creates attack (evidence: `wifi_jammer/cli_session.py`)
- CLI session → Progress display: renders progress (evidence: `wifi_jammer/cli.py`)
- CLI session → Client discovery: discovers clients (evidence: `wifi_jammer/cli_session.py`)
- Terminal UI → TUI screens: uses screens (evidence: `wifi_jammer/tui.py`)
- Qt main window → GUI scan widget: uses (evidence: `wifi_jammer/gui/main_window.py`)
- Qt main window → GUI attack config: uses (evidence: `wifi_jammer/gui/main_window.py`)
- Qt main window → GUI progress: uses (evidence: `wifi_jammer/gui/main_window.py`)
- GUI scan widget → Network scanner: scans with
- GUI attack config → Domain contracts: configures (evidence: `wifi_jammer/gui/attack_config_widget.py`)
- Network scanner → Frame parsing: parses frames (evidence: `wifi_jammer/scanner/network_scanner.py`)
- Network scanner → Scan state: updates (evidence: `wifi_jammer/scanner/network_scanner.py`)
- Network scanner → Client discovery: delegates (evidence: `wifi_jammer/scanner/network_scanner.py`)
- CLI commands → Configuration: loads settings (evidence: `wifi_jammer/cli.py`)
- Attack factory → Attack strategies: selects strategy (evidence: `wifi_jammer/factory/attack_factory.py`)
- Attack strategies → Attack runtime: extends runtime (evidence: `wifi_jammer/attacks/deauth_attack.py`)
- Attack runtime → Platform API: sets interface mode (evidence: `wifi_jammer/attacks/base_attack.py`)
- Attack runtime → Logging: logs events (evidence: `wifi_jammer/attacks/base_attack.py`)
- Attack runtime → Input validation: validates config (evidence: `wifi_jammer/attacks/base_attack.py`)
- Platform API → Platform factory: re-exports (evidence: `wifi_jammer/core/platform_interface.py`)
- Platform factory → Platform contract: uses contract (evidence: `wifi_jammer/core/platform/factory.py`)
- Platform factory → Linux interface: selects (evidence: `wifi_jammer/core/platform/factory.py`)
- Platform factory → macOS interface: selects (evidence: `wifi_jammer/core/platform/factory.py`)
- Platform factory → Windows interface: selects (evidence: `wifi_jammer/core/platform/factory.py`)
- Network scanner → Platform API: queries platform (evidence: `wifi_jammer/scanner/network_scanner.py`)
- Network scanner → Platform utilities: checks platform (evidence: `wifi_jammer/scanner/network_scanner.py`)
- Client discovery → Platform API: configures interface (evidence: `wifi_jammer/scanner/client_scanner.py`)
- Client discovery → Platform utilities: gets device MAC (evidence: `wifi_jammer/scanner/client_scanner.py`)
- CLI commands → Warning handling: sets up (evidence: `wifi_jammer/cli.py`)
- Terminal UI → Python detection: detects interpreter (evidence: `wifi_jammer/tui.py`)
