diff --git a/analyzers/Hunterio/hunterio_analyzer.py b/analyzers/Hunterio/hunterio_analyzer.py index b687e15c2..884e72701 100755 --- a/analyzers/Hunterio/hunterio_analyzer.py +++ b/analyzers/Hunterio/hunterio_analyzer.py @@ -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)