# hamed-gharghi/wifi-deauther architecture

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

- Interactive diagram: https://gitdiagram.com/hamed-gharghi/wifi-deauther
- Repository: https://github.com/hamed-gharghi/wifi-deauther

## Overview

HMD Wifi Killer is a Linux command-line tool for authorized WiFi deauthentication testing. Its principal workflow parses options or prompts for an interface, enables monitor mode, scans and selects a network, then dispatches an attack and cleans up. The README also describes dependency checks, interface detection, colored feedback, and two attack backends. The implementation is concentrated in one Python file; the excerpts show orchestration and some system commands, but not the full scan or helper implementations, so those connections are limited to documented relationships.

Main entry points: [`wifi_deauther.py`](https://github.com/hamed-gharghi/wifi-deauther/blob/main/wifi_deauther.py) (CLI workflow)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cli["CLI and setup"]
  node_application["CLI workflow<br/>[wifi_deauther.py]"]
  node_arguments["Argument parsing<br/>[wifi_deauther.py]"]
  node_dependency_check["Dependency checks<br/>[wifi_deauther.py]"]
  node_feedback["Colored feedback<br/>[wifi_deauther.py]"]
end

subgraph group_discovery["Network discovery"]
  node_interface_detection["Interface detection<br/>[wifi_deauther.py]"]
  node_monitor_mode["Monitor setup<br/>[wifi_deauther.py]"]
  node_network_scan["Network scan<br/>[wifi_deauther.py]"]
  node_network_selection["Target selection<br/>[wifi_deauther.py]"]
end

subgraph group_attacks["Attack execution"]
  node_mdk_attack["mdk4 attack<br/>[wifi_deauther.py]"]
  node_aircrack_attack["aircrack-ng attack<br/>[wifi_deauther.py]"]
  node_cleanup["Interface cleanup<br/>[wifi_deauther.py]"]
end

node_operator(("Authorized operator"))
node_system_tools["Linux wireless tools"]
node_mdk4_service["mdk4"]
node_aircrack_service["aircrack-ng"]

node_operator -->|"runs"| node_application
node_application -->|"parses options"| node_arguments
node_application -->|"checks requirements"| node_dependency_check
node_application -->|"lists interfaces"| node_interface_detection
node_application -->|"enables monitor"| node_monitor_mode
node_application -->|"scans networks"| node_network_scan
node_application -->|"selects target"| node_network_selection
node_application -->|"dispatches attack"| node_mdk_attack
node_application -->|"dispatches attack"| node_aircrack_attack
node_application -->|"cleans up"| node_cleanup
node_dependency_check -->|"checks tools"| node_system_tools
node_monitor_mode -->|"configures interface"| node_system_tools
node_mdk_attack -->|"starts process"| node_mdk4_service
node_aircrack_attack -->|"starts process"| node_aircrack_service
node_cleanup -->|"stops monitor"| node_system_tools
node_application -->|"reports status"| node_feedback

click node_application "https://github.com/hamed-gharghi/wifi-deauther/blob/main/wifi_deauther.py"
click node_arguments "https://github.com/hamed-gharghi/wifi-deauther/blob/main/wifi_deauther.py"
click node_dependency_check "https://github.com/hamed-gharghi/wifi-deauther/blob/main/wifi_deauther.py"
click node_feedback "https://github.com/hamed-gharghi/wifi-deauther/blob/main/wifi_deauther.py"
click node_interface_detection "https://github.com/hamed-gharghi/wifi-deauther/blob/main/wifi_deauther.py"
click node_monitor_mode "https://github.com/hamed-gharghi/wifi-deauther/blob/main/wifi_deauther.py"
click node_network_scan "https://github.com/hamed-gharghi/wifi-deauther/blob/main/wifi_deauther.py"
click node_network_selection "https://github.com/hamed-gharghi/wifi-deauther/blob/main/wifi_deauther.py"
click node_mdk_attack "https://github.com/hamed-gharghi/wifi-deauther/blob/main/wifi_deauther.py"
click node_aircrack_attack "https://github.com/hamed-gharghi/wifi-deauther/blob/main/wifi_deauther.py"
click node_cleanup "https://github.com/hamed-gharghi/wifi-deauther/blob/main/wifi_deauther.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_application,node_arguments,node_dependency_check,node_feedback toneBlue
class node_interface_detection,node_monitor_mode,node_network_scan,node_network_selection toneAmber
class node_mdk_attack,node_aircrack_attack,node_cleanup toneMint
class node_operator,node_system_tools,node_mdk4_service,node_aircrack_service toneIndigo
```

## Components

### CLI and setup

- [CLI workflow](https://github.com/hamed-gharghi/wifi-deauther/blob/main/wifi_deauther.py): `wifi_deauther.py`
- [Argument parsing](https://github.com/hamed-gharghi/wifi-deauther/blob/main/wifi_deauther.py): `wifi_deauther.py`
- [Dependency checks](https://github.com/hamed-gharghi/wifi-deauther/blob/main/wifi_deauther.py): `wifi_deauther.py`
- [Colored feedback](https://github.com/hamed-gharghi/wifi-deauther/blob/main/wifi_deauther.py): `wifi_deauther.py`

### Network discovery

- [Interface detection](https://github.com/hamed-gharghi/wifi-deauther/blob/main/wifi_deauther.py): `wifi_deauther.py`
- [Monitor setup](https://github.com/hamed-gharghi/wifi-deauther/blob/main/wifi_deauther.py): `wifi_deauther.py`
- [Network scan](https://github.com/hamed-gharghi/wifi-deauther/blob/main/wifi_deauther.py): `wifi_deauther.py`
- [Target selection](https://github.com/hamed-gharghi/wifi-deauther/blob/main/wifi_deauther.py): `wifi_deauther.py`

### Attack execution

- [mdk4 attack](https://github.com/hamed-gharghi/wifi-deauther/blob/main/wifi_deauther.py): `wifi_deauther.py`
- [aircrack-ng attack](https://github.com/hamed-gharghi/wifi-deauther/blob/main/wifi_deauther.py): `wifi_deauther.py`
- [Interface cleanup](https://github.com/hamed-gharghi/wifi-deauther/blob/main/wifi_deauther.py): `wifi_deauther.py`

### Other components

- **Authorized operator**
- **Linux wireless tools**
- **mdk4**
- **aircrack-ng**

## Connections

- Authorized operator → CLI workflow: runs (evidence: `README.md`)
- CLI workflow → Argument parsing: parses options (evidence: `wifi_deauther.py`)
- CLI workflow → Dependency checks: checks requirements (evidence: `wifi_deauther.py`)
- CLI workflow → Interface detection: lists interfaces (evidence: `wifi_deauther.py`)
- CLI workflow → Monitor setup: enables monitor (evidence: `wifi_deauther.py`)
- CLI workflow → Network scan: scans networks (evidence: `wifi_deauther.py`)
- CLI workflow → Target selection: selects target (evidence: `wifi_deauther.py`)
- CLI workflow → mdk4 attack: dispatches attack (evidence: `wifi_deauther.py`)
- CLI workflow → aircrack-ng attack: dispatches attack (evidence: `wifi_deauther.py`)
- CLI workflow → Interface cleanup: cleans up (evidence: `wifi_deauther.py`)
- Dependency checks → Linux wireless tools: checks tools (evidence: `wifi_deauther.py`)
- Monitor setup → Linux wireless tools: configures interface (evidence: `wifi_deauther.py`)
- mdk4 attack → mdk4: starts process (evidence: `wifi_deauther.py`)
- aircrack-ng attack → aircrack-ng: starts process (evidence: `wifi_deauther.py`)
- Interface cleanup → Linux wireless tools: stops monitor (evidence: `wifi_deauther.py`)
- CLI workflow → Colored feedback: reports status (evidence: `README.md`)
