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('