mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
Fix for Issue #177
This commit is contained in:
parent
323cf2b7f2
commit
1dfe558d3d
4 changed files with 21 additions and 2 deletions
|
|
@ -70,7 +70,7 @@ class Connect:
|
|||
direct = kwargs.get('direct', False)
|
||||
multipart = kwargs.get('multipart', False)
|
||||
silent = kwargs.get('silent', False)
|
||||
raise404 = kwargs.get('raise404', True)
|
||||
raise404 = kwargs.get('raise404', None)
|
||||
|
||||
page = ""
|
||||
cookieStr = ""
|
||||
|
|
@ -181,7 +181,7 @@ class Connect:
|
|||
errMsg = "not authorized, try to provide right HTTP "
|
||||
errMsg += "authentication type and valid credentials"
|
||||
raise sqlmapConnectionException, errMsg
|
||||
elif e.code == 404 and raise404:
|
||||
elif e.code == 404 and (raise404 or (raise404 is None and conf.raise404)):
|
||||
errMsg = "page not found"
|
||||
raise sqlmapConnectionException, errMsg
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue