Again, minor fix to MSSQL 2000 fingerprint

This commit is contained in:
Bernardo Damele 2009-04-23 21:13:34 +00:00
parent 4ce74764b7
commit eeb34eb028

View File

@ -198,7 +198,7 @@ class MSSQLServerMap(Fingerprint, Enumeration, Filesystem, Miscellaneous, Takeov
logger.info(infoMsg) logger.info(infoMsg)
for version in ( 0, 5, 8 ): for version in ( 0, 5, 8 ):
payload = agent.fullPayload(" AND SUBSTRING((@@VERSION), 22, 1)=2 AND SUBSTRING((@@VERSION), 25, 1)=%d" % version) payload = agent.fullPayload(" AND ( SUBSTRING((@@VERSION), 22, 1)=2 AND SUBSTRING((@@VERSION), 25, 1)=%d ) OR ( SUBSTRING((@@VERSION), 23, 1)=2 AND SUBSTRING((@@VERSION), 26, 1)=%d ) " % (version, version))
result = Request.queryPage(payload) result = Request.queryPage(payload)
if result == True: if result == True: