# taruntapasi/libre-hacktivator_ios_12-16 architecture

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

- Interactive diagram: https://gitdiagram.com/taruntapasi/libre-hacktivator_ios_12-16
- Repository: https://github.com/taruntapasi/libre-hacktivator_ios_12-16

## Overview

LIBRE-HACKTIVATOR is an iOS device restriction-bypass toolkit. Its documented user flow connects a supported device, uses checkm8-based jailbreak tooling, then runs task-specific activation, MDM, setup, or enrollment work. The sampled Python scripts provide USB port forwarding and SSH operations; the PHP activation handler uses cryptographic helpers. The README describes broader automation, but the top-level shell scripts and palera1n implementation were not sampled, so their internal calls and exact orchestration are not shown.

Main entry points: [`source/scripts/usbmux.py`](https://github.com/taruntapasi/libre-hacktivator_ios_12-16/blob/main/source/scripts/usbmux.py) (USB multiplexing), [`source/scripts/phpbypass/var/www/crypt/RSA.php`](https://github.com/taruntapasi/libre-hacktivator_ios_12-16/blob/main/source/scripts/phpbypass/var/www/crypt/RSA.php) (RSA operations), [`source`](https://github.com/taruntapasi/libre-hacktivator_ios_12-16/tree/main/source) (Task automation), [`source/scripts/bypass.py`](https://github.com/taruntapasi/libre-hacktivator_ios_12-16/blob/main/source/scripts/bypass.py) (General bypass relay)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Device workflow"]
  node_entry["Workflow entry<br/>[start.sh]"]
  node_task_scripts["Task automation"]
  node_jailbreak["Jailbreak assets"]
end

subgraph group_device_access["Device access"]
  node_usb_transport["USB multiplexing<br/>[usbmux.py]"]
  node_bypass_relay["General bypass relay<br/>[bypass.py]"]
  node_php_relay["PHP bypass relay<br/>[php.py]"]
  node_shell_relay["Root shell relay<br/>[shell.py]"]
  node_icloud_relay["iCloud removal relay"]
  node_sim_relay["SIM data relay<br/>[sim.py]"]
end

subgraph group_bypass_tasks["Bypass tasks"]
  node_activation_handler["Activation handler<br/>[activator.php]"]
  node_mdm_bypass["MDM bypass<br/>[ibypass.sh]"]
  node_activation_flow["Activation bypass<br/>[php.sh]"]
  node_old_icloud["Old iCloud removal<br/>[rm_oldicloud.sh]"]
  node_sim_transfer["SIM transfer<br/>[simfrom.sh]"]
end

subgraph group_crypto["Activation crypto"]
  node_big_integer["Big integers<br/>[BigInteger.php]"]
  node_hash["Hash functions<br/>[Hash.php]"]
  node_rsa["RSA operations<br/>[RSA.php]"]
  node_random["Random bytes<br/>[Random.php]"]
end

node_user(("Operator"))
node_iphone(("iOS device"))

node_user -->|"starts"| node_entry
node_entry -.->|"runs tasks"| node_task_scripts
node_task_scripts -.->|"launches jailbreak"| node_jailbreak
node_jailbreak -.->|"jailbreaks"| node_iphone
node_task_scripts -.->|"automates device setup"| node_iphone
node_bypass_relay -->|"connects devices"| node_usb_transport
node_php_relay -->|"connects devices"| node_usb_transport
node_shell_relay -->|"connects devices"| node_usb_transport
node_icloud_relay -->|"connects devices"| node_usb_transport
node_sim_relay -->|"forwards ports"| node_usb_transport
node_bypass_relay -->|"runs remote commands"| node_iphone
node_shell_relay -->|"runs remote commands"| node_iphone
node_icloud_relay -->|"runs removal commands"| node_iphone
node_sim_relay -->|"transfers files"| node_iphone
node_activation_flow -.->|"serves activation"| node_activation_handler
node_activation_handler -->|"uses RSA"| node_rsa
node_rsa -->|"uses arithmetic"| node_big_integer
node_rsa -->|"uses hashing"| node_hash
node_rsa -->|"uses randomness"| node_random
node_hash -->|"uses arithmetic"| node_big_integer

click node_entry "https://github.com/taruntapasi/libre-hacktivator_ios_12-16/blob/main/start.sh"
click node_task_scripts "https://github.com/taruntapasi/libre-hacktivator_ios_12-16/tree/main/source"
click node_jailbreak "https://github.com/taruntapasi/libre-hacktivator_ios_12-16/tree/main/palera1n"
click node_usb_transport "https://github.com/taruntapasi/libre-hacktivator_ios_12-16/blob/main/source/scripts/usbmux.py"
click node_bypass_relay "https://github.com/taruntapasi/libre-hacktivator_ios_12-16/blob/main/source/scripts/bypass.py"
click node_php_relay "https://github.com/taruntapasi/libre-hacktivator_ios_12-16/blob/main/source/scripts/php.py"
click node_shell_relay "https://github.com/taruntapasi/libre-hacktivator_ios_12-16/blob/main/source/scripts/shell.py"
click node_icloud_relay "https://github.com/taruntapasi/libre-hacktivator_ios_12-16/blob/main/source/scripts/remove_oldicloud.py"
click node_sim_relay "https://github.com/taruntapasi/libre-hacktivator_ios_12-16/blob/main/source/scripts/sim.py"
click node_activation_handler "https://github.com/taruntapasi/libre-hacktivator_ios_12-16/blob/main/source/scripts/phpbypass/activator.php"
click node_mdm_bypass "https://github.com/taruntapasi/libre-hacktivator_ios_12-16/blob/main/source/ibypass.sh"
click node_activation_flow "https://github.com/taruntapasi/libre-hacktivator_ios_12-16/blob/main/source/php.sh"
click node_old_icloud "https://github.com/taruntapasi/libre-hacktivator_ios_12-16/blob/main/source/rm_oldicloud.sh"
click node_sim_transfer "https://github.com/taruntapasi/libre-hacktivator_ios_12-16/blob/main/source/simfrom.sh"
click node_big_integer "https://github.com/taruntapasi/libre-hacktivator_ios_12-16/blob/main/source/scripts/phpbypass/var/www/crypt/BigInteger.php"
click node_hash "https://github.com/taruntapasi/libre-hacktivator_ios_12-16/blob/main/source/scripts/phpbypass/var/www/crypt/Hash.php"
click node_rsa "https://github.com/taruntapasi/libre-hacktivator_ios_12-16/blob/main/source/scripts/phpbypass/var/www/crypt/RSA.php"
click node_random "https://github.com/taruntapasi/libre-hacktivator_ios_12-16/blob/main/source/scripts/phpbypass/var/www/crypt/Random.php"

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_entry,node_task_scripts,node_jailbreak toneBlue
class node_usb_transport,node_bypass_relay,node_php_relay,node_shell_relay,node_icloud_relay,node_sim_relay toneAmber
class node_activation_handler,node_mdm_bypass,node_activation_flow,node_old_icloud,node_sim_transfer toneMint
class node_big_integer,node_hash,node_rsa,node_random toneRose
class node_user,node_iphone toneIndigo
```

## Components

### Device workflow

- [Workflow entry](https://github.com/taruntapasi/libre-hacktivator_ios_12-16/blob/main/start.sh): `start.sh`
- [Task automation](https://github.com/taruntapasi/libre-hacktivator_ios_12-16/tree/main/source): `source`
- [Jailbreak assets](https://github.com/taruntapasi/libre-hacktivator_ios_12-16/tree/main/palera1n): `palera1n`

### Device access

- [USB multiplexing](https://github.com/taruntapasi/libre-hacktivator_ios_12-16/blob/main/source/scripts/usbmux.py): `source/scripts/usbmux.py`
- [General bypass relay](https://github.com/taruntapasi/libre-hacktivator_ios_12-16/blob/main/source/scripts/bypass.py): `source/scripts/bypass.py`
- [PHP bypass relay](https://github.com/taruntapasi/libre-hacktivator_ios_12-16/blob/main/source/scripts/php.py): `source/scripts/php.py`
- [Root shell relay](https://github.com/taruntapasi/libre-hacktivator_ios_12-16/blob/main/source/scripts/shell.py): `source/scripts/shell.py`
- [iCloud removal relay](https://github.com/taruntapasi/libre-hacktivator_ios_12-16/blob/main/source/scripts/remove_oldicloud.py): `source/scripts/remove_oldicloud.py`
- [SIM data relay](https://github.com/taruntapasi/libre-hacktivator_ios_12-16/blob/main/source/scripts/sim.py): `source/scripts/sim.py`

### Bypass tasks

- [Activation handler](https://github.com/taruntapasi/libre-hacktivator_ios_12-16/blob/main/source/scripts/phpbypass/activator.php): `source/scripts/phpbypass/activator.php`
- [MDM bypass](https://github.com/taruntapasi/libre-hacktivator_ios_12-16/blob/main/source/ibypass.sh): `source/ibypass.sh`
- [Activation bypass](https://github.com/taruntapasi/libre-hacktivator_ios_12-16/blob/main/source/php.sh): `source/php.sh`
- [Old iCloud removal](https://github.com/taruntapasi/libre-hacktivator_ios_12-16/blob/main/source/rm_oldicloud.sh): `source/rm_oldicloud.sh`
- [SIM transfer](https://github.com/taruntapasi/libre-hacktivator_ios_12-16/blob/main/source/simfrom.sh): `source/simfrom.sh`

### Activation crypto

- [Big integers](https://github.com/taruntapasi/libre-hacktivator_ios_12-16/blob/main/source/scripts/phpbypass/var/www/crypt/BigInteger.php): `source/scripts/phpbypass/var/www/crypt/BigInteger.php`
- [Hash functions](https://github.com/taruntapasi/libre-hacktivator_ios_12-16/blob/main/source/scripts/phpbypass/var/www/crypt/Hash.php): `source/scripts/phpbypass/var/www/crypt/Hash.php`
- [RSA operations](https://github.com/taruntapasi/libre-hacktivator_ios_12-16/blob/main/source/scripts/phpbypass/var/www/crypt/RSA.php): `source/scripts/phpbypass/var/www/crypt/RSA.php`
- [Random bytes](https://github.com/taruntapasi/libre-hacktivator_ios_12-16/blob/main/source/scripts/phpbypass/var/www/crypt/Random.php): `source/scripts/phpbypass/var/www/crypt/Random.php`

### Other components

- **Operator**
- **iOS device**

## Connections

- Operator → Workflow entry: starts (evidence: `README.md`)
- Workflow entry → Task automation: runs tasks
- Task automation → Jailbreak assets: launches jailbreak
- Jailbreak assets → iOS device: jailbreaks (evidence: `README.md`)
- Task automation → iOS device: automates device setup (evidence: `README.md`)
- General bypass relay → USB multiplexing: connects devices (evidence: `source/scripts/bypass.py`)
- PHP bypass relay → USB multiplexing: connects devices (evidence: `source/scripts/php.py`)
- Root shell relay → USB multiplexing: connects devices (evidence: `source/scripts/shell.py`)
- iCloud removal relay → USB multiplexing: connects devices (evidence: `source/scripts/remove_oldicloud.py`)
- SIM data relay → USB multiplexing: forwards ports (evidence: `source/scripts/sim.py`)
- General bypass relay → iOS device: runs remote commands (evidence: `source/scripts/bypass.py`)
- Root shell relay → iOS device: runs remote commands (evidence: `source/scripts/shell.py`)
- iCloud removal relay → iOS device: runs removal commands (evidence: `source/scripts/remove_oldicloud.py`)
- SIM data relay → iOS device: transfers files (evidence: `source/scripts/sim.py`)
- Activation bypass → Activation handler: serves activation
- Activation handler → RSA operations: uses RSA (evidence: `source/scripts/phpbypass/activator.php`)
- RSA operations → Big integers: uses arithmetic (evidence: `source/scripts/phpbypass/var/www/crypt/RSA.php`)
- RSA operations → Hash functions: uses hashing (evidence: `source/scripts/phpbypass/var/www/crypt/RSA.php`)
- RSA operations → Random bytes: uses randomness (evidence: `source/scripts/phpbypass/var/www/crypt/RSA.php`)
- Hash functions → Big integers: uses arithmetic (evidence: `source/scripts/phpbypass/var/www/crypt/Hash.php`)
