From 70652ecfa7ea2ad057167a7907a0acbdd620c0f4 Mon Sep 17 00:00:00 2001 From: Sascha Rommelfangen Date: Mon, 29 May 2017 10:51:22 +0200 Subject: [PATCH] 'upload sample' - needs fix from pymisp --- mail_to_misp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail_to_misp.py b/mail_to_misp.py index e8c5a50..d105e5d 100755 --- a/mail_to_misp.py +++ b/mail_to_misp.py @@ -220,5 +220,5 @@ if stdin_used: _, output_path = tempfile.mkstemp() output = open(output_path, 'wb') output.write(part.get_payload(decode=True)) - misp.upload_sample(event_id=new_event, filepath=output_path, filename=filename, category='Artifacts dropped', to_ids=True) + misp.upload_sample(filename, output_path, new_event, distribution=None, to_ids=True, category=None, comment=None, info='My Info', analysis=None, threat_level_id=None) output.close()