From 48e8c978fb394a0657352d82a91bda406e899d69 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Thu, 15 Mar 2012 17:55:49 +0000 Subject: [PATCH] Minor fix, way more to do for --search -C for MSSQL --- plugins/dbms/mssqlserver/enumeration.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/dbms/mssqlserver/enumeration.py b/plugins/dbms/mssqlserver/enumeration.py index 1e27b551f..5f74e16c3 100644 --- a/plugins/dbms/mssqlserver/enumeration.py +++ b/plugins/dbms/mssqlserver/enumeration.py @@ -259,7 +259,9 @@ class Enumeration(GenericEnumeration): colCond = rootQuery.inband.condition colConsider, colCondParam = self.likeOrExact("column") - if not len(kb.data.cachedDbs): + if conf.db is not None: + enumDbs = conf.db.split(",") + elif not len(kb.data.cachedDbs): enumDbs = self.getDbs() else: enumDbs = kb.data.cachedDbs