Hacking_Huawei_HG8012H_ONT icon indicating copy to clipboard operation
Hacking_Huawei_HG8012H_ONT copied to clipboard

HuaweiHeader bytes

Open mmuhsin115 opened this issue 4 years ago • 5 comments

Hello, do you have the meaning of the last 16bytes of the huaweiheader, see pics/19checks.png. In this case it's CF DE 14 57 02 00 00 00.

mmuhsin115 avatar May 27 '20 18:05 mmuhsin115

Hi, I'm not sure but 5714DECF 'could' be a timestamp.

logon84 avatar May 27 '20 19:05 logon84

Seem correct, thanks bro...

mmuhsin115 avatar May 28 '20 12:05 mmuhsin115

I have tried modifying the firmware .bin file, i.e HG8012HV300R015C10SPC150_common_all.bin and then upload it using the WebUI as a firmware update, Seem there are some other header checks in the file, can you help me. For instance at the start of the bin file;

48 57 4E 50 --seem to be a generic word 00 4C 19 9C --the length of the file minus 4C 28 B7 09 68 -- 9C 10 00 00 -- 52 66 3F 6B -- 0B 00 00 00 --

I have tried comparing the firmware with the this one; http://www.mediafire.com/file/0081lxobklky0k6/HG8xxxV300R015C10SPC130_by_lahcen_lembaraa.zip/file

mmuhsin115 avatar May 29 '20 16:05 mmuhsin115

Hi. I think you are confusing things a bit.....the huawei header that I describe on the article is part of the ROOTFS partittion in NAND. A firmware update file is not just a plain rootfs file, it should probably contain different headers and additional checks. I just remember that I saw a Huawei firm packager some time ago, you can check it here, maybe it helps you determine the header format&checks of a firmware update file:

https://github.com/LeeXiaolan/hwfw-tool

Bye

logon84 avatar May 29 '20 20:05 logon84

Thanks, this tool is fantastic ...

mmuhsin115 avatar Jun 03 '20 04:06 mmuhsin115