Reverse Engineeringghidradecompilerdisassemblerrizinsleigh

rz-ghidra

rz-ghidra integrates the Ghidra decompiler and Sleigh disassembler into rizin for binary analysis. It uses only the C++ decompiler part of Ghidra, making it self-contained without requiring the full Ghidra application.

Description

rz-ghidra provides a plugin for rizin that brings Ghidra's decompiler and Sleigh Disassembler capabilities directly into the rizin framework. This enables reverse engineers to perform advanced decompilation and disassembly within rizin's environment.

The tool is designed for users analyzing binaries who need high-quality decompilation without the overhead of the complete Ghidra suite. It supports typical reverse engineering workflows such as understanding compiled code structure and logic.

As a self-contained plugin built entirely in C++, rz-ghidra eliminates dependencies on the full Ghidra installation, streamlining deployment in environments like Kali Linux.

How It Works

rz-ghidra integrates solely the decompiler component of Ghidra, rewritten in C++, with rizin's plugin system. It leverages Ghidra's Sleigh Disassembler for precise instruction decoding and applies the decompiler to generate higher-level representations of binary code. The plugin operates as a self-contained module within rizin, processing binaries through these internalized Ghidra components without external dependencies.

Installation

bash
sudo apt install rz-ghidra

Examples

Load rizin with rz-ghidra plugin to analyze a binary using Ghidra decompiler
rizin -p rz-ghidra /path/to/binary
Open a Windows executable in rizin with rz-ghidra for decompilation
r2 -p rz-ghidra sample.exe
Analyze and apply functions with rz-ghidra on a firmware binary
rizin -p rz-ghidra -A firmware.bin
Start rizin with rz-ghidra plugin enabled for interactive analysis
r2 -p rz-ghidra --
Decompile first 10 instructions using rz-ghidra non-interactively
rizin -qc "pD 10" -p rz-ghidra binary
Examine malware sample with integrated Sleigh disassembler
r2 -p rz-ghidra malware
Updated 2026-04-16kali.org ↗