New scripts, updated current scripts, new repo license

Added Dell PFS BIOS Extractor v3.0 (removed Dell HDR Module Extractor v2.0)

Added Apple EFI Package Extractor v1.1

Apple EFI File Renamer v1.3 supports calling from Apple EFI Package Extractor utility

Apple EFI IM4P Splitter v1.3 supports calling from Apple EFI Package Extractor utility

Apple EFI Sucatalog Link Grabber v1.2 stores output text file with unique name for easier comparisons

Repository is now licensed under BSD+Patent

All scripts now require Python 3.7 or newer
This commit is contained in:
Plato Mavropoulos 2019-08-07 18:49:09 +03:00
parent 19a3a56c35
commit 04bbcf27fb
8 changed files with 875 additions and 808 deletions

View file

@ -3,10 +3,10 @@
"""
Apple EFI Split
Apple EFI IM4P Splitter
Copyright (C) 2018 Plato Mavropoulos
Copyright (C) 2018-2019 Plato Mavropoulos
"""
print('Apple EFI IM4P Splitter v1.2')
print('Apple EFI IM4P Splitter v1.3')
import os
import re
@ -15,12 +15,19 @@ import sys
im4p = re.compile(br'\x16\x04\x49\x4D\x34\x50\x16\x04') # Apple IM4P
ifd = re.compile(br'\x5A\xA5\xF0\x0F.{172}\xFF{16}', re.DOTALL) # Intel Flash Descriptor
if len(sys.argv) >= 2 :
# Get input catalog file paths
if len(sys.argv) >= 3 and sys.argv[1] == '-skip' :
# Called via Apple_EFI_Package
apple_im4p = sys.argv[2:]
skip_pause = True
elif len(sys.argv) >= 2 :
# Drag & Drop or CLI
apple_im4p = sys.argv[1:]
skip_pause = False
else :
# Folder path
apple_im4p = []
skip_pause = False
in_path = input('\nEnter the full folder path: ')
print('\nWorking...')
for root, dirs, files in os.walk(in_path):
@ -73,4 +80,6 @@ for input_file in apple_im4p :
spi_start += spi_size
input('\nDone!')
print('\n Split IM4P file into %d SPI/BIOS image(s)!' % len(ifd_count))
if not skip_pause : input('\nDone!')