【问题标题】:How to Get the currentProgram object in Ghidra?如何在 Ghidra 中获取 currentProgram 对象?
【发布时间】:2021-05-23 14:53:08
【问题描述】:

我想编写一个 python 脚本,可以从 ghidra 项目中提取和打印对象,例如枚举和结构,为此我需要从 currentProgram 对象调用 DataTypeManager,但我不确定如何调用 currentProgram不在 ghidra python 终端中的脚本。 有什么建议或例子吗?

【问题讨论】:

    标签: python ghidra


    【解决方案1】:

    找到了解决方案:currentProgram 可以通过导入直接从终端调用:

    from __main__ import currentProgram
    

    【讨论】:

      猜你喜欢
      • 2019-12-09
      • 2015-07-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-09-22
      • 1970-01-01
      • 1970-01-01
      • 2018-11-03
      相关资源
      最近更新 更多