From dd6287ace8342f1d5f765a4719815b66a6914c6d Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 20 Jun 2016 09:59:50 +0200 Subject: [PATCH] Fixes #1972 --- lib/core/common.py | 5 ++++- lib/core/settings.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/core/common.py b/lib/core/common.py index 5996e46b3..1f5faf939 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -1011,7 +1011,10 @@ def readInput(message, default=None, checkBatch=True): retVal = raw_input() or default retVal = getUnicode(retVal, encoding=sys.stdin.encoding) if retVal else retVal except: - time.sleep(0.05) # Reference: http://www.gossamer-threads.com/lists/python/python/781893 + try: + time.sleep(0.05) # Reference: http://www.gossamer-threads.com/lists/python/python/781893 + except: + pass kb.prependFlag = True raise SqlmapUserQuitException diff --git a/lib/core/settings.py b/lib/core/settings.py index 390ed5b05..870fb383d 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.45" +VERSION = "1.0.6.46" REVISION = getRevisionNumber() STABLE = VERSION.count('.') <= 2 VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")