dependabot[bot] 7c5cbb36d2 ##build Bump antoniovazquezblanco/setup-ghidra from 2.0.6 to 2.0.12
Bumps [antoniovazquezblanco/setup-ghidra](https://github.com/antoniovazquezblanco/setup-ghidra) from 2.0.6 to 2.0.12.
- [Release notes](https://github.com/antoniovazquezblanco/setup-ghidra/releases)
- [Commits](https://github.com/antoniovazquezblanco/setup-ghidra/compare/v2.0.6...v2.0.12)

---
updated-dependencies:
- dependency-name: antoniovazquezblanco/setup-ghidra
  dependency-version: 2.0.12
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2025-07-09 18:52:56 +02:00
2025-07-02 16:21:34 +02:00
2025-07-01 19:03:42 +02:00
2025-07-02 16:21:34 +02:00
2025-07-02 16:21:34 +02:00

R4Ghidra Plugin

R4Ghidra provides a standalone radare2 experience inside Ghidra, implemented fully in Java but powered by Ghidra's APIs internally. This plugin allows users to communicate from/to radare2 instances via r2web and r2pipe protocols.

R4Ghidra supports not just the most common radare2 commands, but also all the handy command tricks you can do with r2 oneliners, including pipes, redirects, iterations, command substitution, file operations and more. The plugin features a complete REPL (Read-Eval-Print Loop) implementation that faithfully reproduces the radare2 command line experience within Ghidra.

Please use the Issue tracker for feedback and bug reports!

r4ghidra

Build

To build the plugin, simply run:

make

The extension .zip will be created in dist/ directory. You can also download pre-built releases from the release page.

Build Requirements

  • Java21
  • GHIDRA
  • Gradle

Ubuntu

sudo apt install openjdk-21-jdk:amd64
sudo snap install ghidra --edge
sudo snap install gradle --edge --classic
make

Installation

Install

  1. In Ghidra Project Manager choose File->Install Extensions
  2. In the top right corner of the new window click the green plus sign
  3. Choose the R4Ghidra distribution ZIP file from the dist/ directory or downloaded from the release page
  4. Restart Ghidra as instructed
  5. After restart open the Code Browser, which should offer you to configure the new extension
  6. Accept and tick the checkbox next to the plugin name

If the configuration option is not offered after restart, you can manually enable the plugin:

  1. Use the File->Configure menu item
  2. Click the Configure link under Ghidra Core
  3. Find and enable the R4Ghidra plugin in the list

Uninstall

  1. In Ghidra Project Manager choose File->Install Extensions
  2. Select R4Ghidra from the list of installed extensions
  3. Click the red X button in the top right corner to uninstall
  4. Restart Ghidra as instructed

Usage

GUI Mode

The plugin registers a new menu item under the Tools menu of Ghidra's Code Browser to start/stop the embedded web server. Once started, you can:

  1. Use the built-in r2 REPL directly within Ghidra
  2. Connect from an external radare2 instance using r2's web protocols

Headless Mode

The Python script provided in the ghidra_scripts directory initializes the R4Ghidra server on port 9191 by default. You can change the port by setting the R4GHIDRA_PORT environment variable (or R2WEB_PORT for backward compatibility). You should provide this script as -postScript when launching headless Ghidra:

./support/analyzeHeadless /path/to/project-dir project-name \
  -process binary_name -postScript /path/to/r4ghidra_headless.py

Note: The older script name r2web_headless.py is still available for backward compatibility.

R2 Features Support

R4Ghidra implements a complete radare2 REPL with support for:

  • Common r2 commands (seek, print, analyze, info, etc.)
  • Command syntax features (pipes, redirects, command substitution)
  • Temporary addressing with @ syntax
  • Multiple command execution with @@ syntax
  • Shell command execution
  • File operations (with sandboxing)
  • Environment variables
  • Output filtering with grep-like syntax
  • Command output formatting (JSON, CSV, etc.)

For more detailed information about the REPL implementation and supported features, see the REPL documentation in the source code.

S
Description
Ghidra plugin to communicate with radare2
Readme
1.4 MiB
0 Stars 1 Watchers 0 Forks
2026-11-07 06:24:09 -10:00
Languages
Java 96.8%
Python 1.4%
Shell 0.6%
Makefile 0.6%
HTML 0.5%