mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 01:26:42 +03:00
minor update
This commit is contained in:
parent
cf17debf79
commit
c6bf0e43af
|
@ -286,7 +286,7 @@ def start():
|
|||
e += ", skipping to next url"
|
||||
logger.error(e)
|
||||
else:
|
||||
logger.error(e)
|
||||
logger.critical(e)
|
||||
return False
|
||||
|
||||
if conf.loggedToOut:
|
||||
|
|
|
@ -98,7 +98,7 @@ class Google:
|
|||
|
||||
gpage = conf.googlePage if conf.googlePage > 1 else 1
|
||||
logger.info("using Google result page #%d" % gpage)
|
||||
|
||||
|
||||
if not googleDork:
|
||||
return None
|
||||
|
||||
|
@ -122,12 +122,12 @@ class Google:
|
|||
page = decodePage(page, responseHeaders.get("Content-Encoding"), responseHeaders.get("Content-Type"))
|
||||
|
||||
responseMsg = "HTTP response (%s - %d):\n" % (status, code)
|
||||
|
||||
|
||||
if conf.verbose <= 4:
|
||||
responseMsg += getUnicode(responseHeaders)
|
||||
elif conf.verbose > 4:
|
||||
responseMsg += "%s\n%s\n" % (responseHeaders, page)
|
||||
|
||||
|
||||
logger.log(8, responseMsg)
|
||||
except urllib2.HTTPError, e:
|
||||
try:
|
||||
|
@ -135,7 +135,7 @@ class Google:
|
|||
except socket.timeout:
|
||||
warnMsg = "connection timed out while trying "
|
||||
warnMsg += "to get error page information (%d)" % e.code
|
||||
logger.warn(warnMsg)
|
||||
logger.critical(warnMsg)
|
||||
return None
|
||||
except (urllib2.URLError, socket.error, socket.timeout), _:
|
||||
errMsg = "unable to connect to Google"
|
||||
|
|
|
@ -86,7 +86,7 @@ def main():
|
|||
try:
|
||||
init(cmdLineOptions)
|
||||
if conf.profile:
|
||||
profile()
|
||||
profile()
|
||||
elif conf.smokeTest:
|
||||
smokeTest()
|
||||
elif conf.liveTest:
|
||||
|
@ -95,7 +95,7 @@ def main():
|
|||
start()
|
||||
except exceptionsTuple, e:
|
||||
e = getUnicode(e)
|
||||
logger.error(e)
|
||||
logger.critical(e)
|
||||
closeDumper(False, e)
|
||||
|
||||
except KeyboardInterrupt, _:
|
||||
|
|
Loading…
Reference in New Issue
Block a user