dipcore / mstar-bin-tool

Scripts to manipulate Mstar firmware binaries (e.g. MstarUpgrade.bin, LetvUpgrade.bin etc)
274 stars 130 forks source link

Could not find header script #21

Open tolgatasci opened 3 years ago

tolgatasci commented 3 years ago

[i] Analizing header ... [i] Saving header script to unpacked\~header_script ... [i] Parsing script ...

offset = header.find('\xff'.encode(encoding='iso-8859-1'))
if offset != -1:
    headerScript = header[:offset].decode()
    headerScriptFound = True

if not headerScriptFound:
    print ("[!] Could not find header script!")