mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
Minor layout adjustment
This commit is contained in:
@@ -172,7 +172,7 @@ class Dump:
|
|||||||
for db, tables in dbTables.items():
|
for db, tables in dbTables.items():
|
||||||
tables.sort()
|
tables.sort()
|
||||||
|
|
||||||
self.__write("Database: %s" % db)
|
self.__write("Database: %s" % db if db else "Current database")
|
||||||
|
|
||||||
if len(tables) == 1:
|
if len(tables) == 1:
|
||||||
self.__write("[1 table]")
|
self.__write("[1 table]")
|
||||||
@@ -220,7 +220,7 @@ class Dump:
|
|||||||
maxlength2 = max(maxlength2, len("TYPE"))
|
maxlength2 = max(maxlength2, len("TYPE"))
|
||||||
lines2 = "-" * (maxlength2 + 2)
|
lines2 = "-" * (maxlength2 + 2)
|
||||||
|
|
||||||
self.__write("Database: %s\nTable: %s" % (db, table))
|
self.__write("Database: %s\nTable: %s" % (db if db else "Current database", table))
|
||||||
|
|
||||||
if len(columns) == 1:
|
if len(columns) == 1:
|
||||||
self.__write("[1 column]")
|
self.__write("[1 column]")
|
||||||
@@ -270,7 +270,7 @@ class Dump:
|
|||||||
maxlength1 = max(maxlength1, len(normalizeUnicode(table) or str(table)))
|
maxlength1 = max(maxlength1, len(normalizeUnicode(table) or str(table)))
|
||||||
|
|
||||||
for db, counts in dbTables.items():
|
for db, counts in dbTables.items():
|
||||||
self.__write("Database: %s" % db)
|
self.__write("Database: %s" % db if db else "Current database")
|
||||||
|
|
||||||
lines1 = "-" * (maxlength1 + 2)
|
lines1 = "-" * (maxlength1 + 2)
|
||||||
blank1 = " " * (maxlength1 - len("Table"))
|
blank1 = " " * (maxlength1 - len("Table"))
|
||||||
@@ -339,7 +339,7 @@ class Dump:
|
|||||||
separator += "+%s" % lines
|
separator += "+%s" % lines
|
||||||
|
|
||||||
separator += "+"
|
separator += "+"
|
||||||
self.__write("Database: %s\nTable: %s" % (db, table))
|
self.__write("Database: %s\nTable: %s" % (db if db else "Current database", table))
|
||||||
|
|
||||||
if conf.replicate:
|
if conf.replicate:
|
||||||
cols = []
|
cols = []
|
||||||
|
|||||||
Reference in New Issue
Block a user