mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
Minor bug fix for URI injections
This commit is contained in:
parent
28bba9f5e6
commit
702ca22d54
|
@ -399,9 +399,15 @@ class Connect:
|
|||
errMsg = "not authorized, try to provide right HTTP "
|
||||
errMsg += "authentication type and valid credentials (%d)" % code
|
||||
raise sqlmapConnectionException, errMsg
|
||||
elif e.code == 404 and raise404:
|
||||
errMsg = "page not found (%d)" % code
|
||||
raise sqlmapConnectionException, errMsg
|
||||
elif e.code == 404
|
||||
if raise404:
|
||||
errMsg = "page not found (%d)" % code
|
||||
raise sqlmapConnectionException, errMsg
|
||||
else:
|
||||
debugMsg = "page not found (%d)" % code
|
||||
logger.debug(debugMsg)
|
||||
processResponse(page, responseHeaders)
|
||||
return page, responseHeaders
|
||||
elif e.code == 504:
|
||||
if ignoreTimeout:
|
||||
return None, None
|
||||
|
|
Loading…
Reference in New Issue
Block a user