Updated to the latest version of the MISP galaxy

pull/47/head
Alexandre Dulaunoy 2016-10-31 20:10:08 +01:00
parent 0bf4e2b566
commit cfc094f7a0
1 changed files with 3 additions and 3 deletions

View File

@ -2,8 +2,8 @@ import json
import requests import requests
debug = False debug = False
galaxy_url = 'https://raw.githubusercontent.com/MISP/misp-galaxy/master/elements/' galaxy_url = 'https://raw.githubusercontent.com/MISP/misp-galaxy/master/clusters/'
elements = ['threat-actor-tools.json', 'adversary-groups.json'] elements = ['tools.json', 'threat-actors.json']
# elements = ['threat-actor-tools.json'] # elements = ['threat-actor-tools.json']
taxonomy = {} taxonomy = {}
@ -48,7 +48,7 @@ for element in elements:
taxonomy['values'].append(t_value) taxonomy['values'].append(t_value)
file_out = '../../misp-galaxy/machinetag.json' file_out = '../../misp-galaxy/machinetag.json'
with open(file_out, 'w') as f: with open(file_out, 'w') as f:
f.write(json.dumps(taxonomy, sort_keys=True, indent=4, separators=(',', ': '))) f.write(json.dumps(taxonomy, sort_keys=True, indent=4, separators=(',', ': ')))
print("JSON saved to "+ file_out) print("JSON saved to "+ file_out)