From 214732a0605bd56131f0cc0876b63f9db80c6206 Mon Sep 17 00:00:00 2001 From: Anton Bolshakov Date: Thu, 25 Oct 2018 10:49:06 +0800 Subject: [PATCH] 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 @@ def process(self): 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):