# overcast302/hacktiv8 architecture

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

- Interactive diagram: https://gitdiagram.com/overcast302/hacktiv8
- Repository: https://github.com/overcast302/hacktiv8

## Overview

hacktiv8 is a desktop tool for activating legacy iOS devices through version-appropriate exploit paths. The user connects a device over USB, the app polls its activation and compatibility, then dispatches activation to either the itunesstored or jailbroken-device SFTP flow. The former checks backend support and stages a generated SQL payload; the latter patches device state and reboots. The backend serves model/build-specific patched plists. The graph reflects sampled source and README claims; unsampled payload and plist contents are not inferred beyond their documented roles.

Main entry points: [`main.py`](https://github.com/overcast302/hacktiv8/blob/main/main.py) (App and workflow), [`exploits/itunesstored/itunesstored.py`](https://github.com/overcast302/hacktiv8/blob/main/exploits/itunesstored/itunesstored.py) (itunesstored method), [`exploits/sftp/sftp.py`](https://github.com/overcast302/hacktiv8/blob/main/exploits/sftp/sftp.py) (SFTP method), [`exploits/__init__.py`](https://github.com/overcast302/hacktiv8/blob/main/exploits/__init__.py) (Exploit selection)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Desktop app"]
  node_main["App and workflow<br/>[main.py]"]
  node_common["Device helpers<br/>[common.py]"]
end

subgraph group_dispatch["Exploit dispatch"]
  node_registry["Exploit selection<br/>[__init__.py]"]
end

subgraph group_methods["Activation methods"]
  node_itunes["itunesstored method<br/>[itunesstored.py]"]
  node_sql["SQL payload<br/>[payload.sql]"]
  node_sftp["SFTP method<br/>[sftp.py]"]
  node_patch["lockdownd patcher<br/>[lockdownd_patch.py]"]
end

subgraph group_backend["Backend service"]
  node_server["Plist endpoint<br/>[server.php]"]
  node_plists[("Patched plist catalog")]
end

node_user(("Operator"))
node_device(("iOS device"))
node_backend_service(("Configured backend"))

node_user -->|"operates"| node_main
node_main -->|"polls USB"| node_device
node_main -->|"selects method"| node_registry
node_main -->|"parses version"| node_common
node_registry -->|"dispatches"| node_itunes
node_registry -->|"dispatches"| node_sftp
node_main -->|"starts activation"| node_itunes
node_itunes -->|"waits for device"| node_common
node_itunes -->|"loads payload"| node_sql
node_itunes -->|"queries support"| node_backend_service
node_backend_service -.->|"serves requests"| node_server
node_server -->|"reads plist"| node_plists
node_sftp -->|"patches binary"| node_patch
node_sftp -->|"waits for activation"| node_common
node_sftp -->|"uses SSH and reboots"| node_device

click node_main "https://github.com/overcast302/hacktiv8/blob/main/main.py"
click node_common "https://github.com/overcast302/hacktiv8/blob/main/exploits/common.py"
click node_registry "https://github.com/overcast302/hacktiv8/blob/main/exploits/__init__.py"
click node_itunes "https://github.com/overcast302/hacktiv8/blob/main/exploits/itunesstored/itunesstored.py"
click node_sql "https://github.com/overcast302/hacktiv8/blob/main/exploits/itunesstored/payload.sql"
click node_sftp "https://github.com/overcast302/hacktiv8/blob/main/exploits/sftp/sftp.py"
click node_patch "https://github.com/overcast302/hacktiv8/blob/main/exploits/sftp/lockdownd_patch.py"
click node_server "https://github.com/overcast302/hacktiv8/blob/main/backend/server.php"
click node_plists "https://github.com/overcast302/hacktiv8/tree/main/backend/plists"

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_main,node_common toneBlue
class node_registry toneAmber
class node_itunes,node_sql,node_sftp,node_patch toneMint
class node_server,node_plists toneRose
class node_user,node_device,node_backend_service toneIndigo
```

## Components

### Desktop app

- [App and workflow](https://github.com/overcast302/hacktiv8/blob/main/main.py): `main.py`
- [Device helpers](https://github.com/overcast302/hacktiv8/blob/main/exploits/common.py): `exploits/common.py`

### Exploit dispatch

- [Exploit selection](https://github.com/overcast302/hacktiv8/blob/main/exploits/__init__.py): `exploits/__init__.py`

### Activation methods

- [itunesstored method](https://github.com/overcast302/hacktiv8/blob/main/exploits/itunesstored/itunesstored.py): `exploits/itunesstored/itunesstored.py`
- [SQL payload](https://github.com/overcast302/hacktiv8/blob/main/exploits/itunesstored/payload.sql): `exploits/itunesstored/payload.sql`
- [SFTP method](https://github.com/overcast302/hacktiv8/blob/main/exploits/sftp/sftp.py): `exploits/sftp/sftp.py`
- [lockdownd patcher](https://github.com/overcast302/hacktiv8/blob/main/exploits/sftp/lockdownd_patch.py): `exploits/sftp/lockdownd_patch.py`

### Backend service

- [Plist endpoint](https://github.com/overcast302/hacktiv8/blob/main/backend/server.php): `backend/server.php`
- [Patched plist catalog](https://github.com/overcast302/hacktiv8/tree/main/backend/plists): `backend/plists`

### Other components

- **Operator**
- **iOS device**
- **Configured backend**

## Connections

- Operator → App and workflow: operates (evidence: `main.py`)
- App and workflow → iOS device: polls USB (evidence: `main.py`)
- App and workflow → Exploit selection: selects method (evidence: `main.py`)
- App and workflow → Device helpers: parses version (evidence: `main.py`)
- Exploit selection → itunesstored method: dispatches (evidence: `exploits/__init__.py`)
- Exploit selection → SFTP method: dispatches (evidence: `exploits/__init__.py`)
- App and workflow → itunesstored method: starts activation (evidence: `main.py`)
- itunesstored method → Device helpers: waits for device (evidence: `exploits/itunesstored/itunesstored.py`)
- itunesstored method → SQL payload: loads payload (evidence: `exploits/itunesstored/itunesstored.py`)
- itunesstored method → Configured backend: queries support (evidence: `README.md`)
- Configured backend → Plist endpoint: serves requests
- Plist endpoint → Patched plist catalog: reads plist (evidence: `backend/server.php`)
- SFTP method → lockdownd patcher: patches binary (evidence: `exploits/sftp/sftp.py`)
- SFTP method → Device helpers: waits for activation (evidence: `exploits/sftp/sftp.py`)
- SFTP method → iOS device: uses SSH and reboots (evidence: `exploits/sftp/sftp.py`)
