mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-05-28 17:53:23 +03:00
Minor update (not displaying safe enclosings in table dumps)
This commit is contained in:
parent
e528ea8208
commit
dcea745576
|
@ -438,7 +438,7 @@ class Dump(object):
|
||||||
colType = None
|
colType = None
|
||||||
break
|
break
|
||||||
|
|
||||||
cols.append((column, colType if colType else Replication.TEXT))
|
cols.append((unsafeSQLIdentificatorNaming(column), colType if colType else Replication.TEXT))
|
||||||
|
|
||||||
rtable = replication.createTable(table, cols)
|
rtable = replication.createTable(table, cols)
|
||||||
elif conf.dumpFormat == DUMP_FORMAT.HTML:
|
elif conf.dumpFormat == DUMP_FORMAT.HTML:
|
||||||
|
@ -463,6 +463,8 @@ class Dump(object):
|
||||||
for column in columns:
|
for column in columns:
|
||||||
if column != "__infos__":
|
if column != "__infos__":
|
||||||
info = tableValues[column]
|
info = tableValues[column]
|
||||||
|
|
||||||
|
column = unsafeSQLIdentificatorNaming(column)
|
||||||
maxlength = int(info["length"])
|
maxlength = int(info["length"])
|
||||||
blank = " " * (maxlength - len(column))
|
blank = " " * (maxlength - len(column))
|
||||||
|
|
||||||
|
@ -528,7 +530,7 @@ class Dump(object):
|
||||||
if not os.path.isdir(dumpDbPath):
|
if not os.path.isdir(dumpDbPath):
|
||||||
os.makedirs(dumpDbPath, 0755)
|
os.makedirs(dumpDbPath, 0755)
|
||||||
|
|
||||||
filepath = os.path.join(dumpDbPath, "%s-%d.bin" % (column, randomInt(8)))
|
filepath = os.path.join(dumpDbPath, "%s-%d.bin" % (unsafeSQLIdentificatorNaming(column), randomInt(8)))
|
||||||
warnMsg = "writing binary ('%s') content to file '%s' " % (mimetype, filepath)
|
warnMsg = "writing binary ('%s') content to file '%s' " % (mimetype, filepath)
|
||||||
logger.warn(warnMsg)
|
logger.warn(warnMsg)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user