diff --git a/lib/core/settings.py b/lib/core/settings.py index 12c44b89f..655452df0 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -17,7 +17,7 @@ from lib.core.enums import DBMS_DIRECTORY_NAME from lib.core.enums import OS # sqlmap version (...) -VERSION = "1.3.4.1" +VERSION = "1.3.4.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/connect.py b/lib/request/connect.py index ed782d65c..8247a15e5 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -82,6 +82,7 @@ from lib.core.exception import SqlmapConnectionException from lib.core.exception import SqlmapGenericException from lib.core.exception import SqlmapSyntaxException from lib.core.exception import SqlmapTokenException +from lib.core.exception import SqlmapUserQuitException from lib.core.exception import SqlmapValueException from lib.core.settings import ASTERISK_MARKER from lib.core.settings import BOUNDARY_BACKSLASH_MARKER @@ -725,8 +726,11 @@ class Connect(object): kb.connErrorChoice = readInput(message, default='N', boolean=True) - if kb.connErrorChoice is False: - raise SqlmapConnectionException(warnMsg) + if kb.connErrorChoice is not None: + if kb.connErrorChoice: + raise SqlmapConnectionException(warnMsg) + else: + raise SqlmapUserQuitException if "forcibly closed" in tbMsg: logger.critical(warnMsg)