Converted magic byte to utf-8 encoded string in output.

This commit is contained in:
Achim D. Brucker 2016-09-22 21:47:51 +01:00
parent 4a700a55ae
commit c3518351e8
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ def print_crx_info(verbose,crx):
print("Filename: "+crx.file)
print("Header size: "+str(crx.header_len))
print("Size: "+str(crx.header_len+len(crx.data)))
print("Magic byte: "+str(crx.magic)+" ("+magic+")")
print("Magic byte: "+str(crx.magic.decode("utf-8"))+" ("+magic+")")
print("Version: "+str(crx.version))
print("Signature: "+sig)
print("Public Key ["+str(crx.pk_len)+"]:")