RunTrace.py 文件源码

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

项目:IDAPython-Scripts 作者: razygon 项目源码 文件源码
def ColorCompare(self):
        DEBUG_PRINT( "in ColorCompare")
        if self.colorsnapshot=={}:
            return
        else:
            for ea in self.colorsnapshot.keys():
                ea_currentcolor = idc.GetColor(ea,idc.CIC_ITEM)
          #      print 'ea ' + hex(ea) + 'pre color'+ hex(self.colorsnapshot[ea]) + ' current color' + hex(ea_currentcolor)
                if  self.colorsnapshot[ea] != ea_currentcolor:
                    if ea == self.lastnode_ea:
                        continue
                    g_ColorSnapshot.data[ea] = ea_currentcolor
#                     print 'different happen  ' + hex (ea)
            g_ColorSnapshot.Save()
#         for ea in g_ColorSnapshot.data.keys():
#             idc.Message( hex(ea) + '   ' )
        self.colorsnapshot = {}    # may not be useful 
        return
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号