File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -972,10 +972,13 @@ def checkConnection(suppressOutput=False):
972972 errMsg = getUnicode (errMsg )
973973 logger .critical (errMsg )
974974
975- 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] "
976- if readInput (msg , default = "Y" ) not in ("n" , "N" ):
977- raise sqlmapSilentQuitException
975+ if any (code in kb .httpErrorCodes for code in (404 , )):
976+ 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] "
977+ if readInput (msg , default = "Y" ) not in ("n" , "N" ):
978+ raise sqlmapSilentQuitException
979+ else :
980+ kb .ignoreNotFound = True
978981 else :
979- kb . ignoreNotFound = True
982+ raise
980983
981984 return True
You can’t perform that action at this time.
0 commit comments