mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-05-03 15:23:44 +03:00
Removing a leftover
This commit is contained in:
parent
0a122ccce4
commit
b94a5d42d4
|
@ -478,16 +478,14 @@ 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)
|
||||||
|
|
||||||
if len(value) > 10 and r'\x' in value:
|
#if len(value) > 10 and r'\x' in value:
|
||||||
mimetype = magic.from_buffer(value, mime=True)
|
#mimetype = magic.from_buffer(value, mime=True)
|
||||||
if mimetype.startswith("application") or mimetype.startswith("image"):
|
#if mimetype.startswith("application") or mimetype.startswith("image"):
|
||||||
with open("%s%s%s" % (dumpDbPath, os.sep, "%s-%d.bin" % (column, randomInt(8))), "wb") as f:
|
#with open("%s%s%s" % (dumpDbPath, os.sep, "%s-%d.bin" % (column, randomInt(8))), "wb") as f:
|
||||||
import pdb
|
#from extra.safe2bin.safe2bin import safechardecode
|
||||||
pdb.set_trace()
|
#_ = _.encode(UNICODE_ENCODING)
|
||||||
from extra.safe2bin.safe2bin import safechardecode
|
#_ = safechardecode(value)
|
||||||
_ = _.encode(UNICODE_ENCODING)
|
#f.write(_)
|
||||||
_ = safechardecode(value)
|
|
||||||
f.write(_)
|
|
||||||
|
|
||||||
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