From 78cad1be4deb8e86891d15957de6e2124643a2ec Mon Sep 17 00:00:00 2001 From: Jay Townsend Date: Mon, 19 Aug 2019 22:57:23 +0100 Subject: [PATCH] fix huntersearch --- theHarvester/__main__.py | 2 +- theHarvester/discovery/huntersearch.py | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/theHarvester/__main__.py b/theHarvester/__main__.py index 7ef7daf3..c7c7f2fa 100644 --- a/theHarvester/__main__.py +++ b/theHarvester/__main__.py @@ -53,7 +53,7 @@ def start(): parser.add_argument('-c', '--dns-brute', help='perform a DNS brute force on the domain', default=False, action='store_true') parser.add_argument('-f', '--filename', help='save the results to an HTML and/or XML file', default='', type=str) parser.add_argument('-b', '--source', help='''baidu, bing, bingapi, censys, crtsh, dnsdumpster, - dogpile, duckduckgo, exalead, github-code, google, + dogpile, duckduckgo, exalead, github-code, google, hunter, intelx, linkedin, netcraft, securityTrails, threatcrowd, trello, twitter, vhost, virustotal, yahoo, all''') diff --git a/theHarvester/discovery/huntersearch.py b/theHarvester/discovery/huntersearch.py index 40d41a81..e4bbc8c9 100644 --- a/theHarvester/discovery/huntersearch.py +++ b/theHarvester/discovery/huntersearch.py @@ -22,19 +22,17 @@ def do_search(self): response = grequests.map([request]) self.total_results = response[0].content.decode('UTF-8') - def process(self): - self.do_search() # Only need to do it once. + self.do_search() # Only need to do it once. def get_emails(self): - rawres = myparser.Parser(self.totalresults, self.word) + rawres = myparser.Parser(self.total_results, self.word) return rawres.emails() def get_hostnames(self): - rawres = myparser.Parser(self.totalresults, self.word) + rawres = myparser.Parser(self.total_results, self.word) return rawres.hostnames() def get_profiles(self): - rawres = myparser.Parser(self.totalresults, self.word) + rawres = myparser.Parser(self.total_results, self.word) return rawres.profiles() -