From bce1cfe00fc175e26062cb205ad9b2509a36775c Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 8 Dec 2020 13:40:46 +0100 Subject: [PATCH] Minor update --- lib/controller/controller.py | 1 - lib/core/option.py | 6 ++++++ lib/core/settings.py | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/controller/controller.py b/lib/controller/controller.py index e89f941de..022235460 100644 --- a/lib/controller/controller.py +++ b/lib/controller/controller.py @@ -452,7 +452,6 @@ def start(): checkNullConnection() if (len(kb.injections) == 0 or (len(kb.injections) == 1 and kb.injections[0].place is None)) and (kb.injection.place is None or kb.injection.parameter is None): - if not any((conf.string, conf.notString, conf.regexp)) and PAYLOAD.TECHNIQUE.BOOLEAN in conf.technique: # NOTE: this is not needed anymore, leaving only to display # a warning message to the user in case the page is not stable diff --git a/lib/core/option.py b/lib/core/option.py index 04c8e69fb..ba5ed87e3 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -21,6 +21,7 @@ import sys import tempfile import threading import time +import traceback from lib.controller.checks import checkConnection from lib.core.common import Backend @@ -921,6 +922,11 @@ def _setPreprocessFunctions(): try: function(_urllib.request.Request("http://localhost")) except: + tbMsg = traceback.format_exc() + + if conf.debug: + dataToStdout(tbMsg) + handle, filename = tempfile.mkstemp(prefix=MKSTEMP_PREFIX.PREPROCESS, suffix=".py") os.close(handle) diff --git a/lib/core/settings.py b/lib/core/settings.py index d1592752b..e655452ac 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.12.16" +VERSION = "1.4.12.17" 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)