mirror of
https://github.com/valitydev/Cortex-Analyzers.git
synced 2024-11-06 09:05:19 +00:00
parent
10179b01a1
commit
d93c46c1be
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user