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?
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 simplycd
to the "r2dec-js" repository and executemake -C p
. This will install r2dec without any need of internet connection. Then, you can simply use r2dec by using thepdd
command inside radare2.On the computer with an internet connection:
On the target computer, without internet connection:
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.