mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
Fix for an Issue #878
This commit is contained in:
parent
67279a1136
commit
8ea22c5124
|
@ -46,10 +46,8 @@ class Google(object):
|
||||||
try:
|
try:
|
||||||
conn = self.opener.open("http://www.google.com/ncr")
|
conn = self.opener.open("http://www.google.com/ncr")
|
||||||
conn.info() # retrieve session cookie
|
conn.info() # retrieve session cookie
|
||||||
except urllib2.HTTPError, e:
|
except Exception, ex:
|
||||||
e.info()
|
errMsg = "unable to connect to Google ('%s')" % ex
|
||||||
except urllib2.URLError:
|
|
||||||
errMsg = "unable to connect to Google"
|
|
||||||
raise SqlmapConnectionException(errMsg)
|
raise SqlmapConnectionException(errMsg)
|
||||||
|
|
||||||
def search(self, dork):
|
def search(self, dork):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user