Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想编写一个 python 脚本,它可以从 ghidra 项目中提取和打印对象,例如枚举和结构,为此我需要从 currentProgram 对象调用 DataTypeManager,但我不确定如何在脚本中调用 currentProgram不在 ghidra python 终端中。有什么建议或例子吗?
找到了解决方案: currentProgram 可以直接从终端调用,导入:
from __main__ import currentProgram