mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 02:53:46 +03:00
Minor bug fix for MSSQL connector --tables option
This commit is contained in:
parent
7927e97007
commit
813f44da16
|
@ -172,12 +172,15 @@ class Dump:
|
|||
|
||||
for tables in dbTables.values():
|
||||
for table in tables:
|
||||
if isinstance(table, (list, tuple, set)):
|
||||
table = table[0]
|
||||
|
||||
maxlength = max(maxlength, len(table))
|
||||
|
||||
lines = "-" * (int(maxlength) + 2)
|
||||
|
||||
for db, tables in dbTables.items():
|
||||
tables.sort(key=lambda x: x.lower())
|
||||
tables.sort()
|
||||
|
||||
self.__write("Database: %s" % db)
|
||||
|
||||
|
@ -189,6 +192,9 @@ class Dump:
|
|||
self.__write("+%s+" % lines)
|
||||
|
||||
for table in tables:
|
||||
if isinstance(table, (list, tuple, set)):
|
||||
table = table[0]
|
||||
|
||||
blank = " " * (maxlength - len(table))
|
||||
self.__write("| %s%s |" % (table, blank))
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user