mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
Modified regex to be case insensitive
Changed the regular expression to be case insensitive so that it works with the randomcase.py tamper script.
This commit is contained in:
parent
dac386735a
commit
5659eeec10
|
@ -44,7 +44,7 @@ def tamper(payload, **kwargs):
|
|||
continue
|
||||
|
||||
if found:
|
||||
_ = re.sub("\s*(AND|OR)[\s(]+'[^']+'\s*(=|LIKE)\s*'.*", "", retVal)
|
||||
_ = re.sub("\s*(AND|OR)[\s(]+'[^']+'\s*(=|LIKE)\s*'.*", "", retVal, flags=re.I)
|
||||
if _ != retVal:
|
||||
retVal = _
|
||||
retVal += "-- "
|
||||
|
|
Loading…
Reference in New Issue
Block a user