MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / loadBoundaries

Function loadBoundaries

lib/parse/payloads.py:79–98  ·  view source on GitHub ↗

Loads boundaries from XML >>> conf.boundaries = [] >>> loadBoundaries() >>> len(conf.boundaries) > 0 True

()

Source from the content-addressed store, hash-verified

77 conf.tests.append(test)
78
79def loadBoundaries():
80 """
81 Loads boundaries from XML
82
83 >>> conf.boundaries = []
84 >>> loadBoundaries()
85 >>> len(conf.boundaries) > 0
86 True
87 """
88
89 try:
90 doc = et.parse(paths.BOUNDARIES_XML)
91 except Exception as ex:
92 errMsg = "something appears to be wrong with "
93 errMsg += "the file '%s' ('%s'). Please make " % (paths.BOUNDARIES_XML, getSafeExString(ex))
94 errMsg += "sure that you haven't made any changes to it"
95 raise SqlmapInstallationException(errMsg)
96
97 root = doc.getroot()
98 parseXmlNode(root)
99
100def loadPayloads():
101 """

Callers 1

initFunction · 0.90

Calls 4

getSafeExStringFunction · 0.90
parseXmlNodeFunction · 0.85
parseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…