This commit is contained in:
Miroslav Stampar 2016-06-03 16:06:29 +02:00
parent 78fdb27a0b
commit 0df2456f34
2 changed files with 2 additions and 3 deletions

View File

@ -933,7 +933,6 @@ def dataToDumpFile(dumpFile, data):
else: else:
raise raise
def dataToOutFile(filename, data): def dataToOutFile(filename, data):
retVal = None retVal = None
@ -941,7 +940,7 @@ def dataToOutFile(filename, data):
retVal = os.path.join(conf.filePath, filePathToSafeString(filename)) retVal = os.path.join(conf.filePath, filePathToSafeString(filename))
try: try:
with open(retVal, "w+b") as f: with openFile(retVal, "w+b") as f:
f.write(data) f.write(data)
except IOError, ex: except IOError, ex:
errMsg = "something went wrong while trying to write " errMsg = "something went wrong while trying to write "

View File

@ -19,7 +19,7 @@ from lib.core.enums import OS
from lib.core.revision import getRevisionNumber from lib.core.revision import getRevisionNumber
# sqlmap version (<major>.<minor>.<month>.<monthly commit>) # sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.0.6.23" VERSION = "1.0.6.24"
REVISION = getRevisionNumber() REVISION = getRevisionNumber()
STABLE = VERSION.count('.') <= 2 STABLE = VERSION.count('.') <= 2
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev") VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")