mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
Minor update related to the last (error results in OR boolean-based blind should not be the same as True to be able to do proper comparison)
This commit is contained in:
@@ -446,10 +446,19 @@ def checkSqlInjection(place, parameter, value):
|
||||
truePage = threadData.lastComparisonPage or ""
|
||||
|
||||
if trueResult and not(truePage == falsePage and not kb.nullConnection):
|
||||
# Perform the test's False request
|
||||
falseResult = Request.queryPage(genCmpPayload(), place, raise404=False)
|
||||
|
||||
# Perform the test's False request
|
||||
if not falseResult:
|
||||
if kb.negativeLogic:
|
||||
boundPayload = agent.prefixQuery(kb.data.randomStr, prefix, where, clause)
|
||||
boundPayload = agent.suffixQuery(boundPayload, comment, suffix, where)
|
||||
errorPayload = agent.payload(place, parameter, newValue=boundPayload, where=where)
|
||||
|
||||
errorResult = Request.queryPage(errorPayload, place, raise404=False)
|
||||
if errorResult:
|
||||
continue
|
||||
|
||||
infoMsg = "%s parameter '%s' seems to be '%s' injectable " % (paramType, parameter, title)
|
||||
logger.info(infoMsg)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user