Skip to content

Commit

Permalink
Update malheur.py
Browse files Browse the repository at this point in the history
  • Loading branch information
doomedraven authored May 15, 2024
1 parent 30a130d commit b268a0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/reporting/malheur.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def run(self, results: dict):
cfgpath = os.path.join(CUCKOO_ROOT, "conf", "malheur.conf")
reportsdir = os.path.join(basedir, "reports")
task_id = str(results["info"]["id"])
outputfile = os.path.join(basedir, f"malheur.txt.{hashlib.md5(str(random.random())).hexdigest()}")
outputfile = os.path.join(basedir, f"malheur.txt.{hashlib.md5(str(random.random()).encode()).hexdigest()}")
with contextlib.suppress(Exception):
os.makedirs(reportsdir)
mist = mist_convert(results)
Expand Down

0 comments on commit b268a0c

Please sign in to comment.