Minor comment

This commit is contained in:
Bernardo Damele 2010-10-15 11:17:17 +00:00
parent 2fa8836c01
commit 5f6d88a418
2 changed files with 5 additions and 0 deletions

View File

@ -328,6 +328,10 @@ def checkRegexp():
return False
def checkNullConnection():
"""
Reference: http://www.wisec.it/sectou.php?id=472f952d79293
"""
infoMsg = "testing NULL connection to the target url"
logger.info(infoMsg)

View File

@ -325,6 +325,7 @@ class Connect:
elif kb.nullConnection == "Range":
if not auxHeaders:
auxHeaders = {}
auxHeaders["Range"] = "bytes=-1"
_, headers = Connect.getPage(url=uri, get=get, post=post, cookie=cookie, ua=ua, silent=silent, method=method, auxHeaders=auxHeaders, raise404=raise404)