zte-config-utility icon indicating copy to clipboard operation
zte-config-utility copied to clipboard

ZTE ZXHN H267N V1.1 config.bin "AssertionError"

Open nafatrue opened this issue 5 years ago • 20 comments

hi i have this config.bin from H267N v1.1 i tried to decode but I have this error "AssertionError", t tried to find the problem but no success.

i executed info.py it gives me :+1:

Signature: ZXHN H267N V1.1 Payload Type: 4 (UNKNOWN) Payload Start: 87 Decompressed size: 0 bytes 2nd last chunk: 0 Chunk size: 0 bytes Payload CRC: 0 Header CRC: 0

the error I got when I executed decode.py without a key is:

Traceback (most recent call last): File "examples/decode.py", line 41, in <module> main() File "examples/decode.py", line 36, in main payload_type = zcu.zte.read_payload_type(infile) File "/home/user/.local/lib/python3.8/site-packages/zcu-0.1.0-py3.8.egg/zcu/zte.py", line 51, in read_payload_type File "/home/user/.local/lib/python3.8/site-packages/zcu-0.1.0-py3.8.egg/zcu/zte.py", line 45, in read_payload AssertionError

i found a key in the internet I used and also no success always same error:

python3 examples/decode.py config.bin config.xml --key 'tHG@Ti&GVh@ql3XN' Traceback (most recent call last): File "examples/decode.py", line 41, in <module> main() File "examples/decode.py", line 36, in main payload_type = zcu.zte.read_payload_type(infile) File "/home/user/.local/lib/python3.8/site-packages/zcu-0.1.0-py3.8.egg/zcu/zte.py", line 51, in read_payload_type File "/home/user/.local/lib/python3.8/site-packages/zcu-0.1.0-py3.8.egg/zcu/zte.py", line 45, in read_payload AssertionError

please any chance to solve this I want to change router from the company and they are hiding DSL authentication credentials username and password for DATA and SIP.

nafatrue avatar Dec 03 '20 11:12 nafatrue

I don't know if it means anything but the payloat type 4 is the same as my router, so you could try the --serial option instead of the --key one (after --serial you should specify the serial number of your router). Oh, and if your internet provider is like mine, they have modified the firmware so that there's no voip credentials in the config.bin file (but if the --serial option works I can tell you a possible way to get it).

olivluca avatar Dec 03 '20 13:12 olivluca

yes the firmware is modified by the provider I can't get credentials of DATA & SIP i already tried the --serial option but no success I don't know if it is necessary to use Read_payload to decode the config.bin file. and I think --serial option does only work with ZXHN H298A router but not with ZXHN H267N Model.

nafatrue avatar Dec 03 '20 15:12 nafatrue

Yes, probably they used a different encryption scheme or a different password, sorry.

olivluca avatar Dec 03 '20 16:12 olivluca

yes definitely that's the problem encryption i searched to find AES encryption key but no success till now

nafatrue avatar Dec 03 '20 16:12 nafatrue

@nafatrue any luck with that problem i have the same router and i really need the user/pass ?

yvsser1 avatar Jul 06 '21 22:07 yvsser1

This tools will not work for you , You are lucky my friends because you have the same router as i have .i did some work on it lately (dumping the 128m nand and analyzing the cspd file) and it was very easy . if you want what inside the config send me the config.bin file to my email : [email protected] and i will send you back what you want for free. do not post the config.bin here because it's contain your ISP informations that someone could use

samtimber avatar Nov 29 '21 22:11 samtimber

This tools will not work for you , You are lucky my friends because you have the same router as i have .i did some work on it lately (dumping the 128m nand and analyzing the cspd file) and it was very easy . if you want what inside the config send me the config.bin file to my email : [email protected] and i will send you back what you want for free. do not post the config.bin here because it's contain your ISP informations that someone could use

Could you please share the process so we could individually do it and also have the info in case you are not available at some point?

geoleven avatar Nov 30 '21 12:11 geoleven

thanks to @samtimber the config file for my ZTE ZXHN H267N is decrypted

yvsser1 avatar Nov 30 '21 17:11 yvsser1

This tool is open source to benefit anyone and everyone interested in having more control over their ZTE hardware. Please help improve the tool by sharing your knowledge @samtimber

mkst avatar Nov 30 '21 20:11 mkst

thanks to @samtimber

mstDr avatar Dec 23 '21 13:12 mstDr

Take a look at pm? @samtimber

kies83 avatar Dec 23 '21 13:12 kies83

@samtimber i sent you an email with the config file, can you please decrypte it and send me back the pppoe username and password. Thanks

AchDaw avatar Jan 14 '22 12:01 AchDaw

Thank you very much samtimber config file is decrypted

AchDaw avatar Jan 20 '22 15:01 AchDaw

Hi, @samtimber! Can i send You config.bin file for decrypton??

AlbertKirkovich avatar Feb 02 '22 09:02 AlbertKirkovich

Hi, @samtimber ! Thank you so much for decrypt! Sincerely, Pavel.

AlbertKirkovich avatar Feb 07 '22 13:02 AlbertKirkovich

@samtimber If you could reply to the email (markosluk...) I sent you 7 days ago with the decrypted information, I would appreciate it.

Markos33 avatar Mar 21 '22 13:03 Markos33

@samtimber, do you still provide help? It would be appreciated. Regards

FrankieTankie avatar Nov 01 '23 18:11 FrankieTankie

Can you try using the latest version of the repo, also can you try the examples/auto.py script?

mkst avatar Aug 26 '24 08:08 mkst

Thank you for the question but unfortunately, I don't have that router anymore. All the best!

On Mon, Aug 26, 2024 at 11:26 AM Mark Street @.***> wrote:

Can you try using the latest version of the repo, also can you try the examples/auto.py script?

— Reply to this email directly, view it on GitHub https://github.com/mkst/zte-config-utility/issues/9#issuecomment-2309640943, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYKPYAWF6GKUNDM2EIL6F43ZTLRDFAVCNFSM6AAAAABNDQX2TGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBZGY2DAOJUGM . You are receiving this because you commented.Message ID: @.***>

Markos33 avatar Aug 26 '24 20:08 Markos33

I have one H267N V1.1 left, checked the script auto.py - it works!

C:\Install\Python\Python313>python auto.py config_router12.bin ccc.bin Successfully decrypted and decompressed config_router12.bin using (key, iv): ('ZXHNH267NV1.1Key02721401', 'ZXHNH267NV1.1Iv02721401')

ccc.bin file is read successfully. Thanks a lot!

AlbertKirkovich avatar Sep 18 '24 09:09 AlbertKirkovich