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)
评论列表
文章目录