From c3e81a62235f6fe2d0c461b88cd4f188a0f41747 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 1 Dec 2020 15:34:49 +0100 Subject: [PATCH] Switching EXTRACTVALUE and FLOOR in priority (FLOOR is not working on recent MySQL) --- data/xml/payloads/error_based.xml | 24 ++++++++++++------------ lib/core/settings.py | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/data/xml/payloads/error_based.xml b/data/xml/payloads/error_based.xml index f84cff8c5..f9505522f 100644 --- a/data/xml/payloads/error_based.xml +++ b/data/xml/payloads/error_based.xml @@ -175,7 +175,7 @@ MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR) 2 - 1 + 2 1 1,2,3,8,9 1 @@ -199,7 +199,7 @@ MySQL >= 5.0 OR error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR) 2 - 1 + 2 3 1,2,3,8,9 @@ -224,7 +224,7 @@ MySQL >= 5.1 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (EXTRACTVALUE) 2 - 2 + 1 1 1,2,3,8,9 1 @@ -248,7 +248,7 @@ MySQL >= 5.1 OR error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (EXTRACTVALUE) 2 - 2 + 1 3 1,2,3,8,9 @@ -322,7 +322,7 @@ MySQL >= 4.1 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR) 2 - 2 + 3 1 1,2,3,8,9 1 @@ -347,7 +347,7 @@ MySQL >= 4.1 OR error-based - WHERE or HAVING clause (FLOOR) 2 - 2 + 3 3 1,8,9 1 @@ -372,7 +372,7 @@ MySQL OR error-based - WHERE or HAVING clause (FLOOR) 2 - 3 + 4 3 1,8,9 2 @@ -969,7 +969,7 @@ MySQL >= 5.0 error-based - Parameter replace (FLOOR) 2 - 1 + 2 1 1,2,3,9 3 @@ -1017,7 +1017,7 @@ MySQL >= 5.1 error-based - Parameter replace (EXTRACTVALUE) 2 - 3 + 2 1 1,2,3,9 3 @@ -1258,7 +1258,7 @@ MySQL >= 5.0 error-based - ORDER BY, GROUP BY clause (FLOOR) 2 - 3 + 4 1 2,3 1 @@ -1278,7 +1278,7 @@ MySQL >= 5.1 error-based - ORDER BY, GROUP BY clause (EXTRACTVALUE) 2 - 4 + 3 1 2,3 1 @@ -1318,7 +1318,7 @@ MySQL >= 4.1 error-based - ORDER BY, GROUP BY clause (FLOOR) 2 - 2 + 3 1 2,3 1 diff --git a/lib/core/settings.py b/lib/core/settings.py index 9139d024f..634903d4d 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.12.0" +VERSION = "1.4.12.1" 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)