# jindroman/onehack architecture

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

- Interactive diagram: https://gitdiagram.com/jindroman/onehack
- Repository: https://github.com/jindroman/onehack

## Overview

OneHack is a PyQt6 desktop utility for Minecraft server administration and web OSINT, with standalone request-generation scripts also present. Users launch the loading screen, choose a Minecraft or web terminal, enter target details, and receive console/telemetry output. The sampled screens show Minecraft connectivity and live status polling, plus web HTTP inspection; main.py owns screen construction and navigation. The web and Minecraft request scripts are separate command-line programs. Edges are limited to relationships visible in excerpts; unsampled screen wiring and script integration are not inferred.

Main entry points: [`OneHack/main.py`](https://github.com/jindroman/onehack/blob/main/OneHack/main.py) (Window navigation), [`OneHack/screens.py`](https://github.com/jindroman/onehack/blob/main/OneHack/screens.py) (Minecraft terminal), [`OneHack/scripts/minecraftha.py`](https://github.com/jindroman/onehack/blob/main/OneHack/scripts/minecraftha.py) (Minecraft traffic tool), [`OneHack/webha.py`](https://github.com/jindroman/onehack/blob/main/OneHack/webha.py) (Concurrent web requests)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Desktop shell"]
  node_core["Window navigation<br/>[main.py]"]
  node_theme["Application styling<br/>[styles.py]"]
end

subgraph group_views["Terminal workflows"]
  node_boot["Loading and menu<br/>[screens.py]"]
  node_mc["Minecraft terminal<br/>[screens.py]"]
  node_web["Web OSINT terminal<br/>[screens.py]"]
  node_process["Script and command workers<br/>[screens.py]"]
  node_connection["Minecraft connection<br/>[screens.py]"]
  node_telemetry["Minecraft telemetry<br/>[screens.py]"]
end

subgraph group_scripts["Standalone tools"]
  node_mc_script["Minecraft traffic tool<br/>[minecraftha.py]"]
  node_web_script["Concurrent web requests<br/>[webha.py]"]
  node_web_script_a["Concurrent web requests<br/>[webha.py]"]
  node_web_script_b["Concurrent web requests<br/>[webha-1.py]"]
end

node_user(("Desktop user"))
node_qt(("PyQt6 runtime"))
node_target_mc(("Minecraft server"))
node_target_web(("Web server"))

node_user -->|"launches"| node_core
node_core -->|"creates"| node_boot
node_core -->|"creates"| node_mc
node_core -->|"creates"| node_web
node_core -->|"applies"| node_theme
node_core -->|"runs event loop"| node_qt
node_boot -->|"requests navigation"| node_core
node_mc -->|"requests navigation"| node_core
node_web -->|"requests navigation"| node_core
node_user -.->|"enters server details"| node_mc
node_mc -->|"starts connection"| node_connection
node_connection -->|"checks server"| node_target_mc
node_mc -.->|"starts polling"| node_telemetry
node_telemetry -->|"reads status"| node_target_mc
node_user -.->|"submits URL"| node_web
node_web -->|"requests HTTP data"| node_target_web
node_process -.->|"runs target script"| node_target_web
node_user -->|"runs tool"| node_mc_script
node_mc_script -->|"sends network traffic"| node_target_mc
node_user -->|"runs tool"| node_web_script
node_web_script -->|"sends HTTP requests"| node_target_web
node_user -->|"runs tool"| node_web_script_a
node_web_script_a -->|"sends HTTP requests"| node_target_web
node_user -->|"runs tool"| node_web_script_b
node_web_script_b -->|"sends HTTP requests"| node_target_web

click node_core "https://github.com/jindroman/onehack/blob/main/OneHack/main.py"
click node_theme "https://github.com/jindroman/onehack/blob/main/OneHack/styles.py"
click node_boot "https://github.com/jindroman/onehack/blob/main/OneHack/screens.py"
click node_mc "https://github.com/jindroman/onehack/blob/main/OneHack/screens.py"
click node_web "https://github.com/jindroman/onehack/blob/main/OneHack/screens.py"
click node_process "https://github.com/jindroman/onehack/blob/main/OneHack/screens.py"
click node_connection "https://github.com/jindroman/onehack/blob/main/OneHack/screens.py"
click node_telemetry "https://github.com/jindroman/onehack/blob/main/OneHack/screens.py"
click node_mc_script "https://github.com/jindroman/onehack/blob/main/OneHack/scripts/minecraftha.py"
click node_web_script "https://github.com/jindroman/onehack/blob/main/OneHack/webha.py"
click node_web_script_a "https://github.com/jindroman/onehack/blob/main/OneHack/scripts/webha.py"
click node_web_script_b "https://github.com/jindroman/onehack/blob/main/OneHack/scripts/webha-1.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_core,node_theme,node_user toneBlue
class node_boot,node_mc,node_web,node_process,node_connection,node_telemetry toneAmber
class node_mc_script,node_web_script,node_web_script_a,node_web_script_b,node_target_mc,node_target_web toneMint
class node_qt toneIndigo
```

## Components

### Desktop shell

- [Window navigation](https://github.com/jindroman/onehack/blob/main/OneHack/main.py): `OneHack/main.py`
- [Application styling](https://github.com/jindroman/onehack/blob/main/OneHack/styles.py): `OneHack/styles.py`

### Terminal workflows

- [Loading and menu](https://github.com/jindroman/onehack/blob/main/OneHack/screens.py): `OneHack/screens.py`
- [Minecraft terminal](https://github.com/jindroman/onehack/blob/main/OneHack/screens.py): `OneHack/screens.py`
- [Web OSINT terminal](https://github.com/jindroman/onehack/blob/main/OneHack/screens.py): `OneHack/screens.py`
- [Script and command workers](https://github.com/jindroman/onehack/blob/main/OneHack/screens.py): `OneHack/screens.py`
- [Minecraft connection](https://github.com/jindroman/onehack/blob/main/OneHack/screens.py): `OneHack/screens.py`
- [Minecraft telemetry](https://github.com/jindroman/onehack/blob/main/OneHack/screens.py): `OneHack/screens.py`

### Standalone tools

- [Minecraft traffic tool](https://github.com/jindroman/onehack/blob/main/OneHack/scripts/minecraftha.py): `OneHack/scripts/minecraftha.py`
- [Concurrent web requests](https://github.com/jindroman/onehack/blob/main/OneHack/webha.py): `OneHack/webha.py`
- [Concurrent web requests](https://github.com/jindroman/onehack/blob/main/OneHack/scripts/webha.py): `OneHack/scripts/webha.py`
- [Concurrent web requests](https://github.com/jindroman/onehack/blob/main/OneHack/scripts/webha-1.py): `OneHack/scripts/webha-1.py`

### Other components

- **Desktop user**
- **PyQt6 runtime**
- **Minecraft server**
- **Web server**

## Connections

- Desktop user → Window navigation: launches (evidence: `OneHack/main.py`)
- Window navigation → Loading and menu: creates (evidence: `OneHack/main.py`)
- Window navigation → Minecraft terminal: creates (evidence: `OneHack/main.py`)
- Window navigation → Web OSINT terminal: creates (evidence: `OneHack/main.py`)
- Window navigation → Application styling: applies (evidence: `OneHack/main.py`)
- Window navigation → PyQt6 runtime: runs event loop (evidence: `OneHack/main.py`)
- Loading and menu → Window navigation: requests navigation (evidence: `OneHack/main.py`)
- Minecraft terminal → Window navigation: requests navigation (evidence: `OneHack/main.py`)
- Web OSINT terminal → Window navigation: requests navigation (evidence: `OneHack/main.py`)
- Desktop user → Minecraft terminal: enters server details
- Minecraft terminal → Minecraft connection: starts connection (evidence: `OneHack/screens.py`)
- Minecraft connection → Minecraft server: checks server (evidence: `OneHack/screens.py`)
- Minecraft terminal → Minecraft telemetry: starts polling (evidence: `OneHack/screens.py`)
- Minecraft telemetry → Minecraft server: reads status (evidence: `OneHack/screens.py`)
- Desktop user → Web OSINT terminal: submits URL
- Web OSINT terminal → Web server: requests HTTP data (evidence: `OneHack/screens.py`)
- Script and command workers → Web server: runs target script
- Desktop user → Minecraft traffic tool: runs tool (evidence: `OneHack/scripts/minecraftha.py`)
- Minecraft traffic tool → Minecraft server: sends network traffic (evidence: `OneHack/scripts/minecraftha.py`)
- Desktop user → Concurrent web requests: runs tool (evidence: `OneHack/webha.py`)
- Concurrent web requests → Web server: sends HTTP requests (evidence: `OneHack/webha.py`)
- Desktop user → Concurrent web requests: runs tool (evidence: `OneHack/scripts/webha.py`)
- Concurrent web requests → Web server: sends HTTP requests (evidence: `OneHack/scripts/webha.py`)
- Desktop user → Concurrent web requests: runs tool (evidence: `OneHack/scripts/webha-1.py`)
- Concurrent web requests → Web server: sends HTTP requests (evidence: `OneHack/scripts/webha-1.py`)
