Implementation for an Issue #450

This commit is contained in:
stamparm
2013-05-17 15:04:25 +02:00
parent 7ba9e75c97
commit 76b4e1ccb9
3 changed files with 17 additions and 7 deletions

View File

@@ -1131,6 +1131,14 @@ def checkNullConnection():
infoMsg = "NULL connection is supported with GET header "
infoMsg += "'%s'" % kb.nullConnection
logger.info(infoMsg)
else:
_, headers, _ = Request.getPage(skipRead = True)
if HTTP_HEADER.CONTENT_LENGTH in (headers or {}):
kb.nullConnection = NULLCONNECTION.SKIP_READ
infoMsg = "NULL connection is supported with 'skip-read' method"
logger.info(infoMsg)
except SqlmapConnectionException, errMsg:
errMsg = getUnicode(errMsg)