# thiwak/zlt_s10_cpe architecture

> Architecture diagram of the GitHub repository thiwak/zlt_s10_cpe, 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/thiwak/zlt_s10_cpe
- Repository: https://github.com/thiwak/zlt_s10_cpe

## Overview

This repository is a technical guide for gaining access to, unlocking, dumping, modifying, and recovering firmware on the ZLT S10 router, plus a NAND dump parser. The parser’s CLI owns the demonstrated preprocessing, partition extraction, and repacking calls. The README excerpt identifies broader access, unlock, update, and recovery topics, but does not show their detailed procedures; those are represented as guide capabilities rather than inferred implementation flows.

Main entry points: [`README.md`](https://github.com/thiwak/zlt_s10_cpe/blob/main/README.md) (Device guide), [`src/dump_parser.py`](https://github.com/thiwak/zlt_s10_cpe/blob/main/src/dump_parser.py) (Parser CLI), [`assets`](https://github.com/thiwak/zlt_s10_cpe/tree/main/assets) (Recovery resources)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and unlock"]
  node_guide["Device guide<br/>[README.md]"]
  node_shell["Shell access<br/>[README.md]"]
  node_unlock["Unlock and debrand<br/>[README.md]"]
end

subgraph group_dump["Dump processing"]
  node_rawdump["Raw NAND dump<br/>[README.md]"]
  node_cli["Parser CLI<br/>[dump_parser.py]"]
  node_preprocess["Dump preprocessing<br/>[dump_parser.py]"]
  node_clean["Clean dump<br/>[dump_parser.py]"]
  node_extract["Partition extraction<br/>[dump_parser.py]"]
  node_partitions["Extracted partitions<br/>[dump_parser.py]"]
  node_repack["NAND repacking<br/>[dump_parser.py]"]
  node_repacked["Repacked NAND images<br/>[dump_parser.py]"]
end

subgraph group_firmware["Firmware operations"]
  node_modify["Firmware modification<br/>[README.md]"]
  node_update["Firmware update<br/>[README.md]"]
  node_recovery["Unbricking and recovery<br/>[README.md]"]
  node_assets["Recovery resources"]
end

node_researcher(("Researcher"))
node_router["ZLT S10 router"]

node_researcher -->|"consults"| node_guide
node_guide -->|"describes access"| node_shell
node_guide -->|"describes methods"| node_unlock
node_guide -->|"describes dumping"| node_rawdump
node_guide -->|"describes update"| node_update
node_guide -->|"describes recovery"| node_recovery
node_researcher -.->|"modifies"| node_router
node_researcher -->|"runs"| node_cli
node_cli -->|"calls unpack"| node_preprocess
node_cli -->|"calls unpack"| node_extract
node_cli -->|"calls repack"| node_repack
node_rawdump -.->|"input dump"| node_cli
node_preprocess -->|"writes"| node_clean
node_extract -->|"reads"| node_clean
node_extract -->|"writes"| node_partitions
node_repack -->|"reads"| node_partitions
node_repack -->|"writes"| node_repacked
node_researcher -.->|"modifies firmware"| node_modify
node_modify -.->|"prepares update"| node_update
node_update -.->|"flashes"| node_router
node_assets -.->|"supports recovery"| node_recovery

click node_guide "https://github.com/thiwak/zlt_s10_cpe/blob/main/README.md"
click node_shell "https://github.com/thiwak/zlt_s10_cpe/blob/main/README.md"
click node_unlock "https://github.com/thiwak/zlt_s10_cpe/blob/main/README.md"
click node_rawdump "https://github.com/thiwak/zlt_s10_cpe/blob/main/README.md"
click node_cli "https://github.com/thiwak/zlt_s10_cpe/blob/main/src/dump_parser.py"
click node_preprocess "https://github.com/thiwak/zlt_s10_cpe/blob/main/src/dump_parser.py"
click node_clean "https://github.com/thiwak/zlt_s10_cpe/blob/main/src/dump_parser.py"
click node_extract "https://github.com/thiwak/zlt_s10_cpe/blob/main/src/dump_parser.py"
click node_partitions "https://github.com/thiwak/zlt_s10_cpe/blob/main/src/dump_parser.py"
click node_repack "https://github.com/thiwak/zlt_s10_cpe/blob/main/src/dump_parser.py"
click node_repacked "https://github.com/thiwak/zlt_s10_cpe/blob/main/src/dump_parser.py"
click node_modify "https://github.com/thiwak/zlt_s10_cpe/blob/main/README.md"
click node_update "https://github.com/thiwak/zlt_s10_cpe/blob/main/README.md"
click node_recovery "https://github.com/thiwak/zlt_s10_cpe/blob/main/README.md"
click node_assets "https://github.com/thiwak/zlt_s10_cpe/tree/main/assets"

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_guide,node_shell,node_unlock toneBlue
class node_rawdump,node_cli,node_preprocess,node_clean,node_extract,node_partitions,node_repack,node_repacked toneAmber
class node_modify,node_update,node_recovery,node_assets,node_router toneMint
class node_researcher toneIndigo
```

## Components

### Access and unlock

- [Device guide](https://github.com/thiwak/zlt_s10_cpe/blob/main/README.md): `README.md`
- [Shell access](https://github.com/thiwak/zlt_s10_cpe/blob/main/README.md): `README.md`
- [Unlock and debrand](https://github.com/thiwak/zlt_s10_cpe/blob/main/README.md): `README.md`

### Dump processing

- [Raw NAND dump](https://github.com/thiwak/zlt_s10_cpe/blob/main/README.md): `README.md`
- [Parser CLI](https://github.com/thiwak/zlt_s10_cpe/blob/main/src/dump_parser.py): `src/dump_parser.py`
- [Dump preprocessing](https://github.com/thiwak/zlt_s10_cpe/blob/main/src/dump_parser.py): `src/dump_parser.py`
- [Clean dump](https://github.com/thiwak/zlt_s10_cpe/blob/main/src/dump_parser.py): `src/dump_parser.py`
- [Partition extraction](https://github.com/thiwak/zlt_s10_cpe/blob/main/src/dump_parser.py): `src/dump_parser.py`
- [Extracted partitions](https://github.com/thiwak/zlt_s10_cpe/blob/main/src/dump_parser.py): `src/dump_parser.py`
- [NAND repacking](https://github.com/thiwak/zlt_s10_cpe/blob/main/src/dump_parser.py): `src/dump_parser.py`
- [Repacked NAND images](https://github.com/thiwak/zlt_s10_cpe/blob/main/src/dump_parser.py): `src/dump_parser.py`

### Firmware operations

- [Firmware modification](https://github.com/thiwak/zlt_s10_cpe/blob/main/README.md): `README.md`
- [Firmware update](https://github.com/thiwak/zlt_s10_cpe/blob/main/README.md): `README.md`
- [Unbricking and recovery](https://github.com/thiwak/zlt_s10_cpe/blob/main/README.md): `README.md`
- [Recovery resources](https://github.com/thiwak/zlt_s10_cpe/tree/main/assets): `assets`

### Other components

- **Researcher**
- **ZLT S10 router**

## Connections

- Researcher → Device guide: consults (evidence: `README.md`)
- Device guide → Shell access: describes access (evidence: `README.md`)
- Device guide → Unlock and debrand: describes methods (evidence: `README.md`)
- Device guide → Raw NAND dump: describes dumping (evidence: `README.md`)
- Device guide → Firmware update: describes update (evidence: `README.md`)
- Device guide → Unbricking and recovery: describes recovery (evidence: `README.md`)
- Researcher → ZLT S10 router: modifies
- Researcher → Parser CLI: runs (evidence: `src/dump_parser.py`)
- Parser CLI → Dump preprocessing: calls unpack (evidence: `src/dump_parser.py`)
- Parser CLI → Partition extraction: calls unpack (evidence: `src/dump_parser.py`)
- Parser CLI → NAND repacking: calls repack (evidence: `src/dump_parser.py`)
- Raw NAND dump → Parser CLI: input dump
- Dump preprocessing → Clean dump: writes (evidence: `src/dump_parser.py`)
- Partition extraction → Clean dump: reads (evidence: `src/dump_parser.py`)
- Partition extraction → Extracted partitions: writes (evidence: `src/dump_parser.py`)
- NAND repacking → Extracted partitions: reads (evidence: `src/dump_parser.py`)
- NAND repacking → Repacked NAND images: writes (evidence: `src/dump_parser.py`)
- Researcher → Firmware modification: modifies firmware
- Firmware modification → Firmware update: prepares update
- Firmware update → ZLT S10 router: flashes
- Recovery resources → Unbricking and recovery: supports recovery
