diff --git a/lib/core/dump.py b/lib/core/dump.py index 4af99a742..b5601f4d9 100644 --- a/lib/core/dump.py +++ b/lib/core/dump.py @@ -478,16 +478,14 @@ class Dump(object): blank = " " * (maxlength - len(value)) self._write("| %s%s" % (value, blank), newline=False, console=console) - if len(value) > 10 and r'\x' in value: - mimetype = magic.from_buffer(value, mime=True) - 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: - import pdb - pdb.set_trace() - from extra.safe2bin.safe2bin import safechardecode - _ = _.encode(UNICODE_ENCODING) - _ = safechardecode(value) - f.write(_) + #if len(value) > 10 and r'\x' in value: + #mimetype = magic.from_buffer(value, mime=True) + #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: + #from extra.safe2bin.safe2bin import safechardecode + #_ = _.encode(UNICODE_ENCODING) + #_ = safechardecode(value) + #f.write(_) if conf.dumpFormat == DUMP_FORMAT.CSV: if field == fields: