mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
fix for retrieving version of backend OS on MSSQL
This commit is contained in:
parent
a48fc4efec
commit
22f4d5650f
|
@ -152,11 +152,11 @@ class Fingerprint(GenericFingerprint):
|
|||
|
||||
# Get back-end DBMS underlying operating system version
|
||||
for version, data in versions.items():
|
||||
query = "SELECT LEN(%s) FROM %s WHERE %s " % (self.tblField, self.fileTblName, self.tblField)
|
||||
query += "LIKE '%Windows NT " + data[0] + "%'"
|
||||
result = inject.goStacked(query)
|
||||
query = "(SELECT LEN(%s) FROM %s WHERE %s " % (self.tblField, self.fileTblName, self.tblField)
|
||||
query += "LIKE '%Windows NT " + data[0] + "%')>0"
|
||||
result = inject.checkBooleanExpression(query)
|
||||
|
||||
if result is not None and len(result) > 0 and result[0].isdigit():
|
||||
if result:
|
||||
Backend.setOsVersion(version)
|
||||
infoMsg += " %s" % Backend.getOsVersion()
|
||||
break
|
||||
|
|
Loading…
Reference in New Issue
Block a user