mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-11 10:19:03 +00:00
Adding a debug message during name resolution
This commit is contained in:
@@ -1265,6 +1265,8 @@ def checkNullConnection():
|
|||||||
def checkConnection(suppressOutput=False):
|
def checkConnection(suppressOutput=False):
|
||||||
if not any((conf.proxy, conf.tor, conf.dummy)):
|
if not any((conf.proxy, conf.tor, conf.dummy)):
|
||||||
try:
|
try:
|
||||||
|
debugMsg = "resolving hostname '%s'" % conf.hostname
|
||||||
|
logger.debug(debugMsg)
|
||||||
socket.getaddrinfo(conf.hostname, None)
|
socket.getaddrinfo(conf.hostname, None)
|
||||||
except socket.gaierror:
|
except socket.gaierror:
|
||||||
errMsg = "host '%s' does not exist" % conf.hostname
|
errMsg = "host '%s' does not exist" % conf.hostname
|
||||||
|
|||||||
Reference in New Issue
Block a user