mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-29 04:53:48 +03:00
working on #8 - still not usable though
This commit is contained in:
parent
2a2d7e886d
commit
41834e7a5b
|
@ -37,6 +37,8 @@ from lib.core.settings import TRIM_STDOUT_DUMP_SIZE
|
||||||
from lib.core.settings import UNICODE_ENCODING
|
from lib.core.settings import UNICODE_ENCODING
|
||||||
from thirdparty.magic import magic
|
from thirdparty.magic import magic
|
||||||
|
|
||||||
|
from extra.safe2bin.safe2bin import safechardecode
|
||||||
|
|
||||||
class Dump(object):
|
class Dump(object):
|
||||||
"""
|
"""
|
||||||
This class defines methods used to parse and output the results
|
This class defines methods used to parse and output the results
|
||||||
|
@ -481,9 +483,7 @@ class Dump(object):
|
||||||
#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 codecs.open("%s%s%s" % (dumpDbPath, os.sep, "%s-%d.bin" % (column, randomInt(8))), "wb", UNICODE_ENCODING) as f:
|
||||||
#from extra.safe2bin.safe2bin import safechardecode
|
|
||||||
#_ = _.encode(UNICODE_ENCODING)
|
|
||||||
# _ = safechardecode(value)
|
# _ = safechardecode(value)
|
||||||
# f.write(_)
|
# f.write(_)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user