mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
some code refactoring
This commit is contained in:
parent
1bdf94f236
commit
915d3441e9
5 changed files with 23 additions and 18 deletions
|
|
@ -24,10 +24,8 @@ Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
|
||||
import os
|
||||
|
||||
from StringIO import StringIO
|
||||
from xml.sax import parse
|
||||
|
||||
from lib.core.common import checkFile
|
||||
from lib.core.common import parseXmlFile
|
||||
from lib.core.data import kb
|
||||
from lib.core.data import paths
|
||||
from lib.parse.handler import FingerprintHandler
|
||||
|
|
@ -64,5 +62,5 @@ def headersParser(headers):
|
|||
|
||||
handler = FingerprintHandler(value, kb.headersFp)
|
||||
|
||||
parse(StringIO(open(xmlfile).read()), handler)
|
||||
parse(StringIO(open(paths.GENERIC_XML).read()), handler)
|
||||
parseXmlFile(xmlfile, handler)
|
||||
parseXmlFile(paths.GENERIC_XML, handler)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue