mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-09 08:00:36 +03:00
Cosmetic fix
This commit is contained in:
parent
dcb9c2103a
commit
bf56f8c63c
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user