Added Apple EFI Package Extractor v2.0_a4

Added Apple EFI PBZX Extractor v1.0_a4

Updated Apple EFI Image Identifier v2.0_a4

Updated Apple EFI IM4P Splitter v3.0_a4

Updated Insyde iFlash/iFdPacker Extractor v2.0_a10

Improved 7-Zip parameter control
This commit is contained in:
platomav 2022-08-28 20:02:55 +03:00
parent 389c30bb65
commit 0e170334c6
9 changed files with 482 additions and 20 deletions

View file

@ -7,7 +7,7 @@ Insyde iFlash/iFdPacker Extractor
Copyright (C) 2022 Plato Mavropoulos
"""
TITLE = 'Insyde iFlash/iFdPacker Extractor v2.0_a9'
TITLE = 'Insyde iFlash/iFdPacker Extractor v2.0_a10'
import os
import sys
@ -175,9 +175,9 @@ def insyde_packer_extract(input_buffer, extract_path, padding=0):
with open(sfx_path, 'wb') as sfx_file:
sfx_file.write(sfx_buffer)
if is_szip_supported(sfx_path, padding + 8, password=INS_SFX_PWD, check=True):
if is_szip_supported(sfx_path, padding + 8, args=[f'-p{INS_SFX_PWD}'], check=True):
if szip_decompress(sfx_path, extract_path, 'Insyde iFdPacker > 7-Zip SFX',
padding + 8, password=INS_SFX_PWD, check=True) == 0:
padding + 8, args=[f'-p{INS_SFX_PWD}'], check=True) == 0:
os.remove(sfx_path)
else:
return 125