From 9f98a475fdb50a31a5cc996f929217578d77eb0c Mon Sep 17 00:00:00 2001 From: StefanKelm Date: Thu, 22 Mar 2018 14:20:11 +0100 Subject: [PATCH] Update create_mitre-enterprise-attack-relationship_galaxy.py --- ..._mitre-enterprise-attack-relationship_galaxy.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tools/mitre-cti/v2.0/create_mitre-enterprise-attack-relationship_galaxy.py b/tools/mitre-cti/v2.0/create_mitre-enterprise-attack-relationship_galaxy.py index 7870f2d..0bb0db8 100644 --- a/tools/mitre-cti/v2.0/create_mitre-enterprise-attack-relationship_galaxy.py +++ b/tools/mitre-cti/v2.0/create_mitre-enterprise-attack-relationship_galaxy.py @@ -6,7 +6,7 @@ import re import os import argparse -parser = argparse.ArgumentParser(description='Create a couple galaxy/cluster with cti\'s relationship\nMust be in the mitre/cti/entreprise-attack/relationship folder') +parser = argparse.ArgumentParser(description='Create a couple galaxy/cluster with cti\'s relationship\nMust be in the mitre/cti/enterprise-attack/relationship folder') parser.add_argument("-v", "--version", type=int, required=True, help="Version of the galaxy. Please increment the previous one") args = parser.parse_args() @@ -76,16 +76,16 @@ for element in os.listdir(path): values.append(value) galaxy = {} -galaxy['name'] = "Entreprise Attack - Relationship" -galaxy['type'] = "mitre-entreprise-attack-relationship" +galaxy['name'] = "Enterprise Attack - Relationship" +galaxy['type'] = "mitre-enterprise-attack-relationship" galaxy['description'] = "Mitre Relationship" galaxy['uuid' ] = "fc404638-1707-11e8-a5cf-b78b9b562766" galaxy['version'] = args.version galaxy['icon'] = "link" cluster = {} -cluster['name'] = "Entreprise Attack - Relationship" -cluster['type'] = "mitre-entreprise-attack-relationship" +cluster['name'] = "Enterprise Attack - Relationship" +cluster['type'] = "mitre-enterprise-attack-relationship" cluster['description'] = "MITRE Relationship" cluster['version'] = args.version cluster['source'] = "https://github.com/mitre/cti" @@ -93,8 +93,8 @@ cluster['uuid' ] = "fc605f90-1707-11e8-9d6a-9f165ac2ab5c" cluster['authors'] = ["MITRE"] cluster['values'] = values -with open('generate/galaxies/mitre-entreprise-attack-relationship.json', 'w') as galaxy_file: +with open('generate/galaxies/mitre-enterprise-attack-relationship.json', 'w') as galaxy_file: json.dump(galaxy, galaxy_file, indent=4) -with open('generate/clusters/mitre-entreprise-attack-relationship.json', 'w') as cluster_file: +with open('generate/clusters/mitre-enterprise-attack-relationship.json', 'w') as cluster_file: json.dump(cluster, cluster_file, indent=4)