mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-23 15:54:24 +03:00
minor fix
This commit is contained in:
parent
560bc7cc28
commit
daa8e0d8c5
|
@ -10,6 +10,7 @@ import os
|
|||
from xml.etree import ElementTree as et
|
||||
|
||||
from lib.core.data import conf
|
||||
from lib.core.data import logger
|
||||
from lib.core.data import paths
|
||||
from lib.core.datatype import AttribDict
|
||||
from lib.core.exception import SqlmapInstallationException
|
||||
|
@ -88,6 +89,8 @@ def loadPayloads():
|
|||
for payloadFile in payloadFiles:
|
||||
payloadFilePath = os.path.join(paths.SQLMAP_XML_PAYLOADS_PATH, payloadFile)
|
||||
|
||||
#logger.debug("Parsing payloads from file '%s'" % payloadFile)
|
||||
|
||||
try:
|
||||
doc = et.parse(payloadFilePath)
|
||||
except Exception, ex:
|
||||
|
@ -96,5 +99,5 @@ def loadPayloads():
|
|||
errMsg += "sure that you haven't made any changes to it"
|
||||
raise SqlmapInstallationException, errMsg
|
||||
|
||||
root = doc.getroot()
|
||||
parseXmlNode(root)
|
||||
root = doc.getroot()
|
||||
parseXmlNode(root)
|
||||
|
|
Loading…
Reference in New Issue
Block a user