Merge pull request #196 from RichieB2B/ncsc-nl/from_dict

Fix misp2clamav
pull/203/head
Raphaël Vinot 2018-02-26 17:26:23 +01:00 committed by GitHub
commit d7d5fb37ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ def find_hashes(htype):
return
for a in r['response']['Attribute']:
attribute = MISPAttribute(mymisp.describe_types)
attribute.set_all_values(**a)
attribute.from_dict(**a)
if '|' in attribute.type and '|' in attribute.value:
c, value = attribute.value.split('|')
comment = '{} - {}'.format(attribute.comment, c)