mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-03-22 10:54:22 +03:00
minor update
This commit is contained in:
parent
c394610740
commit
dc20bff1d0
|
@ -981,14 +981,6 @@ def checkNullConnection():
|
||||||
return kb.nullConnection is not None
|
return kb.nullConnection is not None
|
||||||
|
|
||||||
def checkConnection(suppressOutput=False):
|
def checkConnection(suppressOutput=False):
|
||||||
if conf.ipv6:
|
|
||||||
warnMsg = "always check connection to a provided "
|
|
||||||
warnMsg += "IPv6 address with a tool like ping6 "
|
|
||||||
warnMsg += "(e.g. 'ping6 fe80::20c:29ff:fea8:6bf1%vmnet8') "
|
|
||||||
warnMsg += "prior to running sqlmap to avoid "
|
|
||||||
warnMsg += "any addressing issues"
|
|
||||||
singleTimeWarnMessage(warnMsg)
|
|
||||||
|
|
||||||
if not any([conf.proxy, conf.tor]):
|
if not any([conf.proxy, conf.tor]):
|
||||||
try:
|
try:
|
||||||
socket.getaddrinfo(conf.hostname, None)
|
socket.getaddrinfo(conf.hostname, None)
|
||||||
|
@ -1019,10 +1011,19 @@ def checkConnection(suppressOutput=False):
|
||||||
logger.warn(warnMsg)
|
logger.warn(warnMsg)
|
||||||
else:
|
else:
|
||||||
kb.errorIsNone = True
|
kb.errorIsNone = True
|
||||||
|
|
||||||
except sqlmapConnectionException, errMsg:
|
except sqlmapConnectionException, errMsg:
|
||||||
errMsg = getUnicode(errMsg)
|
errMsg = getUnicode(errMsg)
|
||||||
logger.critical(errMsg)
|
logger.critical(errMsg)
|
||||||
|
|
||||||
|
if conf.ipv6:
|
||||||
|
warnMsg = "check connection to a provided "
|
||||||
|
warnMsg += "IPv6 address with a tool like ping6 "
|
||||||
|
warnMsg += "(e.g. 'ping6 %s') " % conf.hostname
|
||||||
|
warnMsg += "prior to running sqlmap to avoid "
|
||||||
|
warnMsg += "any addressing issues"
|
||||||
|
singleTimeWarnMessage(warnMsg)
|
||||||
|
|
||||||
if any(code in kb.httpErrorCodes for code in (httplib.NOT_FOUND, )):
|
if any(code in kb.httpErrorCodes for code in (httplib.NOT_FOUND, )):
|
||||||
if conf.multipleTargets:
|
if conf.multipleTargets:
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in New Issue
Block a user