Ida Pro Gragh输出批处理模式 [英] Ida pro gragh output batch mode

查看:197
本文介绍了Ida Pro Gragh输出批处理模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能让我知道我们将如何使用IDC以批处理方式输出所有子例程的图形.即我有447个子例程,想全部输出,我想确保我先自动检索所有例程的地址,因为知道该地址我可以简单地使用GenFuncCall. 附言:给定二进制反汇编文件,这是我从Ida Pro可获得的唯一CFG吗?

Can anyone let me know how we are going to output all the subroutine's graphs in batch mode suing IDC. i.e. I have 447 subroutine's and wanna be output them all and I would like to make sure I first retrieve all the routines address automatically, cuz by knowing the address I can simply use GenFuncCall. P.S: Is this the only cfg that I can get from Ida Pro given a binary dis-assembled file?

推荐答案

如果您只想要IDB中所有已知函数的地址,则可以通过IDAPython使用这样的东西(仅作为示例):

If you just want the address of all known functions in the IDB, you could use something like this using IDAPython (just an example):

def main():
    for count, func_ea in enumerate(Functions()):
        if func_ea == BADADDR:
            break
        func_name = GetFunctionName(funcea)
        func_start = func_ea

        print("[{:4}] name: {}; start address: {:#x}".format(count, func_name, func_start))

if __name__ == "__main__":
    main()

这篇关于Ida Pro Gragh输出批处理模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆