mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 05:01:30 +00:00
added one more level of MSSQL version check (if first fails for some reason)
This commit is contained in:
@@ -132,6 +132,16 @@ class Fingerprint(GenericFingerprint):
|
||||
|
||||
break
|
||||
|
||||
if not kb.dbmsVersion or kb.dbmsVersion == ["Unknown"]:
|
||||
for version, check in [\
|
||||
("2000", "HOST_NAME()=HOST_NAME()"),\
|
||||
("2005", "XACT_STATE()=XACT_STATE()"),\
|
||||
("2008", "SYSDATETIME()>0") ]:
|
||||
result = inject.checkBooleanExpression(check)
|
||||
|
||||
if result:
|
||||
kb.dbmsVersion = [version]
|
||||
|
||||
if kb.dbmsVersion:
|
||||
setDbms("%s %s" % (DBMS.MSSQL, kb.dbmsVersion[0]))
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user