mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 01:26:42 +03:00
minor update
This commit is contained in:
parent
f7be0ca4e2
commit
bd7da45546
|
@ -85,6 +85,9 @@ class Enumeration(GenericEnumeration):
|
|||
else:
|
||||
kb.data.cachedTables[db].append(table)
|
||||
|
||||
for db, tables in kb.data.cachedTables.items():
|
||||
kb.data.cachedTables[db] = sorted(tables) if tables else tables
|
||||
|
||||
return kb.data.cachedTables
|
||||
|
||||
def getColumns(self, onlyColNames=False):
|
||||
|
|
|
@ -141,8 +141,7 @@ class Enumeration(GenericEnumeration):
|
|||
raise sqlmapNoneDataException(errMsg)
|
||||
else:
|
||||
for db, tables in kb.data.cachedTables.items():
|
||||
if tables:
|
||||
kb.data.cachedTables[db] = sorted(tables)
|
||||
kb.data.cachedTables[db] = sorted(tables) if tables else tables
|
||||
|
||||
return kb.data.cachedTables
|
||||
|
||||
|
|
|
@ -148,6 +148,9 @@ class Enumeration(GenericEnumeration):
|
|||
kb.data.cachedTables[db].append(table)
|
||||
break
|
||||
|
||||
for db, tables in kb.data.cachedTables.items():
|
||||
kb.data.cachedTables[db] = sorted(tables) if tables else tables
|
||||
|
||||
return kb.data.cachedTables
|
||||
|
||||
def getColumns(self, onlyColNames=False):
|
||||
|
|
|
@ -974,8 +974,7 @@ class Enumeration:
|
|||
raise sqlmapNoneDataException, errMsg
|
||||
else:
|
||||
for db, tables in kb.data.cachedTables.items():
|
||||
if tables:
|
||||
kb.data.cachedTables[db] = sorted(tables)
|
||||
kb.data.cachedTables[db] = sorted(tables) if tables else tables
|
||||
|
||||
return kb.data.cachedTables
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user