From b94423781ca4313e9f6bfa504fa2b09985db0f0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A9borah=20Servili?= Date: Fri, 15 Apr 2016 13:47:13 +0200 Subject: [PATCH] add function add filename --- pymisp/api.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pymisp/api.py b/pymisp/api.py index 73a16c7..8ab9b72 100644 --- a/pymisp/api.py +++ b/pymisp/api.py @@ -408,6 +408,11 @@ class PyMISP(object): return self._send_attributes(event, attributes, proposal) + def add_filename(self, event, filename, category='Artifacts dropped', to_ids=False, comment=None, distribution=None, proposal=False): + attributes = [] + attributes.append(self._prepare_full_attribute(category, 'filename', filename, to_ids, comment, distribution)) + return self._send_attributes(event, attributes, proposal) + def add_regkey(self, event, regkey, rvalue=None, category='Artifacts dropped', to_ids=True, comment=None, distribution=None, proposal=False): type_value = '{}' value = '{}'