From ba015608c6b6beb5692faa25987787c75f869c67 Mon Sep 17 00:00:00 2001 From: stamparm Date: Tue, 19 Feb 2013 10:12:47 +0100 Subject: [PATCH] Update for special cases --- tamper/between.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tamper/between.py b/tamper/between.py index 6035c4c0d..f5f781548 100644 --- a/tamper/between.py +++ b/tamper/between.py @@ -43,5 +43,7 @@ def tamper(payload, **kwargs): if match: _ = "%s %s NOT BETWEEN 0 AND %s" % (match.group(2), match.group(4), match.group(5)) retVal = retVal.replace(match.group(0), _) + else: + retVal = re.sub(r"\s*>\s*(\d+|'[^']+')", " NOT BETWEEN 0 AND \g<1>", payload) return retVal