mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-06-10 02:01:57 +00:00
putting kb.negativeLogic setting to the safe place
This commit is contained in:
parent
209e795369
commit
577caac4de
3 changed files with 2 additions and 10 deletions
|
|
@ -322,9 +322,6 @@ def checkSqlInjection(place, parameter, value):
|
|||
boundPayload = agent.suffixQuery(boundPayload, comment, suffix, where)
|
||||
cmpPayload = agent.payload(place, parameter, newValue=boundPayload, where=where)
|
||||
|
||||
pushValue(kb.negativeLogic)
|
||||
kb.negativeLogic = "OR NOT" in cmpPayload
|
||||
|
||||
return cmpPayload
|
||||
|
||||
# Useful to set kb.matchRatio at first based on
|
||||
|
|
@ -350,8 +347,6 @@ def checkSqlInjection(place, parameter, value):
|
|||
|
||||
injectable = True
|
||||
|
||||
kb.negativeLogic = popValue()
|
||||
|
||||
# In case of error-based SQL injection
|
||||
elif method == PAYLOAD.METHOD.GREP:
|
||||
# Perform the test's request and grep the response
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue