From 39be0f30d809299efcb9b27b0e1ba29326269471 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sat, 25 Jan 2020 16:49:32 +0100 Subject: [PATCH] Adding recognition of Azure --- lib/core/settings.py | 2 +- plugins/dbms/mssqlserver/fingerprint.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index 84bf77124..7d6973f21 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.1.48" +VERSION = "1.4.1.49" 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/plugins/dbms/mssqlserver/fingerprint.py b/plugins/dbms/mssqlserver/fingerprint.py index 4e4f7db0e..42d84f497 100644 --- a/plugins/dbms/mssqlserver/fingerprint.py +++ b/plugins/dbms/mssqlserver/fingerprint.py @@ -95,7 +95,8 @@ class Fingerprint(GenericFingerprint): ("2012", "CONCAT(NULL,NULL)=CONCAT(NULL,NULL)"), ("2014", "CHARINDEX('12.0.2000',@@version)>0"), ("2016", "ISJSON(NULL) IS NULL"), - ("2017", "TRIM(NULL) IS NULL") + ("2017", "TRIM(NULL) IS NULL"), + ("Azure", "@@VERSION LIKE '%Azure%'"), ): result = inject.checkBooleanExpression(check)