# kimocoder/oneshot architecture

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

- Interactive diagram: https://gitdiagram.com/kimocoder/oneshot
- Repository: https://github.com/kimocoder/oneshot

## Overview

OneShot is a command-line Wi-Fi/WPS tool. The user supplies an interface and optionally selects a network or attack mode; the tool can scan nearby networks, attempt WPS Pixie Dust or online PIN bruteforce, and report or save credentials. It also includes PIN generation and push-button connection support. The implementation is concentrated in oneshot.py; the excerpt shows scanner, PIN-generation and Pixiewps-data responsibilities, but omits much of the CLI and WPS control flow, so those links are documented or marked unverified.

Main entry points: [`oneshot.py`](https://github.com/kimocoder/oneshot/blob/master/oneshot.py) (WPS session), [`vulnwsc.txt`](https://github.com/kimocoder/oneshot/blob/master/vulnwsc.txt) (Vulnerable-device list)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["CLI and scanning"]
  node_cli["CLI and workflow<br/>[oneshot.py]"]
  node_scanner["Wi-Fi scanner<br/>[oneshot.py]"]
end

subgraph group_wps["WPS operations"]
  node_pin_generator["WPS PIN generator<br/>[oneshot.py]"]
  node_wps_session["WPS session<br/>[oneshot.py]"]
  node_pixie_data["Pixiewps data<br/>[oneshot.py]"]
  node_pixie_attack["Pixie Dust attack<br/>[oneshot.py]"]
  node_online_bruteforce["Online bruteforce<br/>[oneshot.py]"]
  node_pbc["Push-button connect<br/>[oneshot.py]"]
end

subgraph group_integrations["External tools and data"]
  node_iw["iw"]
  node_wpa["wpa_supplicant"]
  node_pixiewps["Pixiewps"]
  node_vuln_list["Vulnerable-device list<br/>[vulnwsc.txt]"]
end

node_user(("Operator"))

node_user -->|"runs"| node_cli
node_cli -.->|"can invoke"| node_scanner
node_scanner -->|"scans with"| node_iw
node_scanner -->|"highlights from"| node_vuln_list
node_cli -.->|"offers"| node_pin_generator
node_cli -.->|"starts"| node_wps_session
node_wps_session -.->|"runs"| node_pixie_attack
node_pixie_attack -.->|"uses"| node_pixie_data
node_pixie_attack -.->|"invokes"| node_pixiewps
node_wps_session -.->|"runs"| node_online_bruteforce
node_wps_session -.->|"supports"| node_pbc
node_wps_session -.->|"uses"| node_wpa

click node_cli "https://github.com/kimocoder/oneshot/blob/master/oneshot.py"
click node_scanner "https://github.com/kimocoder/oneshot/blob/master/oneshot.py"
click node_pin_generator "https://github.com/kimocoder/oneshot/blob/master/oneshot.py"
click node_wps_session "https://github.com/kimocoder/oneshot/blob/master/oneshot.py"
click node_pixie_data "https://github.com/kimocoder/oneshot/blob/master/oneshot.py"
click node_pixie_attack "https://github.com/kimocoder/oneshot/blob/master/oneshot.py"
click node_online_bruteforce "https://github.com/kimocoder/oneshot/blob/master/oneshot.py"
click node_pbc "https://github.com/kimocoder/oneshot/blob/master/oneshot.py"
click node_vuln_list "https://github.com/kimocoder/oneshot/blob/master/vulnwsc.txt"

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_scanner toneBlue
class node_pin_generator,node_wps_session,node_pixie_data,node_pixie_attack,node_online_bruteforce,node_pbc toneAmber
class node_iw,node_wpa,node_pixiewps,node_vuln_list toneMint
class node_user toneIndigo
```

## Components

### CLI and scanning

- [CLI and workflow](https://github.com/kimocoder/oneshot/blob/master/oneshot.py): `oneshot.py`
- [Wi-Fi scanner](https://github.com/kimocoder/oneshot/blob/master/oneshot.py): `oneshot.py`

### WPS operations

- [WPS PIN generator](https://github.com/kimocoder/oneshot/blob/master/oneshot.py): `oneshot.py`
- [WPS session](https://github.com/kimocoder/oneshot/blob/master/oneshot.py): `oneshot.py`
- [Pixiewps data](https://github.com/kimocoder/oneshot/blob/master/oneshot.py): `oneshot.py`
- [Pixie Dust attack](https://github.com/kimocoder/oneshot/blob/master/oneshot.py): `oneshot.py`
- [Online bruteforce](https://github.com/kimocoder/oneshot/blob/master/oneshot.py): `oneshot.py`
- [Push-button connect](https://github.com/kimocoder/oneshot/blob/master/oneshot.py): `oneshot.py`

### External tools and data

- **iw**
- **wpa_supplicant**
- **Pixiewps**
- [Vulnerable-device list](https://github.com/kimocoder/oneshot/blob/master/vulnwsc.txt): `vulnwsc.txt`

### Other components

- **Operator**

## Connections

- Operator → CLI and workflow: runs (evidence: `README.md`)
- CLI and workflow → Wi-Fi scanner: can invoke (evidence: `oneshot.py`)
- Wi-Fi scanner → iw: scans with (evidence: `oneshot.py`)
- Wi-Fi scanner → Vulnerable-device list: highlights from (evidence: `README.md`)
- CLI and workflow → WPS PIN generator: offers (evidence: `oneshot.py`)
- CLI and workflow → WPS session: starts (evidence: `oneshot.py`)
- WPS session → Pixie Dust attack: runs (evidence: `oneshot.py`)
- Pixie Dust attack → Pixiewps data: uses (evidence: `oneshot.py`)
- Pixie Dust attack → Pixiewps: invokes
- WPS session → Online bruteforce: runs (evidence: `oneshot.py`)
- WPS session → Push-button connect: supports (evidence: `oneshot.py`)
- WPS session → wpa_supplicant: uses
