Skip to content

Commit

Permalink
#293 #294 add emails values in observables extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeleonard committed Sep 3, 2018
1 parent 10179b0 commit d93c46c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion analyzers/Hunterio/hunterio_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,17 @@ def summary(self, raw):
found = 0
if(raw.get('meta') and raw['meta'].get('results')):
found = raw['meta'].get('results')
taxonomies.append(self.build_taxonomy('info', namespace, "Emails found", found))
taxonomies.append(self.build_taxonomy('info', namespace, "Emails found", str(found)))

return {"taxonomies": taxonomies}

def artifacts(self, raw):
artifacts = []
if(raw.get('meta') and raw['meta'].get('results') > 0 ):
for email in raw.get('data').get('emails'):
artifacts.append({'type':'email', 'value':email.get('value')})
return artifacts


def run(self):
Analyzer.run(self)
Expand Down

0 comments on commit d93c46c

Please sign in to comment.