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