From 65b0dbd4c451063dae6eba9976119455f412cff6 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 20 Aug 2019 00:35:13 +0200 Subject: [PATCH] Patches #3884 --- lib/core/settings.py | 2 +- thirdparty/colorama/ansitowin32.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index 6830f33ff..24c489cfb 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.3.8.14" +VERSION = "1.3.8.15" 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/thirdparty/colorama/ansitowin32.py b/thirdparty/colorama/ansitowin32.py index c8c721a13..eae181017 100644 --- a/thirdparty/colorama/ansitowin32.py +++ b/thirdparty/colorama/ansitowin32.py @@ -184,6 +184,8 @@ class AnsiToWin32(object): if not (err.errno == 0 and retry > 0): raise self._write(text, retry-1) + except UnicodeError: + self.wrapped.write('?') def convert_ansi(self, paramstring, command): if self.convert: