Skip to content

Commit

Permalink
Update abstracts.py
Browse files Browse the repository at this point in the history
  • Loading branch information
doomedraven authored Sep 5, 2019
1 parent e6f7e1f commit af3dda8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/cuckoo/common/abstracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@
if repconf.mitre.enabled:
try:
from pyattck import Attck
mitre = Attck(os.path.join(CUCKOO_ROOT, repconf.mitre.local_file))
attack_file = repconf.mitre.get("local_file", False)
if attack_file:
attack_file = os.path.join(CUCKOO_ROOT, attack_file)
else:
attack_file = False
mitre = Attck(attack_file)
HAVE_MITRE = True
log.error("Missed pyattck dependency")
except ImportError:
Expand Down

0 comments on commit af3dda8

Please sign in to comment.