binarly-io / fwhunt-scan

Tools for analyzing UEFI firmware and checking UEFI modules with FwHunt rules
GNU General Public License v3.0
210 stars 30 forks source link

not compatible with python 3.6.x #42

Closed MatchPoint closed 2 years ago

MatchPoint commented 2 years ago

Python 3.8.x and 3.9.x worked fine. 3.6.x errored our with the following. May want to update the readme

C:\uefi_r2>python setup.py install Traceback (most recent call last): File "setup.py", line 2, in from uefi_r2 import author, email, version File "C:\uefi_r2\uefi_r2__init__.py", line 11, in from .uefi_analyzer import UefiAnalyzer, UefiAnalyzerError File "C:\uefi_r2\uefi_r2\uefi_analyzer.py", line 13, in from multiprocessing import shared_memory ImportError: cannot import name 'shared_memory'

C:\uefi_r2>python --version Python 3.6.6

yeggor commented 2 years ago

Hello. Thank you. I added shared_memory support for python3.6 and python3.7. But I should note that shared_memory works only on Linux (in conjunction with rizin): https://github.com/binarly-io/uefi_r2/blob/23366802fe2a82a01da798e36960f890cc2afee6/uefi_r2/uefi_analyzer.py#L76 So you can not use blob for UefiAnalyzer on Windows.