Merge branch 'new_module' of github.com:MISP/misp-modules into new_module

pull/304/head
chrisr3d 2019-04-03 22:02:44 +02:00
commit 4955698c63
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ class PayloadQuery(URLhaus):
hash_type = self.attribute.type
file_object = MISPObject('file')
if self.attribute.event_id != '0':
file_object.id = self.attribute.event_id
file_object.id = self.attribute.object_id
response = requests.post(self.url, data={'{}_hash'.format(hash_type): self.attribute.value}).json()
other_hash_type = 'md5' if hash_type == 'sha256' else 'sha256'
for key, relation in zip(('{}_hash'.format(other_hash_type), 'file_size'), (other_hash_type, 'size-in-bytes')):