Various data structures and parsing tools for UEFI firmware.
Actively maintained. Last release 2 weeks ago, commits in 5 of the last 26 weeks. A safe choice.
pip install uefi-firmwareUEFI Firmware Parser
uefi_firmware is a Python module and command-line tool for parsing, extracting,
and recreating UEFI firmware. Beyond UEFI firmware volumes and capsules, it also
parses Intel flash descriptors, Intel ME modules, Dell PFS updates, and AMI Aptio
capsules.
Installation
The package is published on PyPI as uefi_firmware
and requires Python 3.10 or newer.
pip install uefi_firmware
Pre-built wheels are available for Linux, macOS, and Windows. On other platforms pip
builds the bundled C compression extension from source, which needs a C compiler and
the Python development headers (the python3-dev package on Debian and Ubuntu).
To install from a checkout of this repository:
git clone https://github.com/theopolis/uefi-firmware-parser
cd uefi-firmware-parser
pip install .
Command-line usage
Installing the package adds a uefi-firmware-parser command:
$ uefi-firmware-parser -h
usage: uefi-firmware-parser [-h] [-b] [--superbrute] [--depex] [-q]
[--color {always,never,auto}] [-p] [-o OUTPUT]
[-O] [-c] [-e] [-g GENERATE] [-j] [--test]
[--verbose]
file [file ...]
Parse, and optionally output, details and data on UEFI-related firmware.
positional arguments:
file The file(s) to work on
options:
-h, --help show this help message and exit
-b, --brute The input is a blob and may contain FV headers.
--superbrute The input is a blob and may contain any sort of
firmware object
--depex The input is a DEPEX blob
-q, --quiet Do not show info.
--color {always,never,auto}
Control the use of ANSI colors in the output. (auto is
default)
-p, --nocolor Plain text output. Do not use ANSI colors. (Alias for
--color=never)
-o, --output OUTPUT Dump firmware objects to this folder.
-O, --outputfolder Dump firmware objects to a folder based on filename
${FILENAME}_output/
-c, --echo Echo the filename before parsing or extracting.
-e, --extract Extract all files/sections/volumes.
-g, --generate GENERATE
Generate a FDF, implies extraction (volumes only)
-j, --json Output in JSON format
--test Test file parsing, output name/success.
--verbose Enable verbose logging while parsing