Veris added + skipping non expanded predicates

pull/8/head
Alexandre Dulaunoy 2015-11-24 09:17:16 +01:00
parent 1555cee1c9
commit 67a33b67a8
1 changed files with 3 additions and 2 deletions

View File

@ -30,7 +30,7 @@ import json
import os.path
import argparse
taxonomies = ['admiralty-scale','tlp', 'circl']
taxonomies = ['admiralty-scale','tlp', 'circl', 'veris']
argParser = argparse.ArgumentParser(description='Dump Machine Tags (Triple Tags) from MISP taxonomies')
argParser.add_argument('-e', action='store_true', help='Including expanded tags')
@ -59,6 +59,7 @@ for taxonomy in taxonomies:
else:
for e in t['values']:
if e['predicate'] == predicate['value']:
if 'expanded' in predicate:
expanded = predicate['expanded']
for v in e['entry']:
print (machineTag(namespace=namespace, predicate=e['predicate'], value=v['value']))