mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 20:51:31 +00:00
Bug fix (OR boolean based blind caused trouble to UNION with negative logic)
This commit is contained in:
@@ -318,8 +318,24 @@ def unionTest(comment, place, parameter, value, prefix, suffix):
|
||||
if conf.direct:
|
||||
return
|
||||
|
||||
negativeLogic = kb.negativeLogic
|
||||
kb.technique = PAYLOAD.TECHNIQUE.UNION
|
||||
validPayload, vector = _unionTestByCharBruteforce(comment, place, parameter, value, prefix, suffix)
|
||||
|
||||
try:
|
||||
if negativeLogic:
|
||||
pushValue(kb.negativeLogic)
|
||||
pushValue(conf.string)
|
||||
pushValue(conf.code)
|
||||
|
||||
kb.negativeLogic = False
|
||||
conf.string = conf.code = None
|
||||
|
||||
validPayload, vector = _unionTestByCharBruteforce(comment, place, parameter, value, prefix, suffix)
|
||||
finally:
|
||||
if negativeLogic:
|
||||
conf.code = popValue()
|
||||
conf.string = popValue()
|
||||
kb.negativeLogic = popValue()
|
||||
|
||||
if validPayload:
|
||||
validPayload = agent.removePayloadDelimiters(validPayload)
|
||||
|
||||
Reference in New Issue
Block a user