File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5151from lib .core .exception import sqlmapConnectionException
5252from lib .core .exception import sqlmapGenericException
5353from lib .core .exception import sqlmapNoneDataException
54+ from lib .core .exception import sqlmapSilentQuitException
5455from lib .core .exception import sqlmapUserQuitException
5556from lib .core .session import setDynamicMarkings
5657from 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
You can’t perform that action at this time.
0 commit comments