mirror of https://github.com/MISP/misp-galaxy
manage duplicate refs - first try
parent
9940af8904
commit
dd62ea1844
|
@ -3542,8 +3542,6 @@
|
|||
"https://source.winehq.org/WineAPI/samlib.html",
|
||||
"https://blog.stealthbits.com/manipulating-user-passwords-with-mimikatz-SetNTLM-ChangeNTLM",
|
||||
"https://msdn.microsoft.com/library/cc237008.aspx",
|
||||
"https://adsecurity.org/?p=1729",
|
||||
"http://www.harmj0y.net/blog/redteaming/mimikatz-and-dcsync-and-extrasids-oh-my/",
|
||||
"https://msdn.microsoft.com/library/cc245496.aspx"
|
||||
],
|
||||
"mitre_data_sources": [
|
||||
|
|
|
@ -26,7 +26,7 @@ for element in os.listdir('.'):
|
|||
value['meta'] = {}
|
||||
value['meta']['refs'] = []
|
||||
for reference in temp['external_references']:
|
||||
if 'url' in reference:
|
||||
if 'url' in reference and reference['url'] not in value['meta']['refs']:
|
||||
value['meta']['refs'].append(reference['url'])
|
||||
if 'x_mitre_data_sources' in temp:
|
||||
value['meta']['mitre_data_sources'] = temp['x_mitre_data_sources']
|
||||
|
|
|
@ -27,7 +27,7 @@ for element in os.listdir('.'):
|
|||
value['meta']['synonyms'] = temp['aliases']
|
||||
value['meta']['refs']= []
|
||||
for reference in temp['external_references']:
|
||||
if 'url' in reference:
|
||||
if 'url' in reference and reference['url'] not in value['meta']['refs']:
|
||||
value['meta']['refs'].append(reference['url'])
|
||||
value['uuid'] = re.search('--(.*)$', temp['id']).group(0)[2:]
|
||||
values.append(value)
|
||||
|
|
|
@ -26,7 +26,7 @@ for element in os.listdir('.'):
|
|||
value['meta'] = {}
|
||||
value['meta']['refs'] = []
|
||||
for reference in temp['external_references']:
|
||||
if 'url' in reference:
|
||||
if 'url' in reference and reference['url'] not in value['meta']['refs']:
|
||||
value['meta']['refs'].append(reference['url'])
|
||||
if'x_mitre_aliases' in temp:
|
||||
value['meta']['synonyms'] = temp['x_mitre_aliases']
|
||||
|
|
|
@ -26,7 +26,7 @@ for element in os.listdir('.'):
|
|||
value['meta'] = {}
|
||||
value['meta']['refs'] = []
|
||||
for reference in temp['external_references']:
|
||||
if 'url' in reference:
|
||||
if 'url' in reference and reference['url'] not in value['meta']['refs']:
|
||||
value['meta']['refs'].append(reference['url'])
|
||||
if'x_mitre_aliases' in temp:
|
||||
value['meta']['synonyms'] = temp['x_mitre_aliases']
|
||||
|
|
|
@ -26,7 +26,7 @@ for element in os.listdir('.'):
|
|||
value['meta'] = {}
|
||||
value['meta']['refs'] = []
|
||||
for reference in temp['external_references']:
|
||||
if 'url' in reference:
|
||||
if 'url' in reference and reference['url'] not in value['meta']['refs']:
|
||||
value['meta']['refs'].append(reference['url'])
|
||||
if 'x_mitre_data_sources' in temp:
|
||||
value['meta']['mitre_data_sources'] = temp['x_mitre_data_sources']
|
||||
|
|
|
@ -27,7 +27,7 @@ for element in os.listdir('.'):
|
|||
value['meta']['synonyms'] = temp['aliases']
|
||||
value['meta']['refs']= []
|
||||
for reference in temp['external_references']:
|
||||
if 'url' in reference:
|
||||
if 'url' in reference and reference['url'] not in value['meta']['refs']:
|
||||
value['meta']['refs'].append(reference['url'])
|
||||
value['uuid'] = re.search('--(.*)$', temp['id']).group(0)[2:]
|
||||
values.append(value)
|
||||
|
|
|
@ -26,7 +26,7 @@ for element in os.listdir('.'):
|
|||
value['meta'] = {}
|
||||
value['meta']['refs'] = []
|
||||
for reference in temp['external_references']:
|
||||
if 'url' in reference:
|
||||
if 'url' in reference and reference['url'] not in value['meta']['refs']:
|
||||
value['meta']['refs'].append(reference['url'])
|
||||
if'x_mitre_aliases' in temp:
|
||||
value['meta']['synonyms'] = temp['x_mitre_aliases']
|
||||
|
|
|
@ -26,7 +26,7 @@ for element in os.listdir('.'):
|
|||
value['meta'] = {}
|
||||
value['meta']['refs'] = []
|
||||
for reference in temp['external_references']:
|
||||
if 'url' in reference:
|
||||
if 'url' in reference and reference['url'] not in value['meta']['refs']:
|
||||
value['meta']['refs'].append(reference['url'])
|
||||
if'x_mitre_aliases' in temp:
|
||||
value['meta']['synonyms'] = temp['x_mitre_aliases']
|
||||
|
|
|
@ -26,7 +26,7 @@ for element in os.listdir('.'):
|
|||
value['meta'] = {}
|
||||
value['meta']['refs'] = []
|
||||
for reference in temp['external_references']:
|
||||
if 'url' in reference:
|
||||
if 'url' in reference and reference['url'] not in value['meta']['refs']:
|
||||
value['meta']['refs'].append(reference['url'])
|
||||
if 'x_mitre_data_sources' in temp:
|
||||
value['meta']['mitre_data_sources'] = temp['x_mitre_data_sources']
|
||||
|
|
|
@ -27,7 +27,7 @@ for element in os.listdir('.'):
|
|||
value['meta']['synonyms'] = temp['aliases']
|
||||
value['meta']['refs']= []
|
||||
for reference in temp['external_references']:
|
||||
if 'url' in reference:
|
||||
if 'url' in reference and reference['url'] not in value['meta']['refs']:
|
||||
value['meta']['refs'].append(reference['url'])
|
||||
value['uuid'] = re.search('--(.*)$', temp['id']).group(0)[2:]
|
||||
values.append(value)
|
||||
|
|
Loading…
Reference in New Issue