Skip to content

Commit 49fddaf

Browse files
committed
minor update (for cases with 404 original page - e.g. time based injections in some cases)
1 parent 8c32b36 commit 49fddaf

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

lib/controller/checks.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
from lib.core.exception import sqlmapConnectionException
5252
from lib.core.exception import sqlmapGenericException
5353
from lib.core.exception import sqlmapNoneDataException
54+
from lib.core.exception import sqlmapSilentQuitException
5455
from lib.core.exception import sqlmapUserQuitException
5556
from lib.core.session import setDynamicMarkings
5657
from lib.core.settings import CONSTANT_RATIO
@@ -966,6 +967,10 @@ def checkConnection(suppressOutput=False):
966967
kb.errorIsNone = True
967968
except sqlmapConnectionException, errMsg:
968969
errMsg = getUnicode(errMsg)
969-
raise sqlmapConnectionException, errMsg
970+
logger.critical(errMsg)
971+
972+
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] "
973+
if readInput(msg, default="Y") not in ("n", "N"):
974+
raise sqlmapSilentQuitException
970975

971976
return True

0 commit comments

Comments
 (0)