From 214732a0605bd56131f0cc0876b63f9db80c6206 Mon Sep 17 00:00:00 2001 From: Anton Bolshakov Date: Thu, 25 Oct 2018 10:49:06 +0800 Subject: [PATCH 1/2] Update pgpsearch.py I'm running a test with the standard example: $ python2 theHarvester.py -d microsoft.com -b pgp However, the ```pgp.rediris.es``` server is dead. This pull simply prints an error message to show the problem instead of returning 0 results. However, you might want to change the server to pgp.mit.edu as well (currently commented out). --- discovery/pgpsearch.py | 1 + 1 file changed, 1 insertion(+) diff --git a/discovery/pgpsearch.py b/discovery/pgpsearch.py index 40da22b0..157cd56f 100644 --- a/discovery/pgpsearch.py +++ b/discovery/pgpsearch.py @@ -26,6 +26,7 @@ class search_pgp: returncode, returnmsg, headers = h.getreply() self.results = h.getfile().read() except Exception, e: + print "Unable to connect to PGP server: ",str(e) pass def get_emails(self): From daa6cc1e5338a8b863d449bf29f9bb2b9f410c00 Mon Sep 17 00:00:00 2001 From: jzold Date: Thu, 25 Oct 2018 15:37:01 +0100 Subject: [PATCH 2/2] fix for issue #96:2 seconds delay added to shodan search https://github.com/laramies/theHarvester/issues/96 --- theHarvester.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/theHarvester.py b/theHarvester.py index 838c0ae6..3064c062 100644 --- a/theHarvester.py +++ b/theHarvester.py @@ -8,6 +8,7 @@ from socket import * import re import getopt import stash +import time try: import requests @@ -506,6 +507,7 @@ def start(argv): a = shodansearch.search_shodan(ip) shodanvisited.append(ip) results = a.run() + time.sleep(2) for res in results: if res['info'] == []: res['info'] = ''