Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
fwhunt-scan — 用于分析 UEFI 固件并使用 FwHunt 规则检查 UEFI 模块的工具 | Kitploit
工具/GitHubGitHub/binarly-io/fwhunt-scan
漏洞分析逆向工程二进制分析固件分析
GitHubbinarly-io/fwhunt-scan

fwhunt-scan

用于分析 UEFI 固件并使用 FwHunt 规则检查 UEFI 模块的工具

查看仓库
243331年前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

License: GPL v3 fwhunt-scan CI fwhunt-scan pypi

fwhunt 标志

FwHunt 社区扫描器

用于分析 UEFI 固件并使用 FwHunt 规则 检查 UEFI 模块的工具。

依赖

rizin (v0.6.2)

安装

使用 pip 安装(已在 python3.6 及以上版本测试):

root@kitploit:~
$ python -m pip install fwhunt-scan

手动安装:

root@kitploit:~
$ git clone https://github.com/binarly-io/fwhunt-scan.git && cd fwhunt-scan
$ python setup.py install

示例

使用脚本

分析/扫描独立模块:

root@kitploit:~
$ python3 fwhunt_scan_analyzer.py analyze-module {image_path} -o out.json
$ python3 fwhunt_scan_analyzer.py scan-module --rule {rule_path} {image_path}

扫描整个固件镜像:

root@kitploit:~
$ python3 fwhunt_scan_analyzer.py scan-firmware -r rules/BRLY-2021-001.yml -r rules/BRLY-2021-004.yml -r rules/RsbStuffingCheck.yml test/fw.bin

使用 Docker

为避免安装依赖,你可以使用 Docker 镜像。

你可以按如下方式在本地构建 Docker 镜像:

root@kitploit:~
docker build -t fwhunt_scan .

或者从 ghcr 拉取最新镜像。

使用示例:

root@kitploit:~
docker run --rm -it -v {module_path}:/tmp/image:ro \
  fwhunt_scan analyze-module /tmp/image # to analyze EFI module

docker run --rm -it -v {module_path}:/tmp/image:ro -v {rule_path}:/tmp/rule.yml:ro \
  fwhunt_scan scan-module /tmp/image -r /tmp/rule.yml # to scan EFI module with specified FwHunt rule

docker run --rm -it -v {module_path}:/tmp/image:ro -v {rule_path}:/tmp/rule.yml:ro \
  fwhunt_scan scan-firmware /tmp/image -r /tmp/rule.yml # to scan firmware image with specified FwHunt rule

docker run --rm -it -v {module_path}:/tmp/image:ro -v {rules_directory}:/tmp/rules:ro \
  fwhunt_scan scan-firmware /tmp/image --rules_dir /tmp/rules # to scan firmware image with specified rules directory

所有这些步骤都已自动化在 fwhunt_scan_docker.py 脚本中:

root@kitploit:~
python3 fwhunt_scan_docker.py analyze-module {module_path} # to analyze EFI module

python3 fwhunt_scan_docker.py scan-module -r {rule_path} {module_path} # to scan EFI module with specified FwHunt rule

python3 fwhunt_scan_docker.py scan-firmware -r {rule_path} {firmware_path} # to scan firmware image with specified FwHunt rule

python3 fwhunt_scan_docker.py scan-firmware --rules_dir {rules_directory} {firmware_path} # to scan firmware image with specified rules directory

通过代码

UefiAnalyzer

基本用法示例:

root@kitploit:~
from fwhunt_scan import UefiAnalyzer

...
uefi_analyzer = UefiAnalyzer(image_path=module_path)
print(uefi_analyzer.get_summary())
uefi_analyzer.close()
root@kitploit:~
from fwhunt_scan import UefiAnalyzer

...
with UefiAnalyzer(image_path=module_path) as uefi_analyzer:
    print(uefi_analyzer.get_summary())

在 Linux 平台上,你可以传入 blob 而不是文件进行分析:

root@kitploit:~
from fwhunt_scan import UefiAnalyzer

...
with UefiAnalyzer(blob=data) as uefi_analyzer:
    print(uefi_analyzer.get_summary())

UefiScanner

root@kitploit:~
from fwhunt_scan import UefiAnalyzer, UefiRule, UefiScanner

...
uefi_analyzer = UefiAnalyzer(module_path)

# rule1 and rule2 - contents of the rules on YAML format
uefi_rules = [UefiRule(rule1), UefiRule(rule2)]

scanner = UefiScanner(uefi_analyzer, uefi_rules)
result = scanner.result
下载工具