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).
This commit is contained in:
Anton Bolshakov 2018-10-25 10:49:06 +08:00 committed by GitHub
parent 7c2c0f2b5d
commit 214732a060
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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):