From a23faaeb8c9d37502eee28db2e7fd7ced3bc45e6 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 31 May 2021 00:34:14 +0200 Subject: [PATCH] Patch related to #4693 --- lib/core/common.py | 9 ++++++++- lib/core/settings.py | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/lib/core/common.py b/lib/core/common.py index ae95a90cccc..41517b4a45f 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -2708,7 +2708,14 @@ def popValue(): 'foobar' """ - return getCurrentThreadData().valueStack.pop() + retVal = None + + try: + retVal = getCurrentThreadData().valueStack.pop() + except IndexError: + pass + + return retVal def wasLastResponseDBMSError(): """ diff --git a/lib/core/settings.py b/lib/core/settings.py index 36d7f9cc80d..c18fb8981df 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -19,7 +19,7 @@ from thirdparty.six import unichr as _unichr # sqlmap version (...) -VERSION = "1.5.5.11" +VERSION = "1.5.5.12" 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)