mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +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"
|
||||
raise sqlmapConnectionException, errMsg
|
||||
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
|
||||
status = e.msg
|
||||
responseHeaders = e.info()
|
||||
|
||||
Reference in New Issue
Block a user