mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-04-25 11:23:44 +03:00
Patch for an Issue #724
This commit is contained in:
parent
f558b800ac
commit
2a88436417
|
@ -1230,9 +1230,6 @@ def checkConnection(suppressOutput=False):
|
||||||
kb.errorIsNone = True
|
kb.errorIsNone = True
|
||||||
|
|
||||||
except SqlmapConnectionException, errMsg:
|
except SqlmapConnectionException, errMsg:
|
||||||
errMsg = getUnicode(errMsg)
|
|
||||||
logger.critical(errMsg)
|
|
||||||
|
|
||||||
if conf.ipv6:
|
if conf.ipv6:
|
||||||
warnMsg = "check connection to a provided "
|
warnMsg = "check connection to a provided "
|
||||||
warnMsg += "IPv6 address with a tool like ping6 "
|
warnMsg += "IPv6 address with a tool like ping6 "
|
||||||
|
@ -1242,6 +1239,9 @@ def checkConnection(suppressOutput=False):
|
||||||
singleTimeWarnMessage(warnMsg)
|
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, )):
|
||||||
|
errMsg = getUnicode(errMsg)
|
||||||
|
logger.critical(errMsg)
|
||||||
|
|
||||||
if conf.multipleTargets:
|
if conf.multipleTargets:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
|
@ -537,8 +537,10 @@ class Connect(object):
|
||||||
warnMsg = "unable to connect to the target URL"
|
warnMsg = "unable to connect to the target URL"
|
||||||
elif "BadStatusLine" in tbMsg:
|
elif "BadStatusLine" in tbMsg:
|
||||||
warnMsg = "connection dropped or unknown HTTP "
|
warnMsg = "connection dropped or unknown HTTP "
|
||||||
warnMsg += "status code received. Try to force the HTTP User-Agent "
|
warnMsg += "status code received"
|
||||||
warnMsg += "header with option '--user-agent' or switch '--random-agent'"
|
if not conf.agent and not conf.randomAgent:
|
||||||
|
warnMsg += ". Try to force the HTTP User-Agent "
|
||||||
|
warnMsg += "header with option '--user-agent' or switch '--random-agent'"
|
||||||
elif "IncompleteRead" in tbMsg:
|
elif "IncompleteRead" in tbMsg:
|
||||||
warnMsg = "there was an incomplete read error while retrieving data "
|
warnMsg = "there was an incomplete read error while retrieving data "
|
||||||
warnMsg += "from the target URL"
|
warnMsg += "from the target URL"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user