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