#293 #294 add emails values in observables extraction

This commit is contained in:
Jérôme Leonard 2018-09-03 18:17:13 +02:00
parent 10179b01a1
commit d93c46c1be
No known key found for this signature in database
GPG Key ID: C5D0D898D56C3D9D

View File

@ -22,10 +22,17 @@ class Hunterio(Analyzer):
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)