Skip to content

Commit

Permalink
uefi firmware parser installation bugfix 2
Browse files Browse the repository at this point in the history
  • Loading branch information
jstucke committed Jan 31, 2023
1 parent e2491a4 commit e0412e8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions fact_extractor/plugins/unpacking/uefi/code/uefi.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
'''
This plugin unpacks UEFI Firmware Container.
'''
import os

from common_helper_process import execute_shell_command
from helperFunctions.file_system import get_fact_bin_dir

NAME = 'UEFI'
MIME_PATTERNS = ['firmware/uefi']
VERSION = '0.5'

TOOL_PATH = os.path.join(get_fact_bin_dir(), 'uefi-firmware-parser')
VERSION = '0.6'


def unpack_function(file_path, tmp_dir):
Expand All @@ -19,7 +15,7 @@ def unpack_function(file_path, tmp_dir):
tmp_dir should be used to store the extracted files.
Optional: Return a dict with meta information
'''
extraction_command = 'python3 {} --superbrute --extract --output {} {}'.format(TOOL_PATH, tmp_dir, file_path)
extraction_command = f'uefi-firmware-parser --superbrute --extract --output {tmp_dir} {file_path}'
output = execute_shell_command(extraction_command)
return {'output': output}

Expand Down

0 comments on commit e0412e8

Please sign in to comment.