def print_call_trace(stack_top, stack_base):
addr = stack_top
print '0x%08x - 0x%08x' % (stack_top, stack_base)
while (addr >= stack_base):
if ret_addr(Dword(addr)):
s = "[0x%08x] %s+0x%x" % (addr, str(idc.GetFunctionName(Dword(addr))), Dword(addr) - idaapi.get_func(Dword(addr)).startEA)
print s
addr -= 4
pass
评论列表
文章目录