From 30be875304d7fcfd53aaf51d42a54ce2926c607b Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sat, 18 Jun 2016 01:21:57 +0200 Subject: [PATCH] Patch for an Issue #1968 --- lib/core/settings.py | 2 +- sqlmap.py | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index 0cd93fbff..187ecd4d1 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -19,7 +19,7 @@ from lib.core.enums import OS from lib.core.revision import getRevisionNumber # sqlmap version (...) -VERSION = "1.0.6.42" +VERSION = "1.0.6.43" REVISION = getRevisionNumber() STABLE = VERSION.count('.') <= 2 VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev") diff --git a/sqlmap.py b/sqlmap.py index 131d7c6a4..ef553dfa1 100755 --- a/sqlmap.py +++ b/sqlmap.py @@ -54,6 +54,7 @@ try: from lib.core.option import initOptions from lib.core.option import init from lib.core.profiling import profile + from lib.core.settings import GIT_PAGE from lib.core.settings import IS_WIN from lib.core.settings import LEGAL_DISCLAIMER from lib.core.settings import THREAD_FINALIZATION_TIMEOUT @@ -199,6 +200,13 @@ def main(): logger.error(errMsg) raise SystemExit + elif all(_ in excMsg for _ in ("No such file", "_'")): + errMsg = "corrupted installation detected ('%s'). " % excMsg.strip().split('\n')[-1] + errMsg += "You should retrieve the latest development version from official GitHub " + errMsg += "repository at '%s'" % GIT_PAGE + logger.error(errMsg) + raise SystemExit + elif "Read-only file system" in excMsg: errMsg = "output device is mounted as read-only" logger.error(errMsg)