loadsym.py 文件源码

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

项目:IDAPPL 作者: yufengzjj 项目源码 文件源码
def loadcmt(self):
        total = 0
        count = 0
        for line in self.sym_file:
            total+=1
            sm = re.search("C[\s]+([\dA-F]+)[\s]+(.+)", line)
            if sm:
                if is_printable(sm.group(2)) is False:
                    continue
                if idaapi.set_cmt(int(sm.group(1), 16), sm.group(2), 0):
                    count += 1
                else:
                    print "set comment %s:%s failed" % (sm.group(1), sm.group(2))
        print "total %d applied %d comments" % (total,count)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号