bap_clear_comments.py 文件源码

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

项目:bap-ida-python 作者: BinaryAnalysisPlatform 项目源码 文件源码
def clear_bap_comments(self):
        """Ask user for confirmation and then clear (BAP ..) comments."""

        if idaapi.askyn_c(ASKBTN_YES,
                          "Delete all `BAP: ..` comments?") != ASKBTN_YES:
            return

        for ea in ida.addresses():  # TODO: store actually commented addresses
            comm = idaapi.get_cmt(ea, 0)
            if comm and comm.startswith('BAP:'):
                idaapi.set_cmt(ea, '', 0)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号