From e6c50df4f94215821748709c072f1d4be1dc8ca9 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sun, 10 Apr 2011 21:38:08 +0000 Subject: [PATCH] preventing case duplicates for --common-tables (as some DBMSes have case sensitive table names we can't just use them all with the same case) --- lib/techniques/brute/use.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/techniques/brute/use.py b/lib/techniques/brute/use.py index 08c9cc5c8..afb465ace 100644 --- a/lib/techniques/brute/use.py +++ b/lib/techniques/brute/use.py @@ -152,7 +152,12 @@ def tableExists(tableFile, regex=None): warnMsg = "no table found" logger.warn(warnMsg) else: + items = set() for item in retVal: + if item.lower() in items: + continue + else: + items.add(item.lower()) if not kb.data.cachedTables.has_key(conf.db): kb.data.cachedTables[conf.db] = [item] else: