From 9feaefff67eaa150d044799a4c909fe8593ff085 Mon Sep 17 00:00:00 2001 From: Plato Mavropoulos Date: Tue, 15 Jan 2019 16:10:55 +0200 Subject: [PATCH] AMI BIOS Guard Extractor v2.0 Any data after the end of PFAT, as dictated by the Main Header, are now appended to the final unpacked image. --- AMI BIOS Guard Extractor/AMI_PFAT_Extract.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/AMI BIOS Guard Extractor/AMI_PFAT_Extract.py b/AMI BIOS Guard Extractor/AMI_PFAT_Extract.py index e3fc6f1..ae2a82e 100644 --- a/AMI BIOS Guard Extractor/AMI_PFAT_Extract.py +++ b/AMI BIOS Guard Extractor/AMI_PFAT_Extract.py @@ -3,10 +3,10 @@ """ AMI PFAT Extract AMI BIOS Guard Extractor -Copyright (C) 2018 Plato Mavropoulos +Copyright (C) 2018-2019 Plato Mavropoulos """ -print('AMI BIOS Guard Extractor v1.0') +print('AMI BIOS Guard Extractor v2.0') import os import sys @@ -179,6 +179,8 @@ for input_file in pfat : block_name = blocks[i][0] block_start = block_data_end + block_rsa_size + final_image += buffer[block_start:] # Append any data after the end of PFAT + with open('%s_unpacked.bin' % os.path.basename(input_file), 'wb') as final : final.write(final_image) else :