From 06cfebc92fca21e1fb407b52cbcddc1a8a0b2162 Mon Sep 17 00:00:00 2001 From: Deborah Servili Date: Wed, 16 Aug 2017 12:32:34 +0200 Subject: [PATCH] fix mitre-cti script - replace 'name' by 'value' --- tools/mitre-cti/create_attack-pattern_galaxy.py | 2 +- tools/mitre-cti/create_intrusion-set_galaxy.py | 2 +- tools/mitre-cti/create_malware_galaxy.py | 2 +- tools/mitre-cti/create_tool_galaxy.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/mitre-cti/create_attack-pattern_galaxy.py b/tools/mitre-cti/create_attack-pattern_galaxy.py index e941efd..aab7a88 100644 --- a/tools/mitre-cti/create_attack-pattern_galaxy.py +++ b/tools/mitre-cti/create_attack-pattern_galaxy.py @@ -23,7 +23,7 @@ for element in os.listdir('.'): value = {} value['description'] = temp['description'] value['uuid'] = re.search('--(.*)$', temp['id']).group(0)[2:] - value['name'] = temp['name'] + value['value'] = temp['name'] value['meta'] = {} value['meta']['refs'] = [] for reference in temp['external_references']: diff --git a/tools/mitre-cti/create_intrusion-set_galaxy.py b/tools/mitre-cti/create_intrusion-set_galaxy.py index a89db52..ee2e1ef 100644 --- a/tools/mitre-cti/create_intrusion-set_galaxy.py +++ b/tools/mitre-cti/create_intrusion-set_galaxy.py @@ -23,7 +23,7 @@ for element in os.listdir('.'): value = {} value['description'] = temp['description'] value['uuid'] = re.search('--(.*)$', temp['id']).group(0)[2:] - value['name'] = temp['name'] + value['value'] = temp['name'] value['meta'] = {} value['meta']['synonyms'] = temp['aliases'] value['meta']['refs']= [] diff --git a/tools/mitre-cti/create_malware_galaxy.py b/tools/mitre-cti/create_malware_galaxy.py index 5f453d0..e6009c7 100644 --- a/tools/mitre-cti/create_malware_galaxy.py +++ b/tools/mitre-cti/create_malware_galaxy.py @@ -23,7 +23,7 @@ for element in os.listdir('.'): value = {} value['description'] = temp['description'] value['uuid'] = re.search('--(.*)$', temp['id']).group(0)[2:] - value['name'] = temp['name'] + value['value'] = temp['name'] value['meta'] = {} value['meta']['refs'] = [] for reference in temp['external_references']: diff --git a/tools/mitre-cti/create_tool_galaxy.py b/tools/mitre-cti/create_tool_galaxy.py index 1a6a509..c49cb74 100644 --- a/tools/mitre-cti/create_tool_galaxy.py +++ b/tools/mitre-cti/create_tool_galaxy.py @@ -23,7 +23,7 @@ for element in os.listdir('.'): value = {} value['description'] = temp['description'] value['uuid'] = re.search('--(.*)$', temp['id']).group(0)[2:] - value['name'] = temp['name'] + value['value'] = temp['name'] value['meta'] = {} value['meta']['refs'] = [] for reference in temp['external_references']: