mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
One more update for #5295
This commit is contained in:
parent
6336389322
commit
fdbc323aa6
2 changed files with 6 additions and 5 deletions
|
|
@ -926,10 +926,11 @@ class Connect(object):
|
|||
errMsg += "function '%s' ('%s')" % (function.__name__, getSafeExString(ex))
|
||||
raise SqlmapGenericException(errMsg)
|
||||
|
||||
if code in conf.abortCode:
|
||||
errMsg = "aborting due to detected HTTP code '%d'" % code
|
||||
singleTimeLogMessage(errMsg, logging.CRITICAL)
|
||||
raise SystemExit
|
||||
for _ in (getattr(conn, "redcode", None), code):
|
||||
if _ is not None and _ in conf.abortCode:
|
||||
errMsg = "aborting due to detected HTTP code '%d'" % _
|
||||
singleTimeLogMessage(errMsg, logging.CRITICAL)
|
||||
raise SystemExit
|
||||
|
||||
threadData.lastPage = page
|
||||
threadData.lastCode = code
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue