From eeb34eb028cc48b7be6bc7cc640dfda1ae549a7a Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Thu, 23 Apr 2009 21:13:34 +0000 Subject: [PATCH] Again, minor fix to MSSQL 2000 fingerprint --- plugins/dbms/mssqlserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dbms/mssqlserver.py b/plugins/dbms/mssqlserver.py index daeec1a13..b856eea99 100644 --- a/plugins/dbms/mssqlserver.py +++ b/plugins/dbms/mssqlserver.py @@ -198,7 +198,7 @@ class MSSQLServerMap(Fingerprint, Enumeration, Filesystem, Miscellaneous, Takeov logger.info(infoMsg) 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) if result == True: