Start work on parsing firmware payload.

This commit is contained in:
2019-10-12 19:32:22 +02:00
parent 9d9dc3671b
commit dd682c6da1
2 changed files with 13 additions and 1 deletions
+7
View File
@@ -25,4 +25,11 @@ class RgnBin:
if self.filename is None:
return False
with open(self.filename, "rb") as f:
rawdata = f.read()
f.close()
self.load_from_bytes(rawdata)
def load_from_bytes(self, payload: bytes):
print(repr(payload[0:10]))
jmp = unpack("<L", payload[0:4])[0]
print("{:08x}".format(jmp))