From bb9642445aab0242bb40a968da1bfdc88ba5eeb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Wed, 12 Jul 2017 11:07:54 +0200 Subject: [PATCH] Revert "Fix OpenIOC import" This reverts commit acd6d8b0523963baecb3b6e8f4c77b1466045dd4. --- pymisp/tools/openioc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pymisp/tools/openioc.py b/pymisp/tools/openioc.py index e4328ed..337e9c1 100755 --- a/pymisp/tools/openioc.py +++ b/pymisp/tools/openioc.py @@ -226,12 +226,12 @@ def set_values(value1, value2=None): else: # Unknown mapping, assign to default attribute_values['category'] = 'External analysis' - attribute_values['type_'] = 'other' + attribute_values['type'] = 'other' # change value to composite # 127.0.0.1:80 ip-* to 127.0.0.1|80 ip-*|port - if attribute_values['type_'] in ['ip-src', 'ip-dst'] and attribute_values['value'].count(':') == 1: - attribute_values['type_'] = attribute_values['type_'] + '|port' + if attribute_values['type'] in ['ip-src', 'ip-dst'] and attribute_values['value'].count(':') == 1: + attribute_values['type'] = attribute_values['type'] + '|port' attribute_values['value'] = attribute_values['value'].replace(':', '|') attribute_values["comment"] = '{}{}'.format(extract_field(value1, 'Comment'),