mirror of
https://github.com/MISP/misp-galaxy.git
synced 2024-11-22 23:07:19 +00:00
Update create_mitre-enterprise-attack-relationship_galaxy.py
This commit is contained in:
parent
24c4ecf87c
commit
9f98a475fd
1 changed files with 7 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue