Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f9489c3

Browse files
committed
Minor patch (fixes #3795)
1 parent 3676cef commit f9489c3

4 files changed

Lines changed: 5 additions & 3 deletions

File tree

lib/core/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3762,7 +3762,7 @@ def createGithubIssue(errMsg, excMsg):
37623762
logger.info(infoMsg)
37633763

37643764
try:
3765-
with open(paths.GITHUB_HISTORY, "a+b") as f:
3765+
with openFile(paths.GITHUB_HISTORY, "a+b") as f:
37663766
f.write("%s\n" % key)
37673767
except:
37683768
pass

lib/core/dump.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,7 @@ def dbTableValues(self, tableValues):
620620
with open(filepath, "wb") as f:
621621
_ = safechardecode(value, True)
622622
f.write(_)
623+
623624
except magic.MagicException as ex:
624625
logger.debug(getSafeExString(ex))
625626

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.3.7.4"
21+
VERSION = "1.3.7.5"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

plugins/generic/takeover.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from lib.core.common import Backend
1111
from lib.core.common import getSafeExString
1212
from lib.core.common import isStackingAvailable
13+
from lib.core.common import openFile
1314
from lib.core.common import readInput
1415
from lib.core.common import runningAsAdmin
1516
from lib.core.data import conf
@@ -137,7 +138,7 @@ def osPwn(self):
137138

138139
if os.path.exists(filename):
139140
try:
140-
with open(filename, "wb") as f:
141+
with openFile(filename, "wb") as f:
141142
f.write("1")
142143
except IOError as ex:
143144
errMsg = "there has been a file opening/writing error "

0 commit comments

Comments
 (0)