mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-07-26 01:53:48 +00:00
Adding extra validation step in case of boolean-based blind (e.g. if unexpected 500 occurs)
This commit is contained in:
parent
8994bf2dba
commit
7151df16f6
5 changed files with 34 additions and 27 deletions
|
|
@ -157,7 +157,7 @@ def checkSqlInjection(place, parameter, value):
|
|||
kb.testType = stype = test.stype
|
||||
clause = test.clause
|
||||
unionExtended = False
|
||||
trueCode = None
|
||||
trueCode, falseCode = None, None
|
||||
|
||||
if stype == PAYLOAD.TECHNIQUE.UNION:
|
||||
configUnion(test.request.char)
|
||||
|
|
@ -561,7 +561,7 @@ def checkSqlInjection(place, parameter, value):
|
|||
trueCode = threadData.lastCode
|
||||
|
||||
if trueResult:
|
||||
# Just extra validation step (e.g. to check for dropping protection mechanisms)
|
||||
# Extra validation step (e.g. to check for DROP protection mechanisms)
|
||||
if SLEEP_TIME_MARKER in reqPayload:
|
||||
falseResult = Request.queryPage(reqPayload.replace(SLEEP_TIME_MARKER, "0"), place, timeBasedCompare=True, raise404=False)
|
||||
if falseResult:
|
||||
|
|
@ -678,6 +678,7 @@ def checkSqlInjection(place, parameter, value):
|
|||
injection.data[stype].templatePayload = templatePayload
|
||||
injection.data[stype].matchRatio = kb.matchRatio
|
||||
injection.data[stype].trueCode = trueCode
|
||||
injection.data[stype].falseCode = falseCode
|
||||
|
||||
injection.conf.textOnly = conf.textOnly
|
||||
injection.conf.titles = conf.titles
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue