From 5659eeec10dd8e324a3435c34b7da33a21968a2c Mon Sep 17 00:00:00 2001 From: securitygeneration Date: Sun, 8 Jun 2014 19:14:38 +0100 Subject: [PATCH] Modified regex to be case insensitive Changed the regular expression to be case insensitive so that it works with the randomcase.py tamper script. --- tamper/unmagicquotes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tamper/unmagicquotes.py b/tamper/unmagicquotes.py index 6d1cf1e7a..078c4f5ba 100644 --- a/tamper/unmagicquotes.py +++ b/tamper/unmagicquotes.py @@ -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 += "-- "