mirror of
https://github.com/laramies/theHarvester.git
synced 2024-11-10 17:13:07 +08:00
Change request import check at the beginning of the main file, to avoid
the error 23.
This commit is contained in:
parent
4552322fed
commit
c6d21905f9
1 changed files with 7 additions and 5 deletions
|
@ -7,6 +7,13 @@
|
|||
from socket import *
|
||||
import re
|
||||
import getopt
|
||||
|
||||
try:
|
||||
import requests
|
||||
except:
|
||||
print "Request library not found, please install it before proceeding\n"
|
||||
sys.exit()
|
||||
|
||||
from discovery import *
|
||||
from lib import htmlExport
|
||||
from lib import hostchecker
|
||||
|
@ -24,11 +31,6 @@
|
|||
print "* cmartorella@edge-security.com *"
|
||||
print "*******************************************************************\n\n"
|
||||
|
||||
try:
|
||||
import requests
|
||||
except:
|
||||
print "Request library not found, please install it before proceeding\n"
|
||||
sys.exit()
|
||||
|
||||
def usage():
|
||||
|
||||
|
|
Loading…
Reference in a new issue