mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-09 08:00:36 +03:00
commented out partial work
This commit is contained in:
parent
3655d1f12a
commit
4b3b4eb374
|
@ -478,12 +478,13 @@ class Dump(object):
|
||||||
blank = " " * (maxlength - len(value))
|
blank = " " * (maxlength - len(value))
|
||||||
self._write("| %s%s" % (value, blank), newline=False, console=console)
|
self._write("| %s%s" % (value, blank), newline=False, console=console)
|
||||||
|
|
||||||
mimetype = magic.from_buffer(value, mime=True)
|
# TODO: this is related to issue #8, but it is not yet working
|
||||||
|
#mimetype = magic.from_buffer(value, mime=True)
|
||||||
|
|
||||||
if mimetype.startswith("application") or mimetype.startswith("image"):
|
#if mimetype.startswith("application") or mimetype.startswith("image"):
|
||||||
singleFP = open("%s%s%s" % (dumpDbPath, os.sep, "%s-%d.bin" % (column, randomInt(8))), "wb")
|
# singleFP = open("%s%s%s" % (dumpDbPath, os.sep, "%s-%d.bin" % (column, randomInt(8))), "wb")
|
||||||
singleFP.write(value.encode("utf8"))
|
# singleFP.write(value.encode("utf8"))
|
||||||
singleFP.close()
|
# singleFP.close()
|
||||||
|
|
||||||
if conf.dumpFormat == DUMP_FORMAT.CSV:
|
if conf.dumpFormat == DUMP_FORMAT.CSV:
|
||||||
if field == fields:
|
if field == fields:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user