diff --git a/lib/core/settings.py b/lib/core/settings.py index 9d2810a1f..275cd804d 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.5.16" +VERSION = "1.0.5.17" 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 6ef382f57..b6b29102c 100755 --- a/sqlmap.py +++ b/sqlmap.py @@ -27,36 +27,43 @@ import warnings warnings.filterwarnings(action="ignore", message=".*was already imported", category=UserWarning) warnings.filterwarnings(action="ignore", category=DeprecationWarning) -from lib.controller.controller import start -from lib.core.common import banner -from lib.core.common import createGithubIssue -from lib.core.common import dataToStdout -from lib.core.common import getSafeExString -from lib.core.common import getUnicode -from lib.core.common import maskSensitiveData -from lib.core.common import setPaths -from lib.core.common import weAreFrozen -from lib.core.data import cmdLineOptions -from lib.core.data import conf -from lib.core.data import kb from lib.core.data import logger -from lib.core.data import paths -from lib.core.common import unhandledExceptionMessage -from lib.core.exception import SqlmapBaseException -from lib.core.exception import SqlmapShellQuitException -from lib.core.exception import SqlmapSilentQuitException -from lib.core.exception import SqlmapUserQuitException -from lib.core.option import initOptions -from lib.core.option import init -from lib.core.profiling import profile -from lib.core.settings import IS_WIN -from lib.core.settings import LEGAL_DISCLAIMER -from lib.core.settings import VERSION -from lib.core.testing import smokeTest -from lib.core.testing import liveTest -from lib.parse.cmdline import cmdLineParser -from lib.utils.api import setRestAPILog -from lib.utils.api import StdDbOut + +try: + from lib.controller.controller import start + from lib.core.common import banner + from lib.core.common import createGithubIssue + from lib.core.common import dataToStdout + from lib.core.common import getSafeExString + from lib.core.common import getUnicode + from lib.core.common import maskSensitiveData + from lib.core.common import setPaths + from lib.core.common import weAreFrozen + from lib.core.data import cmdLineOptions + from lib.core.data import conf + from lib.core.data import kb + from lib.core.data import paths + from lib.core.common import unhandledExceptionMessage + from lib.core.exception import SqlmapBaseException + from lib.core.exception import SqlmapShellQuitException + from lib.core.exception import SqlmapSilentQuitException + from lib.core.exception import SqlmapUserQuitException + from lib.core.option import initOptions + from lib.core.option import init + from lib.core.profiling import profile + from lib.core.settings import IS_WIN + from lib.core.settings import LEGAL_DISCLAIMER + from lib.core.settings import VERSION + from lib.core.testing import smokeTest + from lib.core.testing import liveTest + from lib.parse.cmdline import cmdLineParser + from lib.utils.api import setRestAPILog + from lib.utils.api import StdDbOut +except KeyboardInterrupt: + errMsg = "user aborted" + logger.error(errMsg) + + raise SystemExit def modulePath(): """