Cosmetics

This commit is contained in:
Bernardo Damele
2010-12-09 00:26:06 +00:00
parent b5c6527c72
commit 9c61adb21d
4 changed files with 16 additions and 10 deletions

View File

@@ -308,12 +308,13 @@ def checkSqlInjection(place, parameter, value):
conf.matchRatio = None
_ = Request.queryPage(cmpPayload, place)
# Compare True and False response contents
# Perform the test's True request
trueResult = Request.queryPage(reqPayload, place)
if trueResult:
falseResult = Request.queryPage(cmpPayload, place)
# Perform the test's False request
if not falseResult:
infoMsg = "%s parameter '%s' is '%s' injectable " % (place, parameter, title)
logger.info(infoMsg)