ida_batch_decompile.py 文件源码

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

项目:ida-batch_decompile 作者: tintinweb 项目源码 文件源码
def decompile(self):
        """ decompile function
        """
        try:
            return idaapi.decompile(self.at)
        except idaapi.DecompilationFailure, e:
            return repr(str(e))
        text = str(idaapi.decompile(self.at)).strip()
        '''
        sprintf:
        Python>for w in idaapi.decompile(0x00001578 ).lvars: print w.name
            s
            format
            result
        '''
        # decompile.arguments
        # for w in idaapi.decompile(0x00001EF0 ).lvars: print w.name
        if not grep:
            return text.split('\n')
        # return all lines 
        return [line.strip() for line in text.split('\n') if grep in line]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号