mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
Minor update
This commit is contained in:
parent
39be0f30d8
commit
b2d6ab2949
|
@ -18,7 +18,7 @@ from lib.core.enums import OS
|
|||
from thirdparty.six import unichr as _unichr
|
||||
|
||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||
VERSION = "1.4.1.49"
|
||||
VERSION = "1.4.1.50"
|
||||
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)
|
||||
|
|
|
@ -89,19 +89,21 @@ class Fingerprint(GenericFingerprint):
|
|||
logger.info(infoMsg)
|
||||
|
||||
for version, check in (
|
||||
("2000", "HOST_NAME()=HOST_NAME()"),
|
||||
("2005", "XACT_STATE()=XACT_STATE()"),
|
||||
("2008", "SYSDATETIME()=SYSDATETIME()"),
|
||||
("2012", "CONCAT(NULL,NULL)=CONCAT(NULL,NULL)"),
|
||||
("2014", "CHARINDEX('12.0.2000',@@version)>0"),
|
||||
("2016", "ISJSON(NULL) IS NULL"),
|
||||
("2017", "TRIM(NULL) IS NULL"),
|
||||
("2019", "CHARINDEX('15.0.',@@VERSION)>0"),
|
||||
("Azure", "@@VERSION LIKE '%Azure%'"),
|
||||
("2017", "TRIM(NULL) IS NULL"),
|
||||
("2016", "ISJSON(NULL) IS NULL"),
|
||||
("2014", "CHARINDEX('12.0.',@@VERSION)>0"),
|
||||
("2012", "CONCAT(NULL,NULL)=CONCAT(NULL,NULL)"),
|
||||
("2008", "SYSDATETIME()=SYSDATETIME()"),
|
||||
("2005", "XACT_STATE()=XACT_STATE()"),
|
||||
("2000", "HOST_NAME()=HOST_NAME()"),
|
||||
):
|
||||
result = inject.checkBooleanExpression(check)
|
||||
|
||||
if result:
|
||||
Backend.setVersion(version)
|
||||
break
|
||||
|
||||
if Backend.getVersion():
|
||||
setDbms("%s %s" % (DBMS.MSSQL, Backend.getVersion()))
|
||||
|
|
Loading…
Reference in New Issue
Block a user