Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b2d6ab2

Browse files
committed
Minor update
1 parent 39be0f3 commit b2d6ab2

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.4.1.49"
21+
VERSION = "1.4.1.50"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

plugins/dbms/mssqlserver/fingerprint.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,19 +89,21 @@ def checkDbms(self):
8989
logger.info(infoMsg)
9090

9191
for version, check in (
92-
("2000", "HOST_NAME()=HOST_NAME()"),
93-
("2005", "XACT_STATE()=XACT_STATE()"),
94-
("2008", "SYSDATETIME()=SYSDATETIME()"),
95-
("2012", "CONCAT(NULL,NULL)=CONCAT(NULL,NULL)"),
96-
("2014", "CHARINDEX('12.0.2000',@@version)>0"),
97-
("2016", "ISJSON(NULL) IS NULL"),
98-
("2017", "TRIM(NULL) IS NULL"),
92+
("2019", "CHARINDEX('15.0.',@@VERSION)>0"),
9993
("Azure", "@@VERSION LIKE '%Azure%'"),
94+
("2017", "TRIM(NULL) IS NULL"),
95+
("2016", "ISJSON(NULL) IS NULL"),
96+
("2014", "CHARINDEX('12.0.',@@VERSION)>0"),
97+
("2012", "CONCAT(NULL,NULL)=CONCAT(NULL,NULL)"),
98+
("2008", "SYSDATETIME()=SYSDATETIME()"),
99+
("2005", "XACT_STATE()=XACT_STATE()"),
100+
("2000", "HOST_NAME()=HOST_NAME()"),
100101
):
101102
result = inject.checkBooleanExpression(check)
102103

103104
if result:
104105
Backend.setVersion(version)
106+
break
105107

106108
if Backend.getVersion():
107109
setDbms("%s %s" % (DBMS.MSSQL, Backend.getVersion()))

0 commit comments

Comments
 (0)