quick fix for a bug reported by jovon.itwaru@gmail.com

This commit is contained in:
Miroslav Stampar 2011-07-11 08:54:39 +00:00
parent 98958f8808
commit f5e45bf113
3 changed files with 11 additions and 3 deletions

View File

@ -215,6 +215,9 @@ Daniel Huckmann <sanitybit@gmail.com>
Daliev Ilya <daliser@yandex.ru>
for reporting a bug
Jovon Itwaru <jovon.itwaru@gmail.com>
for reporting a minor bug
Prashant Jadhav <prashantjadhav.82@gmail.com>
for reporting a bug

View File

@ -1652,10 +1652,10 @@ def __mergeOptions(inputOptions, overrideOptions):
conf[key] = value
def __setTrafficOutputFP():
infoMsg = "setting file for logging HTTP traffic"
logger.info(infoMsg)
if conf.trafficFile:
infoMsg = "setting file for logging HTTP traffic"
logger.info(infoMsg)
conf.trafficFP = openFile(conf.trafficFile, "w+")
def __setTorProxySettings():

View File

@ -7,6 +7,7 @@ Copyright (c) 2006-2011 sqlmap developers (http://www.sqlmap.org/)
See the file 'doc/COPYING' for copying permission
"""
import httplib
import re
import threading
import urlparse
@ -61,6 +62,10 @@ class Crawler:
errMsg = "connection exception detected (%s). skipping " % e
errMsg += "url '%s'" % current
logger.critical(errMsg)
except httplib.InvalidURL, e:
errMsg = "invalid url detected (%s). skipping " % e
errMsg += "url '%s'" % current
logger.critical(errMsg)
if not kb.threadContinue:
break