From cfe9fb4f5b3d45c46608bf080ee203686c6a89ee Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 10 Aug 2020 21:27:38 +0200 Subject: [PATCH] Fixes #4301 --- lib/core/settings.py | 2 +- lib/takeover/registry.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index 0bbef2dc9..f1ba0bfb7 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -18,7 +18,7 @@ from lib.core.enums import OS from thirdparty.six import unichr as _unichr # sqlmap version (...) -VERSION = "1.4.8.4" +VERSION = "1.4.8.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) diff --git a/lib/takeover/registry.py b/lib/takeover/registry.py index 991ce631a..78a631c65 100644 --- a/lib/takeover/registry.py +++ b/lib/takeover/registry.py @@ -7,6 +7,7 @@ See the file 'LICENSE' for copying permission import os +from lib.core.common import openFile from lib.core.common import randomStr from lib.core.data import conf from lib.core.data import logger @@ -48,7 +49,7 @@ class Registry(object): ) def _createLocalBatchFile(self): - self._batPathFp = open(self._batPathLocal, "w") + self._batPathFp = openFile(self._batPathLocal, "w") if self._operation == REGISTRY_OPERATION.READ: lines = self._batRead