mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-08 13:41:29 +00:00
Cosmetic fix
This commit is contained in:
@@ -340,14 +340,14 @@ def checkNullConnection():
|
|||||||
if not page and 'Content-Length' in headers:
|
if not page and 'Content-Length' in headers:
|
||||||
kb.nullConnection = "HEAD"
|
kb.nullConnection = "HEAD"
|
||||||
|
|
||||||
infoMsg = "null connection is supported with HEAD header"
|
infoMsg = "NULL connection is supported with HEAD header"
|
||||||
logger.info(infoMsg)
|
logger.info(infoMsg)
|
||||||
else:
|
else:
|
||||||
page, headers = Request.getPage(auxHeaders={"Range":"bytes=-1"})
|
page, headers = Request.getPage(auxHeaders={"Range":"bytes=-1"})
|
||||||
if page and len(page) == 1 and 'Content-Range' in headers:
|
if page and len(page) == 1 and 'Content-Range' in headers:
|
||||||
kb.nullConnection = "Range"
|
kb.nullConnection = "Range"
|
||||||
|
|
||||||
infoMsg = "null connection is supported with GET header "
|
infoMsg = "NULL connection is supported with GET header "
|
||||||
infoMsg += "'%s'" % kb.nullConnection
|
infoMsg += "'%s'" % kb.nullConnection
|
||||||
logger.info(infoMsg)
|
logger.info(infoMsg)
|
||||||
except sqlmapConnectionException, errMsg:
|
except sqlmapConnectionException, errMsg:
|
||||||
|
|||||||
Reference in New Issue
Block a user