mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-26 03:23:48 +03:00
During --flush-session log file should be cleaned too (especially because of --live-tests)
This commit is contained in:
parent
d80744d3d5
commit
244901eda0
|
@ -65,7 +65,7 @@ class Dump(object):
|
||||||
def setOutputFile(self):
|
def setOutputFile(self):
|
||||||
self._outputFile = "%s%slog" % (conf.outputPath, os.sep)
|
self._outputFile = "%s%slog" % (conf.outputPath, os.sep)
|
||||||
try:
|
try:
|
||||||
self._outputFP = codecs.open(self._outputFile, "ab", UNICODE_ENCODING)
|
self._outputFP = codecs.open(self._outputFile, "ab" if not conf.flushSession else "wb", UNICODE_ENCODING)
|
||||||
except IOError, ex:
|
except IOError, ex:
|
||||||
errMsg = "error occurred while opening log file ('%s')" % ex
|
errMsg = "error occurred while opening log file ('%s')" % ex
|
||||||
raise SqlmapGenericException, errMsg
|
raise SqlmapGenericException, errMsg
|
||||||
|
|
Loading…
Reference in New Issue
Block a user