Minor patch (fixes #3795)

This commit is contained in:
Miroslav Stampar 2019-07-04 11:07:25 +02:00
parent 3676cef79b
commit f9489c3352
4 changed files with 5 additions and 3 deletions

View File

@ -3762,7 +3762,7 @@ def createGithubIssue(errMsg, excMsg):
logger.info(infoMsg)
try:
with open(paths.GITHUB_HISTORY, "a+b") as f:
with openFile(paths.GITHUB_HISTORY, "a+b") as f:
f.write("%s\n" % key)
except:
pass

View File

@ -620,6 +620,7 @@ class Dump(object):
with open(filepath, "wb") as f:
_ = safechardecode(value, True)
f.write(_)
except magic.MagicException as ex:
logger.debug(getSafeExString(ex))

View File

@ -18,7 +18,7 @@ from lib.core.enums import OS
from thirdparty.six import unichr as _unichr
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.3.7.4"
VERSION = "1.3.7.5"
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

View File

@ -10,6 +10,7 @@ import os
from lib.core.common import Backend
from lib.core.common import getSafeExString
from lib.core.common import isStackingAvailable
from lib.core.common import openFile
from lib.core.common import readInput
from lib.core.common import runningAsAdmin
from lib.core.data import conf
@ -137,7 +138,7 @@ class Takeover(Abstraction, Metasploit, ICMPsh, Registry):
if os.path.exists(filename):
try:
with open(filename, "wb") as f:
with openFile(filename, "wb") as f:
f.write("1")
except IOError as ex:
errMsg = "there has been a file opening/writing error "