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

Skip to content

Commit 27d244b

Browse files
committed
minor update
1 parent 563c0c1 commit 27d244b

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

lib/controller/checks.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)