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:
securitygeneration 2014-06-08 19:14:38 +01:00
parent dac386735a
commit 5659eeec10

View File

@ -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 += "-- "