mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 04:31:30 +00:00
returning alphabetically sorted database and table names
This commit is contained in:
@@ -789,6 +789,8 @@ class Enumeration:
|
||||
else:
|
||||
errMsg = "unable to retrieve the database names"
|
||||
raise sqlmapNoneDataException, errMsg
|
||||
else:
|
||||
kb.data.cachedDbs.sort()
|
||||
|
||||
return kb.data.cachedDbs
|
||||
|
||||
@@ -970,6 +972,8 @@ class Enumeration:
|
||||
return self.getTables(bruteForce=True)
|
||||
else:
|
||||
raise sqlmapNoneDataException, errMsg
|
||||
else:
|
||||
kb.data.cachedTables.sort()
|
||||
|
||||
return kb.data.cachedTables
|
||||
|
||||
|
||||
Reference in New Issue
Block a user