TrustManager.py 文件源码

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

项目:needle 作者: mwrlabs 项目源码 文件源码
def _process_subject(self, input, output, indent=0):
        # trace = sys.stdout
        while not input.eof():
            tag = input.peek()
            if tag[1] == ASN1.TypePrimitive:
                tag, value = input.read()
                if tag[0] == ASN1.PrintableString:
                    value = string.upper(value)
                output.write(value, tag[0], tag[1], tag[2])
            elif tag[1] == ASN1.TypeConstructed:
                input.enter()
                output.enter(tag[0], tag[2])
                self._process_subject(input, output, indent+2)
                output.leave()
                input.leave()


# ======================================================================================================================
# IOS TrustStore.sqlite3 handling
# ======================================================================================================================
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号