Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5bc0742

Browse files
committed
added exception handler around block reported by Thierry Zoller
1 parent 107a900 commit 5bc0742

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

lib/request/connect.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,11 @@ def getPage(**kwargs):
199199
errMsg = "page not found"
200200
raise sqlmapConnectionException, errMsg
201201
else:
202-
page = e.read()
202+
try:
203+
page = e.read()
204+
except socket.timeout:
205+
warnMsg = "connection timed out to the target url"
206+
raise sqlmapConnectionException, warnMsg
203207
code = e.code
204208
status = e.msg
205209
responseHeaders = e.info()

0 commit comments

Comments
 (0)