mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-08 21:51:29 +00:00
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)
This commit is contained in:
@@ -152,7 +152,12 @@ def tableExists(tableFile, regex=None):
|
|||||||
warnMsg = "no table found"
|
warnMsg = "no table found"
|
||||||
logger.warn(warnMsg)
|
logger.warn(warnMsg)
|
||||||
else:
|
else:
|
||||||
|
items = set()
|
||||||
for item in retVal:
|
for item in retVal:
|
||||||
|
if item.lower() in items:
|
||||||
|
continue
|
||||||
|
else:
|
||||||
|
items.add(item.lower())
|
||||||
if not kb.data.cachedTables.has_key(conf.db):
|
if not kb.data.cachedTables.has_key(conf.db):
|
||||||
kb.data.cachedTables[conf.db] = [item]
|
kb.data.cachedTables[conf.db] = [item]
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user