gpt4 book ai didi

python - IDA Pro python idaapi

转载 作者:行者123 更新时间:2023-12-01 05:44:33 25 4
gpt4 key购买 nike

您好,我有一个快速问题。

我一直在尝试将 IDA Pro 中的完整内存转储保存在变量中,以便使用 python 脚本执行搜索,但我没有找到使用 idaapi 执行此操作的正确函数。

我想做这样的事情:

import idaapi

dump=get_memory_dump() # Or whatever function to do it

if "foo" in dump:
print "foo is in dump"

如何获取转储?正如您所看到的,我想在调试应用程序时编写一个脚本来在内存中找到模式。

非常感谢

最佳答案

使用idaapi.nextthat() 搜索字节序列,然后使用 dbg_read_memory() 读取正在调试的程序的内存。由于后者似乎会复制,因此读取 4GB 是不明智的。

关于python - IDA Pro python idaapi,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16514856/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com