Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5659eee

Browse files
Modified regex to be case insensitive
Changed the regular expression to be case insensitive so that it works with the randomcase.py tamper script.
1 parent dac3867 commit 5659eee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tamper/unmagicquotes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def tamper(payload, **kwargs):
4444
continue
4545

4646
if found:
47-
_ = re.sub("\s*(AND|OR)[\s(]+'[^']+'\s*(=|LIKE)\s*'.*", "", retVal)
47+
_ = re.sub("\s*(AND|OR)[\s(]+'[^']+'\s*(=|LIKE)\s*'.*", "", retVal, flags=re.I)
4848
if _ != retVal:
4949
retVal = _
5050
retVal += "-- "

0 commit comments

Comments
 (0)