def as_xml(self):
xml_output = Element(self.plugin_command, title=self.COMMAND_TITLE)
xml_output.append(Element('vulnerable', isVulnerable=str(self.is_vulnerable)))
if len(self.support_protocols) > 0:
protocol_xml = Element('supportProtocols')
for p in self.support_protocols:
protocol_xml.append(Element('protocol',name=p))
xml_output.append(protocol_xml)
if len(self.support_vulnerable_ciphers) > 0:
cipher_xml = Element('vulnerableCipherSuites')
for c in self.support_vulnerable_ciphers:
cipher_xml.append(Element('cipherSuite',name=c))
xml_output.append(cipher_xml)
return xml_output
beast_vulnerability_tester.py 文件源码
python
阅读 23
收藏 0
点赞 0
评论 0
评论列表
文章目录