beast_vulnerability_tester.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:midip-sslyze 作者: soukupa5 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号