mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-09 08:00:36 +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"
|
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()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user