mirror of https://github.com/MISP/PyMISP
Do not try to run code requiring lief
parent
9ff3739753
commit
a5531990ae
|
@ -45,6 +45,7 @@ def make_macho_objects(lief_parsed, misp_file):
|
||||||
|
|
||||||
def make_binary_objects(filepath):
|
def make_binary_objects(filepath):
|
||||||
misp_file = FileObject(filepath)
|
misp_file = FileObject(filepath)
|
||||||
|
if HAS_LIEF:
|
||||||
try:
|
try:
|
||||||
lief_parsed = lief.parse(filepath)
|
lief_parsed = lief.parse(filepath)
|
||||||
if isinstance(lief_parsed, lief.PE.Binary):
|
if isinstance(lief_parsed, lief.PE.Binary):
|
||||||
|
|
Loading…
Reference in New Issue