GithubHelp home page GithubHelp logo

zhang00963 / ctce8_cfg_tool Goto Github PK

View Code? Open in Web Editor NEW

This project forked from corberan/ctce8_cfg_tool

0.0 1.0 0.0 12 KB

A tool for packing/unpacking ZTE Optical Modem configuration file

Rust 100.00%

ctce8_cfg_tool's Introduction

ctce8_cfg_tool

A tool for packing/unpacking ZTE Optical Modem configuration file

打包/解包中兴电信光猫 CTCE8 格式 cfg 配置文件工具

用法:

.\ctce8_cfg_tool.exe unpack "E:\e8_Config_Backup\ctce8_ZXHN_F450.cfg" ctce8_ZXHN_F450.xml
.\ctce8_cfg_tool.exe pack ctce8_ZXHN_F450.xml ctce8_ZXHN_F450.cfg "ZXHN F450"

pack 打包命令的第三个参数是光猫设备名,一般为配置文件名中的字段。如我得到的配置文件名为 ctce8_ZXHN_F450.cfg,那么这个字符串就是 "ZXHN F450",注意中间是空格。

准确描述见源码 main.rs#L354,Seek 跳过的部分就是这个字符串,可用 16 进制编辑器查看。

注意:

  • 操作有风险,请做好备份工作之后再继续。
  • 只在电信光猫 ZXHN F450 v2.0 上测试过。使用工具解包再打包回 cfg 文件,与光猫生成的 cfg 文件相同,修改后的重新打包的 cfg 文件也可以被光猫正确读取。
  • 建议使用此工具解包而不是选择 offzip 等工具,因为解包代码中有仔细的校验逻辑,不兼容的 cfg 文件会有提示。

感谢

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.