Minor fix

This commit is contained in:
stamparm
2013-05-17 16:04:05 +02:00
parent b26ecfe087
commit 03732d2592
2 changed files with 13 additions and 1 deletions

View File

@@ -1114,6 +1114,9 @@ def checkNullConnection():
infoMsg = "testing NULL connection to the target URL"
logger.info(infoMsg)
pushValue(kb.pageCompress)
kb.pageCompress = False
try:
page, headers, _ = Request.getPage(method=HTTPMETHOD.HEAD)
@@ -1144,6 +1147,8 @@ def checkNullConnection():
errMsg = getUnicode(errMsg)
raise SqlmapConnectionException(errMsg)
kb.pageCompress = popValue()
return kb.nullConnection is not None
def checkConnection(suppressOutput=False):