fix for issue #96:2 seconds delay added to shodan search

https://github.com/laramies/theHarvester/issues/96
This commit is contained in:
jzold 2018-10-25 15:37:01 +01:00 committed by GitHub
parent 3c23242b44
commit daa6cc1e53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,6 +8,7 @@
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'] = ''