From aa62465aad09bf4bd068da08fc2d7d04ca30ca4a Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 1 Mar 2010 10:49:07 +0000 Subject: [PATCH] minor update, also for that banner error --- plugins/dbms/mssqlserver.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/dbms/mssqlserver.py b/plugins/dbms/mssqlserver.py index 6a45b1d9c..8d7a51cff 100644 --- a/plugins/dbms/mssqlserver.py +++ b/plugins/dbms/mssqlserver.py @@ -149,9 +149,9 @@ class MSSQLServerMap(Fingerprint, Enumeration, Filesystem, Miscellaneous, Takeov value += "active fingerprint: %s" % actVer if kb.bannerFp: - release = kb.bannerFp["dbmsRelease"] - version = kb.bannerFp["dbmsVersion"] - servicepack = kb.bannerFp["dbmsServicePack"] + release = kb.bannerFp["dbmsRelease"] if 'dbmsRelease' in kb.bannerFp else None + version = kb.bannerFp["dbmsVersion"] if 'dbmsVersion' in kb.bannerFp else None + servicepack = kb.bannerFp["dbmsServicePack"] if 'dbmsServicePack' in kb.bannerFp else None if release and version and servicepack: banVer = "Microsoft SQL Server %s " % release