minor update

This commit is contained in:
Miroslav Stampar 2010-12-07 23:49:00 +00:00
parent 293ce18fed
commit a4a63f5b1e
2 changed files with 3 additions and 1 deletions

View File

@ -351,7 +351,7 @@ def checkSqlInjection(place, parameter, value):
socket.setdefaulttimeout(120)
# Perform the test's request
_ = Request.queryPage(reqPayload, place, noteResponseTime = False)
_ = Request.queryPage(reqPayload, place, content=True, noteResponseTime=False)
# 99.9999999997440% of all non time-based sql injection
# affected durations should be inside +-7*stdev(durations)

View File

@ -387,6 +387,7 @@ class Connect:
Connect.getPage(url=conf.safUrl, cookie=cookie, direct=True, silent=True, ua=ua)
start = time.time()
if not content and not response and kb.nullConnection:
if kb.nullConnection == NULLCONNECTION.HEAD:
method = HTTPMETHOD.HEAD
@ -405,6 +406,7 @@ class Connect:
if not pageLength:
page, headers = Connect.getPage(url=uri, get=get, post=post, cookie=cookie, ua=ua, silent=silent, method=method, auxHeaders=auxHeaders, response=response, raise404=raise404)
kb.lastQueryDuration = calculateDeltaSeconds(start)
if conf.textOnly: