How mkst/zte-config-utility works
ZCU is a Python utility for decoding and re-encoding ZTE router configuration binaries. The principal workflow takes a config.bin and produces XML; users can then encode XML back into a binary, optionally preserving headers and signatures. The README also describes automatic and known-key decoding, signature extraction, and several encryption/keying variants. The source excerpts show the format, compression, encryption, and key helpers, but not the example scripts that orchestrate them, so those internal call relationships are left unasserted.
Main entry points: decode.py Decode config · encode.py Encode config · auto.py Auto decode · zte.py ZTE framing
Components 12
User workflows
- Decode config
examples/decode.py - Auto decode
examples/auto.py - Encode config
examples/encode.py - Inspect signature
examples/signature.py
Format processing
- ZTE framing
zcu/zte.py - Compression
zcu/compression.py - Format constants
zcu/constants.py
Keys and encryption
- Known keys
zcu/known_keys.py - AES encryption
zcu/xcryptors.py
Other components
- User
- XML config
- Config binary
Connections 22
- User → Decode config: runs
README.md - Decode config → Config binary: reads
README.md - Decode config → XML config: writes
README.md - User → Auto decode: runs
README.md - Auto decode → Config binary: reads
README.md - Auto decode → XML config: writes
README.md - User → Encode config: runs
README.md - Encode config → XML config: reads
README.md - Encode config → Config binary: writes
README.md - User → Inspect signature: runs
README.md - Inspect signature → Config binary: reads
README.md - Decode config → Known keys: resolves keys
- Decode config → ZTE framing: parses framing
- Decode config → Compression: decompresses
- Decode config → AES encryption: decrypts
- Encode config → ZTE framing: adds framing
- Encode config → Compression: compresses
- Encode config → AES encryption: encrypts
- Auto decode → Known keys: tries known keys
- ZTE framing → Format constants: uses markers
zcu/zte.py - Compression → Format constants: uses markers
zcu/compression.py - AES encryption → Format constants: uses markers
zcu/xcryptors.py