From 4e7f0b10d5d9207725f9a0294a503bc4d18b0b44 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 4 May 2020 10:45:39 +0200 Subject: [PATCH] Patch related to the #4185 --- lib/core/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index fb4418c57..b0ab91c15 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.5.1" +VERSION = "1.4.5.2" 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) @@ -249,7 +249,7 @@ PYVERSION = sys.version.split()[0] IS_WIN = PLATFORM == "nt" # Check if running in terminal -IS_TTY = os.isatty(sys.stdout.fileno()) +IS_TTY = hasattr(sys.stdout, "fileno") and os.isatty(sys.stdout.fileno()) # DBMS system databases MSSQL_SYSTEM_DBS = ("Northwind", "master", "model", "msdb", "pubs", "tempdb", "Resource", "ReportServer", "ReportServerTempDB")