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

Skip to content

Commit c6bf0e4

Browse files
committed
minor update
1 parent cf17deb commit c6bf0e4

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

lib/controller/controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def start():
286286
e += ", skipping to next url"
287287
logger.error(e)
288288
else:
289-
logger.error(e)
289+
logger.critical(e)
290290
return False
291291

292292
if conf.loggedToOut:

lib/utils/google.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def search(self, googleDork):
9898

9999
gpage = conf.googlePage if conf.googlePage > 1 else 1
100100
logger.info("using Google result page #%d" % gpage)
101-
101+
102102
if not googleDork:
103103
return None
104104

@@ -122,20 +122,20 @@ def search(self, googleDork):
122122
page = decodePage(page, responseHeaders.get("Content-Encoding"), responseHeaders.get("Content-Type"))
123123

124124
responseMsg = "HTTP response (%s - %d):\n" % (status, code)
125-
125+
126126
if conf.verbose <= 4:
127127
responseMsg += getUnicode(responseHeaders)
128128
elif conf.verbose > 4:
129129
responseMsg += "%s\n%s\n" % (responseHeaders, page)
130-
130+
131131
logger.log(8, responseMsg)
132132
except urllib2.HTTPError, e:
133133
try:
134134
page = e.read()
135135
except socket.timeout:
136136
warnMsg = "connection timed out while trying "
137137
warnMsg += "to get error page information (%d)" % e.code
138-
logger.warn(warnMsg)
138+
logger.critical(warnMsg)
139139
return None
140140
except (urllib2.URLError, socket.error, socket.timeout), _:
141141
errMsg = "unable to connect to Google"

sqlmap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def main():
8686
try:
8787
init(cmdLineOptions)
8888
if conf.profile:
89-
profile()
89+
profile()
9090
elif conf.smokeTest:
9191
smokeTest()
9292
elif conf.liveTest:
@@ -95,7 +95,7 @@ def main():
9595
start()
9696
except exceptionsTuple, e:
9797
e = getUnicode(e)
98-
logger.error(e)
98+
logger.critical(e)
9999
closeDumper(False, e)
100100

101101
except KeyboardInterrupt, _:

0 commit comments

Comments
 (0)