Skip to content

Commit

Permalink
fix: [shodan] The input attribute is actually already added to the ev…
Browse files Browse the repository at this point in the history
…ent at the beginning
  • Loading branch information
chrisr3d committed Aug 10, 2022
1 parent 90a1644 commit 71d8745
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion misp_modules/modules/expansion/shodan.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ def query_shodan(self, apikey):
ip_address_object = MISPObject('ip-api-address')
for attribute in ip_address_attributes:
ip_address_object.add_attribute(**attribute)
self.misp_event.add_attribute(**self._get_source_attribute())
ip_address_object.add_reference(self.attribute.uuid, 'describes')
self.misp_event.add_object(ip_address_object)

Expand Down

0 comments on commit 71d8745

Please sign in to comment.