Minor bug fix for URI injections

This commit is contained in:
Bernardo Damele 2011-08-12 14:48:44 +00:00
parent 28bba9f5e6
commit 702ca22d54

View File

@ -399,9 +399,15 @@ class Connect:
errMsg = "not authorized, try to provide right HTTP " errMsg = "not authorized, try to provide right HTTP "
errMsg += "authentication type and valid credentials (%d)" % code errMsg += "authentication type and valid credentials (%d)" % code
raise sqlmapConnectionException, errMsg raise sqlmapConnectionException, errMsg
elif e.code == 404 and raise404: elif e.code == 404
if raise404:
errMsg = "page not found (%d)" % code errMsg = "page not found (%d)" % code
raise sqlmapConnectionException, errMsg raise sqlmapConnectionException, errMsg
else:
debugMsg = "page not found (%d)" % code
logger.debug(debugMsg)
processResponse(page, responseHeaders)
return page, responseHeaders
elif e.code == 504: elif e.code == 504:
if ignoreTimeout: if ignoreTimeout:
return None, None return None, None