Skip to content

ghidra ¤

Ghidra integration.

Functions:

  • decompile

    Return the source of the given function decompiled by ghidra.

Attributes:

decompiler module-attribute ¤

decompiler = add_param(
    "decompiler",
    "radare2",
    "framework that your ghidra plugin installed",
    param_class=PARAM_ENUM,
    enum_sequence=["radare2", "rizin"],
)

decompile ¤

decompile(func=None)

Return the source of the given function decompiled by ghidra.

If no function is given, decompile the function within the current pc. This function requires radare2, r2pipe and r2ghidra, or their related rizin counterparts.

Raises Exception if any fatal error occurs.