Veris added + skipping non expanded predicates
parent
1555cee1c9
commit
67a33b67a8
|
@ -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']))
|
||||
|
|
Loading…
Reference in New Issue