mirror of
https://github.com/volatilityfoundation/volatility
synced 2026-06-08 18:04:46 +00:00
13c6343e84
Current version of pyinstaller cannot accept an empty DESTINATION, assuming current directory. https://github.com/pyinstaller/pyinstaller/issues/3066. This affects "hook-yara.py", "hook-distorm3.py" and "hook-openpyxl.py"
23 lines
692 B
Python
Executable File
23 lines
692 B
Python
Executable File
# Distorm3 hook
|
|
#
|
|
# This currently contains the hardcoded location for the standard distorm3.dll install
|
|
# It could be improved by carrying out a search, or using sys.path
|
|
#
|
|
# This also requires the distorm3 module to be modified with the following patch:
|
|
|
|
# import sys
|
|
# if hasattr(sys, '_MEIPASS'):
|
|
# _distorm_path = sys._MEIPASS
|
|
|
|
import os
|
|
import sys
|
|
|
|
datas = []
|
|
|
|
for path in sys.path:
|
|
if os.path.exists(os.path.join(path, "distorm3", "distorm3.dll")):
|
|
datas.append((os.path.join(path, "distorm3", "distorm3.dll"), "."))
|
|
if os.path.exists(os.path.join(path, "distorm3", "libdistorm3.so")):
|
|
datas.append((os.path.join(path, "distorm3", "libdistorm3.so"), "."))
|
|
|