fix huntersearch

This commit is contained in:
Jay Townsend 2019-08-19 22:57:23 +01:00
parent b96490d9c3
commit 78cad1be4d
2 changed files with 5 additions and 7 deletions

View file

@ -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('-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('-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, 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, hunter, intelx,
linkedin, netcraft, securityTrails, threatcrowd, linkedin, netcraft, securityTrails, threatcrowd,
trello, twitter, vhost, virustotal, yahoo, all''') trello, twitter, vhost, virustotal, yahoo, all''')

View file

@ -22,19 +22,17 @@ def do_search(self):
response = grequests.map([request]) response = grequests.map([request])
self.total_results = response[0].content.decode('UTF-8') self.total_results = response[0].content.decode('UTF-8')
def process(self): 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): def get_emails(self):
rawres = myparser.Parser(self.totalresults, self.word) rawres = myparser.Parser(self.total_results, self.word)
return rawres.emails() return rawres.emails()
def get_hostnames(self): def get_hostnames(self):
rawres = myparser.Parser(self.totalresults, self.word) rawres = myparser.Parser(self.total_results, self.word)
return rawres.hostnames() return rawres.hostnames()
def get_profiles(self): def get_profiles(self):
rawres = myparser.Parser(self.totalresults, self.word) rawres = myparser.Parser(self.total_results, self.word)
return rawres.profiles() return rawres.profiles()