mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 13:14:13 +03:00
added exception handler around block reported by Thierry Zoller
This commit is contained in:
parent
107a900f51
commit
5bc07426e0
|
@ -199,7 +199,11 @@ class Connect:
|
|||
errMsg = "page not found"
|
||||
raise sqlmapConnectionException, errMsg
|
||||
else:
|
||||
try:
|
||||
page = e.read()
|
||||
except socket.timeout:
|
||||
warnMsg = "connection timed out to the target url"
|
||||
raise sqlmapConnectionException, warnMsg
|
||||
code = e.code
|
||||
status = e.msg
|
||||
responseHeaders = e.info()
|
||||
|
|
Loading…
Reference in New Issue
Block a user