Skip to main content

Tools for analyzing UEFI firmware using radare2

Project description

License: GPL v3 uefi_r2 CI

uefi_r2

Tools for analyzing UEFI firmware using radare2

Dependencies

radare2

radare2 4.5.0-git 24764 @ linux-x86-64 git.4.4.0-225-g1cb18df8b
commit: 1cb18df8b4dfd2ec98ca6697b5efb9381e1d2f40

Installation

python setup.py install

Example

With script

./uefi_r2_analyzer.py analyze-image {image_path} -o out.json
./uefi_r2_analyzer.py scan --rule {rule_path} {image_path}

From code

from uefi_r2.uefi_analyzer import UefiAnalyzer

...
summary = UefiAnalyzer.r2_get_summary(image_path, debug=True)
from uefi_r2.uefi_analyzer import UefiAnalyzer
from uefi_r2.uefi_scanner import UefiRule, UefiScanner

...
uefi_analyzer = UefiAnalyzer(image_path)
uefi_rule = UefiRule(rule)
scanner = UefiScanner(uefi_analyzer, uefi_rule)
result = scanner.result

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uefi_r2-1.0.2.tar.gz (105.5 kB view hashes)

Uploaded Source

Built Distribution

uefi_r2-1.0.2-py3-none-any.whl (120.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page