mirror of
https://huihui.cat/mirrors/MikroTikPatch.git
synced 2025-12-10 03:24:37 +01:00
modified: patch.py
This commit is contained in:
parent
9f2fc0b95c
commit
4742f68908
1 changed files with 0 additions and 1 deletions
1
patch.py
1
patch.py
|
|
@ -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':
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue