File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222from lib .core .data import kb
2323from lib .core .data import logger
2424from lib .core .exception import SqlmapConnectionException
25+ from lib .core .exception import SqlmapSyntaxException
2526from lib .core .settings import CRAWL_EXCLUDE_EXTENSIONS
2627from lib .core .threads import getCurrentThreadData
2728from lib .core .threads import runThreads
@@ -58,12 +59,15 @@ def crawlThread():
5859 try :
5960 if current :
6061 content = Request .getPage (url = current , crawling = True , raise404 = False )[0 ]
61- except SqlmapConnectionException , e :
62- errMsg = "connection exception detected (%s). skipping " % e
62+ except SqlmapConnectionException , ex :
63+ errMsg = "connection exception detected (%s). skipping " % ex
6364 errMsg += "URL '%s'" % current
6465 logger .critical (errMsg )
65- except httplib .InvalidURL , e :
66- errMsg = "invalid URL detected (%s). skipping " % e
66+ except SqlmapSyntaxException :
67+ errMsg = "invalid URL detected. skipping '%s'" % current
68+ logger .critical (errMsg )
69+ except httplib .InvalidURL , ex :
70+ errMsg = "invalid URL detected (%s). skipping " % ex
6771 errMsg += "URL '%s'" % current
6872 logger .critical (errMsg )
6973
You can’t perform that action at this time.
0 commit comments