133133from lib .parse .configfile import configFileParser
134134from lib .parse .payloads import loadBoundaries
135135from lib .parse .payloads import loadPayloads
136- from lib .parse .sitemap import parseSitemap
137136from lib .request .basic import checkCharEncoding
138137from lib .request .basicauthhandler import SmartHTTPBasicAuthHandler
139138from lib .request .chunkedhandler import ChunkedHandler
@@ -338,25 +337,6 @@ def _setCrawler():
338337
339338 if not conf .bulkFile :
340339 crawl (conf .url )
341- else :
342- targets = getFileItems (conf .bulkFile )
343-
344- for i in xrange (len (targets )):
345- try :
346- target = targets [i ]
347-
348- if not re .search (r"(?i)\Ahttp[s]*://" , target ):
349- target = "http://%s" % target
350-
351- crawl (target )
352-
353- if conf .verbose in (1 , 2 ):
354- status = "%d/%d links visited (%d%%)" % (i + 1 , len (targets ), round (100.0 * (i + 1 ) / len (targets )))
355- dataToStdout ("\r [%s] [INFO] %s" % (time .strftime ("%X" ), status ), True )
356- except Exception as ex :
357- if not isinstance (ex , SqlmapUserQuitException ):
358- errMsg = "problem occurred while crawling at '%s' ('%s')" % (target , getSafeExString (ex ))
359- logger .error (errMsg )
360340
361341def _doSearch ():
362342 """
@@ -1939,7 +1919,6 @@ def _setKnowledgeBaseAttributes(flushAll=True):
19391919 kb .mergeCookies = None
19401920 kb .multipleCtrlC = False
19411921 kb .negativeLogic = False
1942- kb .normalizeCrawlingChoice = None
19431922 kb .nullConnection = None
19441923 kb .oldMsf = None
19451924 kb .orderByColumns = None
@@ -1993,7 +1972,6 @@ def _setKnowledgeBaseAttributes(flushAll=True):
19931972 kb .reduceTests = None
19941973 kb .tlsSNI = {}
19951974 kb .stickyDBMS = False
1996- kb .storeCrawlingChoice = None
19971975 kb .storeHashesChoice = None
19981976 kb .suppressResumeInfo = False
19991977 kb .tableFrom = None
@@ -2013,11 +1991,14 @@ def _setKnowledgeBaseAttributes(flushAll=True):
20131991 kb .xpCmdshellAvailable = False
20141992
20151993 if flushAll :
1994+ kb .checkSitemap = None
20161995 kb .headerPaths = {}
20171996 kb .keywords = set (getFileItems (paths .SQL_KEYWORDS ))
1997+ kb .normalizeCrawlingChoice = None
20181998 kb .passwordMgr = None
20191999 kb .preprocessFunctions = []
20202000 kb .skipVulnHost = None
2001+ kb .storeCrawlingChoice = None
20212002 kb .tamperFunctions = []
20222003 kb .targets = OrderedSet ()
20232004 kb .testedParams = set ()
0 commit comments