mirror of https://github.com/MISP/PyMISP
commit
d7d5fb37ec
|
@ -30,7 +30,7 @@ def find_hashes(htype):
|
||||||
return
|
return
|
||||||
for a in r['response']['Attribute']:
|
for a in r['response']['Attribute']:
|
||||||
attribute = MISPAttribute(mymisp.describe_types)
|
attribute = MISPAttribute(mymisp.describe_types)
|
||||||
attribute.set_all_values(**a)
|
attribute.from_dict(**a)
|
||||||
if '|' in attribute.type and '|' in attribute.value:
|
if '|' in attribute.type and '|' in attribute.value:
|
||||||
c, value = attribute.value.split('|')
|
c, value = attribute.value.split('|')
|
||||||
comment = '{} - {}'.format(attribute.comment, c)
|
comment = '{} - {}'.format(attribute.comment, c)
|
||||||
|
|
Loading…
Reference in New Issue