File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99
1010from xml .sax .handler import ContentHandler
1111
12- from lib .core .common import checkFile
1312from lib .core .common import Backend
1413from lib .core .common import parseXmlFile
1514from lib .core .common import sanitizeStr
@@ -104,8 +103,6 @@ def bannerParser(banner):
104103 if not xmlfile :
105104 return
106105
107- checkFile (xmlfile )
108-
109106 if Backend .isDbms (DBMS .MSSQL ):
110107 handler = MSSQLBannerHandler (banner , kb .bannerFp )
111108 parseXmlFile (xmlfile , handler )
Original file line number Diff line number Diff line change 88import itertools
99import os
1010
11- from lib .core .common import checkFile
1211from lib .core .common import parseXmlFile
1312from lib .core .data import kb
1413from lib .core .data import paths
@@ -36,7 +35,6 @@ def headersParser(headers):
3635 for header in itertools .ifilter (lambda x : x in kb .headerPaths , headers ):
3736 value = headers [header ]
3837 xmlfile = kb .headerPaths [header ]
39- checkFile (xmlfile )
4038
4139 handler = FingerprintHandler (value , kb .headersFp )
4240
Original file line number Diff line number Diff line change 99
1010from xml .sax .handler import ContentHandler
1111
12- from lib .core .common import checkFile
1312from lib .core .common import parseXmlFile
1413from lib .core .data import kb
1514from lib .core .data import paths
@@ -49,7 +48,6 @@ def htmlParser(page):
4948 """
5049
5150 xmlfile = paths .ERRORS_XML
52- checkFile (xmlfile )
5351 handler = HTMLHandler (page )
5452
5553 parseXmlFile (xmlfile , handler )
You can’t perform that action at this time.
0 commit comments