From 9216dbb9cf63fb87fbbf3b9c8703f6f09317a6b5 Mon Sep 17 00:00:00 2001 From: mmayank Date: Sat, 19 Oct 2019 18:31:19 +0530 Subject: [PATCH] Fix linkedin hardcoded value Use common code for one missed search engine --- theHarvester/__main__.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/theHarvester/__main__.py b/theHarvester/__main__.py index b4e46473..b76113db 100644 --- a/theHarvester/__main__.py +++ b/theHarvester/__main__.py @@ -126,9 +126,9 @@ def start(): print(usr) if store_links: links = search_engine.get_links() - db.store_all(word, links, 'name', 'linkedin') + db.store_all(word, links, 'name', engineitem) if len(links) == 0: - print('\n[*] No links found Linkedin.\n\n') + print('\n[*] No links found.\n\n') else: print(f'\n[*] Links found: {len(links)}') print('---------------------') @@ -176,12 +176,7 @@ def start(): from theHarvester.discovery import certspottersearch try: certspotter_search = certspottersearch.SearchCertspoter(word) - certspotter_search.process() - hosts = filter(certspotter_search.get_hostnames()) - all_hosts.extend(list(hosts)) - all_hosts.extend(hosts) - db = stash.stash_manager() - db.store_all(word, all_hosts, 'host', 'certspotter') + store(certspotter_search, engineitem, None, store_host=True) except Exception as e: print(e)