Skip to content

jinhill/ztecfg

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zxcfg

ZTE CFG file and XML file unpacking and packaging tool.


Usage: zxcfg [OPTIONS]
Options:
  -i  input file name
  -o  output file name
  -m  mode
      0 --- unpack cfg or xml file (default mode)
      1 --- pack into xml file
      2 --- pack into cfg file
  -t  pack type (pack mode only)
      0 --- compress
      1 --- compress, encrypt with default key
      2 --- compress, encrypt with user key
  -k  aescbc encrypt & decrypt key
  -v  aescbc encrypt & decrypt iv
  -g  generate aescbc key method
      0 --- sha256(default, if the "-k" option is not specified)
      1 --- md5, sha256(default, if the "-k" option is specified)
  -n  device model name.(only used to pack into cfg. default: ZXHN F7015TV3)
  -l  byte order.(only used to pack into cfg. default: 0)
      0 --- big endian
      1 --- little endian
  -c  cfg type (only used to pack into cfg. default: 2)
  -d  defcfg type (only used to pack into cfg. default: 0)

ZTE G7615 key path:/tagparam/paramtag, download to local dir.


#/bin/sh
key=$(strings ./paramtag | grep -oE  '\w{32}' | head -n1)
#unpackage and decrypt
./ztecfg -i ./db_user_cfg.xml -o ./cfg.txt -k "${key}"
#encrypt and package
#./ztecfg -i ./cfg.txt -o ./db_user_cfg-new.xml -m 1 -t 2 -k "${key}"

FYI:https://www.right.com.cn/forum/thread-8394902-1-2.html

About

ZTE CFG file and XML file unpacking and packaging tool.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 99.0%
  • Makefile 1.0%