mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-06-10 02:01:57 +00:00
improvement toward proper implementation of OR-based injection by usage of "negative logic" mechanism
This commit is contained in:
parent
ce4c697bbd
commit
637a8d8273
5 changed files with 23 additions and 16 deletions
|
|
@ -327,6 +327,7 @@ def checkSqlInjection(place, parameter, value):
|
|||
# Useful to set kb.matchRatio at first based on
|
||||
# the False response content
|
||||
kb.matchRatio = None
|
||||
kb.negativeLogic = (where == PAYLOAD.WHERE.NEGATIVE)
|
||||
Request.queryPage(genCmpPayload(), place, raise404=False)
|
||||
|
||||
# Perform the test's True request
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue