Skip to content

Commit

Permalink
Added missing search engines.
Browse files Browse the repository at this point in the history
Added missing search engines, fixed search engine handling.
  • Loading branch information
laramies committed Oct 11, 2016
1 parent d8e5901 commit eb08d32
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 33 deletions.
2 changes: 2 additions & 0 deletions README
Expand Up @@ -36,6 +36,8 @@ Passive:
-bingapi: microsoft search engine, through the API (you need to add your Key in
the discovery/bingsearch.py file)

-dogpile: Dogpile search engine - www.dogpile.com

-pgp: pgp key server - mit.edu

-linkedin: google search engine, specific search for Linkedin users
Expand Down
41 changes: 8 additions & 33 deletions theHarvester.py
Expand Up @@ -41,8 +41,9 @@ def usage():

print "Usage: theharvester options \n"
print " -d: Domain to search or company name"
print """ -b: data source: google, googleCSE, bing, bingapi, pgp, linkedin,
google-profiles, jigsaw, twitter, googleplus, all\n"""
print """ -b: data source: baidu, bing, bingapi, dogpile,google, googleCSE,
googleplus, google-profiles, linkedin, pgp, twitter, vhost,
yahoo, all\n"""
print " -s: Start in result number X (default: 0)"
print " -v: Verify host name via dns resolution and search for virtual hosts"
print " -f: Save the results into an HTML and XML file (both)"
Expand Down Expand Up @@ -104,10 +105,9 @@ def start(argv):
dnstld = True
elif opt == '-b':
engine = arg
if engine not in ("google","googleCSE" , "linkedin", "pgp", "all", "google-profiles", "bing", "bingapi",
"yandex", "jigsaw", "dogpilesearch", "twitter", "googleplus", "yahoo", "baidu"):
if engine not in ("baidu", "bing", "bingapi","dogpile", "google", "googleCSE", "googleplus", "google-profiles","linkedin", "pgp", "twitter", "vhost", "yahoo", "all"):
usage()
print "Invalid search engine, try with: bing, google, linkedin, pgp, jigsaw, bingapi, google-profiles, dogpilesearch, twitter, googleplus, yahoo, baidu"
print "Invalid search engine, try with: baidu, bing, bingapi, dogpile, google, googleCSE, googleplus, google-profiles, linkedin, pgp, twitter, vhost, yahoo, all"
sys.exit()
else:
pass
Expand All @@ -126,13 +126,6 @@ def start(argv):
all_emails = search.get_emails()
all_hosts = search.get_hostnames()

if engine == "exalead":
print "[-] Searching in Exalead:"
search = exaleadsearch.search_exalead(word, limit, start)
search.process()
all_emails = search.get_emails()
all_hosts = search.get_hostnames()

elif engine == "bing" or engine == "bingapi":
print "[-] Searching in Bing:"
search = bingsearch.search_bing(word, limit, start)
Expand All @@ -144,9 +137,9 @@ def start(argv):
all_emails = search.get_emails()
all_hosts = search.get_hostnames()

elif engine == "yandex": # Not working yet
print "[-] Searching in Yandex:"
search = yandexsearch.search_yandex(word, limit, start)
elif engine == "dogpile":
print "[-] Searching in Dogpilesearch.."
search = dogpilesearch.search_dogpile(word, limit)
search.process()
all_emails = search.get_emails()
all_hosts = search.get_hostnames()
Expand All @@ -158,24 +151,6 @@ def start(argv):
all_emails = search.get_emails()
all_hosts = search.get_hostnames()

elif engine == "jigsaw":
print "[-] Searching in Jigsaw.."
search = jigsaw.search_jigsaw(word, limit)
search.process()
people = search.get_people()
print "Users from Jigsaw:"
print "====================="
for user in people:
print user
sys.exit()

elif engine == "dogpilesearch":
print "[-] Searching in Dogpilesearch.."
search = dogpilesearch.search_dogpile(word, limit)
search.process()
all_emails = search.get_emails()
all_hosts = search.get_hostnames()

elif engine == "yahoo":
print "[-] Searching in Yahoo.."
search = yahoosearch.search_yahoo(word, limit)
Expand Down

0 comments on commit eb08d32

Please sign in to comment.