Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 11af0b1

Browse files
committed
minor fix
1 parent f7bf1fb commit 11af0b1

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

lib/controller/checks.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -981,6 +981,9 @@ def checkConnection(suppressOutput=False):
981981
logger.critical(errMsg)
982982

983983
if any(code in kb.httpErrorCodes for code in (httplib.NOT_FOUND, )):
984+
if conf.multipleTargets:
985+
return False
986+
984987
msg = "it is not recommended to continue in this kind of cases. Do you want to quit and make sure that everything is set up properly? [Y/n] "
985988
if readInput(msg, default="Y") not in ("n", "N"):
986989
raise sqlmapSilentQuitException

lib/core/common.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -960,8 +960,6 @@ def readInput(message, default=None, checkBatch=True):
960960
elif message[-1] == ']':
961961
message += " "
962962

963-
message = "\r%s" % message
964-
965963
if checkBatch and conf.batch:
966964
if isinstance(default, (list, tuple, set)):
967965
options = ",".join(getUnicode(opt, UNICODE_ENCODING) for opt in default)
@@ -979,7 +977,7 @@ def readInput(message, default=None, checkBatch=True):
979977
data = default
980978
else:
981979
logging._acquireLock()
982-
dataToStdout(message, True)
980+
dataToStdout("\r%s" % message, True)
983981
data = raw_input()
984982
#data = raw_input(message.encode(sys.stdout.encoding or UNICODE_ENCODING))
985983
logging._releaseLock()

0 commit comments

Comments
 (0)