mirror of https://github.com/CIRCL/AIL-framework
fix: [MISP Export] fix Decoded objects export
parent
0cbcf28818
commit
7bc2b16fd9
|
@ -168,7 +168,7 @@ class Decoded(AbstractDaterangeObject):
|
||||||
|
|
||||||
obj_attrs.append(obj.add_attribute('sha1', value=self.id))
|
obj_attrs.append(obj.add_attribute('sha1', value=self.id))
|
||||||
obj_attrs.append(obj.add_attribute('mimetype', value=self.get_mimetype()))
|
obj_attrs.append(obj.add_attribute('mimetype', value=self.get_mimetype()))
|
||||||
obj_attrs.append(obj.add_attribute('malware-sample', value=self.id, data=self.get_content()))
|
obj_attrs.append(obj.add_attribute('malware-sample', value=self.id, data=self.get_content(r_type='bytes')))
|
||||||
for obj_attr in obj_attrs:
|
for obj_attr in obj_attrs:
|
||||||
for tag in self.get_tags():
|
for tag in self.get_tags():
|
||||||
obj_attr.add_tag(tag)
|
obj_attr.add_tag(tag)
|
||||||
|
|
Loading…
Reference in New Issue