mirror of
https://github.com/elseif/MikroTikPatch.git
synced 2025-01-23 13:35:09 +03:00
modified: patch.py
This commit is contained in:
parent
9f2fc0b95c
commit
4742f68908
1
patch.py
1
patch.py
@ -103,7 +103,6 @@ def patch_elf(data: bytes,key_dict:dict):
|
|||||||
return new_data
|
return new_data
|
||||||
|
|
||||||
def patch_kernel(data:bytes,key_dict):
|
def patch_kernel(data:bytes,key_dict):
|
||||||
assert data[:2] == b'MZ', 'not a valid pe file'
|
|
||||||
if data[:2] == b'MZ':
|
if data[:2] == b'MZ':
|
||||||
print('patching EFI Kernel')
|
print('patching EFI Kernel')
|
||||||
if data[56:60] == b'ARM\x64':
|
if data[56:60] == b'ARM\x64':
|
||||||
|
Loading…
Reference in New Issue
Block a user