From 9c694ce3ecd6887130017db0d5710cbb0d9d5ce8 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 12 Jul 2011 23:27:47 +0000 Subject: [PATCH] bug fix (--tables --columns) --- plugins/generic/enumeration.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/generic/enumeration.py b/plugins/generic/enumeration.py index 3b21bcb47..4108f87fd 100644 --- a/plugins/generic/enumeration.py +++ b/plugins/generic/enumeration.py @@ -1006,7 +1006,10 @@ class Enumeration: self.getTables() if len(kb.data.cachedTables) > 0: - tblList = kb.data.cachedTables.values() + if conf.db in kb.data.cachedTables: + tblList = kb.data.cachedTables[conf.db] + else: + tblList = kb.data.cachedTables.values() if isinstance(tblList[0], (set, tuple, list)): tblList = tblList[0]