loadsym.py 文件源码

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

项目:IDAPPL 作者: yufengzjj 项目源码 文件源码
def loadmap(self):
        total = 0
        count = 0
        for line in self.sym_file:
            total+=1
            sm = re.search("[\d]+:([\dA-F]+)[\s]+([\S]+)", line)
            if sm and not re.search("_([\dA-F]{8})", line):
                if idc.MakeNameEx(self.base + int(sm.group(1), 16), sm.group(2), idc.SN_NOCHECK | idc.SN_NOWARN) == 0:
                    print "set symble name %s:%s failed" % (sm.group(1), sm.group(2))
                    continue
                count += 1
        print "total %d applied %d symbols" % (total,count)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号