From 4d2b890a0a39dd3aed2ea7f7e3a62cc63de804e0 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 9 Nov 2020 23:02:48 +0100 Subject: [PATCH] Silent bug fix --- lib/core/settings.py | 2 +- tamper/0eunion.py | 2 +- tamper/dunion.py | 2 +- tamper/misunion.py | 2 +- tamper/schemasplit.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index 3e77a70a0..663361bc1 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -18,7 +18,7 @@ from lib.core.enums import OS from thirdparty.six import unichr as _unichr # sqlmap version (...) -VERSION = "1.4.11.4" +VERSION = "1.4.11.5" TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE) diff --git a/tamper/0eunion.py b/tamper/0eunion.py index 44de282dd..8ff8c5ae0 100644 --- a/tamper/0eunion.py +++ b/tamper/0eunion.py @@ -29,4 +29,4 @@ def tamper(payload, **kwargs): '1e0UNION ALL SELECT' """ - return re.sub(r"(\d+)\s+(UNION )", r"\g<1>e0\g<2>", payload, re.I) if payload else payload + return re.sub(r"(?i)(\d+)\s+(UNION )", r"\g<1>e0\g<2>", payload) if payload else payload diff --git a/tamper/dunion.py b/tamper/dunion.py index 74a2c6c15..237b6780b 100644 --- a/tamper/dunion.py +++ b/tamper/dunion.py @@ -31,4 +31,4 @@ def tamper(payload, **kwargs): '1DUNION ALL SELECT' """ - return re.sub(r"(\d+)\s+(UNION )", r"\g<1>D\g<2>", payload, re.I) if payload else payload + return re.sub(r"(?i)(\d+)\s+(UNION )", r"\g<1>D\g<2>", payload) if payload else payload diff --git a/tamper/misunion.py b/tamper/misunion.py index 68a9e4fb0..a1eb88865 100644 --- a/tamper/misunion.py +++ b/tamper/misunion.py @@ -33,4 +33,4 @@ def tamper(payload, **kwargs): '1"-.1UNION ALL SELECT' """ - return re.sub(r"\s+(UNION )", r"-.1\g<1>", payload, re.I) if payload else payload + return re.sub(r"(?i)\s+(UNION )", r"-.1\g<1>", payload) if payload else payload diff --git a/tamper/schemasplit.py b/tamper/schemasplit.py index 91bfb48d2..c998b342a 100644 --- a/tamper/schemasplit.py +++ b/tamper/schemasplit.py @@ -28,4 +28,4 @@ def tamper(payload, **kwargs): 'SELECT id FROM testdb 9.e.users' """ - return re.sub(r"( FROM \w+)\.(\w+)", r"\g<1> 9.e.\g<2>", payload, re.I) if payload else payload + return re.sub(r"(?i)( FROM \w+)\.(\w+)", r"\g<1> 9.e.\g<2>", payload) if payload else payload