added one more time request payload to confirm test results

This commit is contained in:
Miroslav Stampar 2010-12-17 07:53:58 +00:00
parent e3fa3b0e8e
commit 323af45ce4

View File

@ -341,10 +341,14 @@ def checkSqlInjection(place, parameter, value):
trueResult = Request.queryPage(reqPayload, place, timeBasedCompare=True)
if trueResult:
infoMsg = "%s parameter '%s' is '%s' injectable " % (place, parameter, title)
logger.info(infoMsg)
# Confirm test's results
trueResult = Request.queryPage(reqPayload, place, timeBasedCompare=True)
injectable = True
if trueResult:
infoMsg = "%s parameter '%s' is '%s' injectable " % (place, parameter, title)
logger.info(infoMsg)
injectable = True
# Restore value of socket timeout
socket.setdefaulttimeout(popValue())