mkst / zte-config-utility

Scripts for decoding/encoding config.bin for ZTE routers
MIT License
234 stars 77 forks source link

[BUG] Integrity check failed. #86

Open daVinci13 opened 10 months ago

daVinci13 commented 10 months ago

Using: python examples/decode.py --serial ZTEEG9GM2U00328 config.bin config.xml --try-all-known-keys Detected signature: ZXHN H267N V1.1 Detected payload type 4 Trying key: '8cc72b05705d5c46ZTEEG9GM2U00328' iv: '667b02a85c61c786ZTEEG9GM2U00328' generated from serial: 'ZTEEG9GM2U00328' Trying key: 'ZXHNH267NV1.1Key02721401' iv: 'ZXHNH267NV1.1Iv02721401' generated from signature: 'ZXHN H267N V1.1' Successfully decoded using signature: 'ZXHN H267N V1.1'!

I decoded config.bin, then i enabled SSH and encoded it with: python examples/encode.py --serial ZTEEG9GM2U00328 --signature 'ZXHN H267N V1.1' config.xml config2.bin Using serial: ZTEEG9GM2U00328 Done!

And when i try to upload the new bin file i get: "Integrity check failed." Then i tried to encode unmodified config.xml (freshly decoded) I get same error.

When i run: fc.exe /b config.bin config2.bin I get: FC: config.bin longer than CONFIG2.BIN

Then I tried: python .\examples\just_compress.py config2.bin config3.bin and I get: FC: CONFIG3.BIN longer than config.bin

And upon every upload try i get Integrity check failed.

Any ides on how to fix this?