ergrelet / unlicense

Dynamic unpacker and import fixer for Themida/WinLicense 2.x and 3.x.
GNU General Public License v3.0
1.03k stars 188 forks source link

AttributeError: 'NoneType' object has no attribute 'get_section' #71

Closed ghost closed 1 year ago

ghost commented 1 year ago

Traceback (most recent call last): File "unlicense__main__.py", line 4, in File "unlicense\application.py", line 20, in main File "fire\core.py", line 141, in Fire File "fire\core.py", line 466, in _Fire File "fire\core.py", line 681, in _CallAndUpdateTrace File "unlicense\application.py", line 43, in run_unlicense File "unlicense\version_detection.py", line 14, in detect_winlicense_version AttributeError: 'NoneType' object has no attribute 'get_section' [28996] Failed to execute script 'main' due to unhandled exception!

xiu-shen commented 1 year ago

hello i have the analogus problem, Have you solved this problem now?

ergrelet commented 1 year ago

Hi, the latest version from main has better logging in these cases now. It's probably that you're trying to unpack something that's not a valid executable (i.e., PE) file.