modified: patch.py

This commit is contained in:
zyb 2024-07-12 03:10:51 +08:00
parent 9f2fc0b95c
commit 4742f68908

View File

@ -103,7 +103,6 @@ def patch_elf(data: bytes,key_dict:dict):
return new_data
def patch_kernel(data:bytes,key_dict):
assert data[:2] == b'MZ', 'not a valid pe file'
if data[:2] == b'MZ':
print('patching EFI Kernel')
if data[56:60] == b'ARM\x64':