From 2439d5f75ddeebdf8410586d13c8825449ec6cce Mon Sep 17 00:00:00 2001 From: root Date: Mon, 1 Apr 2019 16:28:19 +0200 Subject: [PATCH] fix: Fixed object_id variable name typo --- misp_modules/modules/expansion/urlhaus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misp_modules/modules/expansion/urlhaus.py b/misp_modules/modules/expansion/urlhaus.py index b6abd92..dae6fd6 100644 --- a/misp_modules/modules/expansion/urlhaus.py +++ b/misp_modules/modules/expansion/urlhaus.py @@ -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')):