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]
ida_batch_decompile.py 文件源码
python
阅读 25
收藏 0
点赞 0
评论 0
评论列表
文章目录