returning alphabetically sorted database and table names

This commit is contained in:
Miroslav Stampar 2011-10-28 12:40:59 +00:00
parent 666a7da12a
commit 6c0e8b0ea8

View File

@ -789,6 +789,8 @@ class Enumeration:
else: else:
errMsg = "unable to retrieve the database names" errMsg = "unable to retrieve the database names"
raise sqlmapNoneDataException, errMsg raise sqlmapNoneDataException, errMsg
else:
kb.data.cachedDbs.sort()
return kb.data.cachedDbs return kb.data.cachedDbs
@ -970,6 +972,8 @@ class Enumeration:
return self.getTables(bruteForce=True) return self.getTables(bruteForce=True)
else: else:
raise sqlmapNoneDataException, errMsg raise sqlmapNoneDataException, errMsg
else:
kb.data.cachedTables.sort()
return kb.data.cachedTables return kb.data.cachedTables