Removed googleCSE.

This commit is contained in:
Lee Baird 2019-02-25 21:02:08 -06:00
parent 329d03f445
commit cda364470b
4 changed files with 3 additions and 36 deletions

View file

@ -6,7 +6,7 @@
* | |_| | | | __/ / __ / (_| | | \ V / __/\__ \ || __/ | *
* \__|_| |_|\___| \/ /_/ \__,_|_| \_/ \___||___/\__\___|_| *
* *
* theHarvester 3.0.6 v308 *
* theHarvester 3.0.6 v322 *
* Coded by Christian Martorella *
* Edge-Security Research *
* cmartorella@edge-security.com *
@ -41,8 +41,6 @@ Passive:
* google: Google search engine (Optional Google dorking.) - www.google.com
* googleCSE: Google custom search engine
* google-certificates: Google Certificate Transparency report
* hunter: Hunter search engine (Requires API key, see below.) - www.hunter.io
@ -83,7 +81,6 @@ Modules that require an API key:
--------------------------------
Add your keys to api-keys.yaml
* googleCSE: API key and CSE ID
* hunter: API key
* intelx: API key
* securityTrails: API key

View file

@ -2,10 +2,6 @@ apikeys:
bing:
key:
googleCSE:
key:
id:
hunter:
key:

View file

@ -11,12 +11,6 @@ def bing_key():
keys = yaml.safe_load(api_keys)
return keys['apikeys']['bing']['key']
@staticmethod
def google_cse_key():
with open('api-keys.yaml', 'r') as api_keys:
keys = yaml.safe_load(api_keys)
return keys['apikeys']['googleCSE']
@staticmethod
def hunter_key():
with open('api-keys.yaml', 'r') as api_keys:
@ -50,7 +44,7 @@ def banner():
print(r"* | |_| | | | __/ / __ / (_| | | \ V / __/\__ \ || __/ | *")
print(r"* \__|_| |_|\___| \/ /_/ \__,_|_| \_/ \___||___/\__\___|_| *")
print('* *')
print('* theHarvester 3.0.6 v308 *')
print('* theHarvester 3.0.6 v322 *')
print('* Coded by Christian Martorella *')
print('* Edge-Security Research *')
print('* cmartorella@edge-security.com *')
@ -68,7 +62,6 @@ def get_supportedengines():
'dogpile',
'duckduckgo',
'google',
'googleCSE',
'google-certificates',
'hunter',
'intelx',

View file

@ -47,7 +47,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, cymon,
dogpile, duckduckgo, google, googleCSE,
dogpile, duckduckgo, google,
google-certificates, hunter, intelx,
linkedin, netcraft, securityTrails, threatcrowd,
trello, twitter, vhost, virustotal, yahoo, all''')
@ -193,25 +193,6 @@ def start():
db.store_all(word, all_hosts, 'host', 'google')
db.store_all(word, all_emails, 'email', 'google')
elif engineitem == 'googleCSE':
print('\033[94m[*] Searching Google Custom Search. \033[0m')
try:
search = googleCSE.SearchGoogleCSE(word, limit, start)
search.process()
search.store_results()
all_emails = filter(search.get_emails())
db = stash.stash_manager()
hosts = filter(search.get_hostnames())
all_hosts.extend(hosts)
db.store_all(word, all_hosts, 'email', 'googleCSE')
db = stash.stash_manager()
db.store_all(word, all_hosts, 'host', 'googleCSE')
except Exception as e:
if isinstance(e, MissingKey):
print(e)
else:
pass
elif engineitem == 'google-certificates':
print('\033[94m[*] Searching Google Certificate transparency report. \033[0m')
search = googlecertificates.SearchGoogleCertificates(word, limit, start)