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

Skip to content

Commit 50bced5

Browse files
committed
Adding support for fingerprinting MsSQL 2014 and 2016
1 parent e275e8c commit 50bced5

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.revision import getRevisionNumber
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.0.6.12"
22+
VERSION = "1.0.6.13"
2323
REVISION = getRevisionNumber()
2424
STABLE = VERSION.count('.') <= 2
2525
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")

plugins/dbms/mssqlserver/fingerprint.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ def checkDbms(self):
9393
for version, check in (("2000", "HOST_NAME()=HOST_NAME()"), \
9494
("2005", "XACT_STATE()=XACT_STATE()"), \
9595
("2008", "SYSDATETIME()=SYSDATETIME()"), \
96-
("2012", "CONCAT(NULL,NULL)=CONCAT(NULL,NULL)")):
96+
("2012", "CONCAT(NULL,NULL)=CONCAT(NULL,NULL)"), \
97+
("2014", "CHARINDEX('12.0.2000',@@version)>0"), \
98+
("2016", "ISJSON(NULL) IS NULL")):
9799
result = inject.checkBooleanExpression(check)
98100

99101
if result:

0 commit comments

Comments
 (0)