From bd814b57d8572d61194df45bb84fe1e058043060 Mon Sep 17 00:00:00 2001 From: zyb Date: Tue, 16 Jul 2024 13:50:22 +0800 Subject: [PATCH] modified: netinstall.py modified: npk.py --- netinstall.py | 3 +-- npk.py | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/netinstall.py b/netinstall.py index 51bcf18..352dca4 100644 --- a/netinstall.py +++ b/netinstall.py @@ -12,7 +12,6 @@ def find_7zXZ_data(data:bytes): while b'\x00\x00\x00\x00\x01\x59\x5A' in _data: offset2 = offset2 + _data.index(b'\x00\x00\x00\x00\x01\x59\x5A') + 7 _data = _data[offset2:] - offset2 return data[offset1:offset2] def patch_elf(data: bytes,key_dict:dict): @@ -136,7 +135,7 @@ def patch_netinstall(key_dict: dict,input_file,output_file=None): id,name_ptr,data_ptr,data_size = struct.unpack_from('