mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
minor adjustment
This commit is contained in:
parent
9d0bf42270
commit
14cab8527e
|
@ -381,12 +381,10 @@ def checkRegexp():
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def checkConnection():
|
def checkConnection():
|
||||||
infoMsg = "testing if site exists"
|
|
||||||
logger.info(infoMsg)
|
|
||||||
try:
|
try:
|
||||||
socket.gethostbyname(conf.hostname)
|
socket.gethostbyname(conf.hostname)
|
||||||
except socket.gaierror:
|
except socket.gaierror:
|
||||||
errMsg = "site '%s' does not exist" % conf.hostname
|
errMsg = "host '%s' does not exist" % conf.hostname
|
||||||
raise sqlmapConnectionException, errMsg
|
raise sqlmapConnectionException, errMsg
|
||||||
|
|
||||||
infoMsg = "testing connection to the target url"
|
infoMsg = "testing connection to the target url"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user