diff --git a/lib/utils/google.py b/lib/utils/google.py index 677fc4c72..0fec576e6 100644 --- a/lib/utils/google.py +++ b/lib/utils/google.py @@ -31,6 +31,8 @@ from lib.core.settings import HTTP_ACCEPT_ENCODING_HEADER_VALUE from lib.core.settings import UNICODE_ENCODING from lib.request.basic import decodePage from lib.request.httpshandler import HTTPSHandler +from thirdparty.socks import socks + class Google(object): """ @@ -100,7 +102,7 @@ class Google(object): warnMsg += "to get error page information (%d)" % e.code logger.critical(warnMsg) return None - except (urllib2.URLError, httplib.error, socket.error, socket.timeout): + except (urllib2.URLError, httplib.error, socket.error, socket.timeout, socks.ProxyError): errMsg = "unable to connect to Google" raise SqlmapConnectionException(errMsg)