From 309d08850fd673eee5a10be04075e3a4dac1513e Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 17 Jan 2022 13:18:35 +0100 Subject: [PATCH] Fixes #4943 --- lib/controller/checks.py | 5 +---- lib/core/settings.py | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/controller/checks.py b/lib/controller/checks.py index 0e60131bb..a1a53878e 100644 --- a/lib/controller/checks.py +++ b/lib/controller/checks.py @@ -11,7 +11,6 @@ import random import re import socket import subprocess -import sys import time from extra.beep.beep import beep @@ -46,7 +45,6 @@ from lib.core.common import unArrayizeValue from lib.core.common import wasLastResponseDBMSError from lib.core.common import wasLastResponseHTTPError from lib.core.compat import xrange -from lib.core.convert import getBytes from lib.core.convert import getUnicode from lib.core.data import conf from lib.core.data import kb @@ -95,7 +93,6 @@ from lib.core.settings import SINGLE_QUOTE_MARKER from lib.core.settings import SLEEP_TIME_MARKER from lib.core.settings import SUHOSIN_MAX_VALUE_LENGTH from lib.core.settings import SUPPORTED_DBMS -from lib.core.settings import UNICODE_ENCODING from lib.core.settings import UPPER_RATIO_BOUND from lib.core.settings import URI_HTTP_HEADER from lib.core.threads import getCurrentThreadData @@ -792,7 +789,7 @@ def checkSqlInjection(place, parameter, value): logger.info(infoMsg) try: - process = subprocess.Popen(getBytes(conf.alert, sys.getfilesystemencoding() or UNICODE_ENCODING), shell=True) + process = subprocess.Popen(conf.alert, shell=True) process.wait() except Exception as ex: errMsg = "error occurred while executing '%s' ('%s')" % (conf.alert, getSafeExString(ex)) diff --git a/lib/core/settings.py b/lib/core/settings.py index dd2da655b..7ca12b8ec 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -20,7 +20,7 @@ from thirdparty import six from thirdparty.six import unichr as _unichr # sqlmap version (...) -VERSION = "1.6.1.2" +VERSION = "1.6.1.3" 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)