From 70e6700eb7692c50cffe2118ffbe6cb206bd9cfe Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 27 Dec 2019 14:38:22 +0100 Subject: [PATCH] Fixes #4053 --- lib/core/settings.py | 2 +- sqlmap.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index 52a53249e..93c57e67a 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.3.12.29" +VERSION = "1.3.12.30" 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/sqlmap.py b/sqlmap.py index cfb9ddac3..b353ae324 100755 --- a/sqlmap.py +++ b/sqlmap.py @@ -275,6 +275,11 @@ def main(): logger.critical(errMsg) raise SystemExit + elif all(_ in excMsg for _ in ("Permission denied", "metasploit")): + errMsg = "permission error occurred while using Metasploit" + logger.critical(errMsg) + raise SystemExit + elif "Read-only file system" in excMsg: errMsg = "output device is mounted as read-only" logger.critical(errMsg)