How do I install radare2 plugins in offline installation?

2.4k views Asked by At

I understand how to normally install the plugins with

$ r2pm init
$ r2pm update
$ r2pm -i r2snow
$ r2pm -i r2dec

But how would I install r2dec when I am on a system that has radare2 installed already but no internet access? Is there a way to copy over the source and edit a configuration file somewhere to inform r2 of its presence?

1

There are 1 answers

3
Megabeets On

Start from downloading r2dec from its Github repository (either by cloning it or using the GitHub interface). Then, you can copy r2dec-js folder to your target computer in any way you prefer. On the target computer simply cd to the "r2dec-js" repository and execute make -C p. This will install r2dec without any need of internet connection. Then, you can simply use r2dec by using the pdd command inside radare2.

On the computer with an internet connection:

# Clone the repository
$ git clone https://github.com/wargio/r2dec-js

# Copy the folder to the target machine

On the target computer, without internet connection:

$ cd r2dec-js
r2dec-js$ make -C p

In general, r2pm is a package manager that follows the installation steps which are in each package. These steps, for each package, are available in the r2pm repository.