From c62937485847bba650951888dc65ec1f30be92e7 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 7 Sep 2023 11:03:01 +0200 Subject: [PATCH] Fixes #5521 --- lib/core/settings.py | 2 +- lib/request/inject.py | 2 +- lib/techniques/error/use.py | 2 +- lib/techniques/union/use.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index 0d943f8eec6..5370a248195 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -20,7 +20,7 @@ from thirdparty.six import unichr as _unichr # sqlmap version (...) -VERSION = "1.7.9.1" +VERSION = "1.7.9.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) diff --git a/lib/request/inject.py b/lib/request/inject.py index 039ef1be3f6..2342837b38c 100644 --- a/lib/request/inject.py +++ b/lib/request/inject.py @@ -274,7 +274,7 @@ def _goInferenceProxy(expression, fromUser=False, batch=False, unpack=True, char stopLimit = 1 - elif (not count or int(count) == 0): + elif not isNumPosStrValue(count): if not count: warnMsg = "the SQL query provided does not " warnMsg += "return any output" diff --git a/lib/techniques/error/use.py b/lib/techniques/error/use.py index 343733dd26c..749cef5d811 100644 --- a/lib/techniques/error/use.py +++ b/lib/techniques/error/use.py @@ -355,7 +355,7 @@ def errorUse(expression, dump=False): stopLimit = 1 - elif (not count or int(count) == 0): + elif not isNumPosStrValue(count): if not count: warnMsg = "the SQL query provided does not " warnMsg += "return any output" diff --git a/lib/techniques/union/use.py b/lib/techniques/union/use.py index ef550d8da4f..1ad4ff81302 100644 --- a/lib/techniques/union/use.py +++ b/lib/techniques/union/use.py @@ -308,7 +308,7 @@ def unionUse(expression, unpack=True, dump=False): stopLimit = 1 - elif (not count or int(count) == 0): + elif not isNumPosStrValue(count): if not count: warnMsg = "the SQL query provided does not " warnMsg += "return any output"