r2dec support does not work out of the box...
| Questions | Answers
|------------------------------------------------------|--------------------
| OS/arch/bits (mandatory) | N/A
| File format of the file you reverse (mandatory) | N/A
| Architecture/bits of the file (mandatory) | N/A
| Cutter and r2 version, See About Cutter (mandatory) | Version 1.7.2 / Using r2 3.0.0
I would like to use r2dec decompiler in Cutter. It does not work out of the box. The plugin is not embedded in the appimage.
To use r2dec in the latest cutter version (1.7.2) I must do the following steps:
For Linux:
For Windows, there is the same issue, I assume we must compile r2 and r2dec-js. The problem is r2pm is not supported on Windows, so we need to do it manually. I spent few time on it and I didn't find an easy way to do it :'(
Could you please include the r2dec plugins in the appimage?
it's easy for the Linux support, I need help for the Windows support.
P.
Hi Paul! :)
Definitely! Bundling r2dec by default is on our task-list and my guess is that it would be available in one of the next two releases.
I think @thestr4ng3r mentioned that it shouldn't be too hard to implement since Duktape is quite light.
We hear more and more people asking for r2dec to be embeded by-default in Cutter so I think we can prioritize it :)
Meantime, it should be possible to install r2dec on Windows by installing r2dec via make -C p inside the r2dec-js folder. Never tried it myuself though...
Thanks!
Hi,
Nice to see you there Itay ;)
That's a nice new if r2dec is natively embedded in Cutter. As I said for Linux the workaround is not complicated. For Windows, I probably have the wrong building environment but I didn't find a way to compile it. I saw the issue with the make command but no success...
P.
Please add theme color to r2dec as well.
Greetings @dmknght,
By commenting issues with different issues is likely that your problem/suggestion will be skipped.
Please open a issue on the r2dec project - https://github.com/wargio/r2dec-js/issues.
Regards,
@Maijin, actually, the r2dec highlighting colors are problems with our own QT Code highlighting afaik
@Vane11ope knows better, and maybe @thestr4ng3r that implemented it
It is not hard to build r2dec on Windows since https://github.com/wargio/r2dec-js/pull/109.
Interesting. I'm gonna try ASAP. thank you @pelijah
@ITAYC0HEN The r2dec does not respect radare2 color so it needs to first respect that so then we can change it in Cutter 👍
I'm having trouble getting r2dec to work in Cutter on macOS. It works just fine in r2, but the decompiler pull down menu is greyed-out for me in Cutter. Not sure if it's just me, so I'm putting this in here as opposed to creating a new issue.
I'm having trouble getting r2dec to work in Cutter on macOS. It works just fine in r2, but the decompiler pull down menu is greyed-out for me in Cutter. Not sure if it's just me, so I'm putting this in here as opposed to creating a new issue.
It is because your radare2 version is different from radare2 used in Cutter. If you run Cutter from terminal, you can see version mismatch error. My solution is:
git clone https://github.com/radareorg/cutter/
git submodule init && git submodule update
cd radare2
./configure && make && make install
r2pm install r2dec
Cutter have its own r2. So one plugins will not see the other ones because they must be of the same version
On 20 Oct 2018, at 01:37, dmknght notifications@github.com wrote:
I'm having trouble getting r2dec to work in Cutter on macOS. It works just fine in r2, but the decompiler pull down menu is greyed-out for me in Cutter. Not sure if it's just me, so I'm putting this in here as opposed to creating a new issue.
It is because your radare2 version is different from radare2 used in Cutter. If you run Cutter from terminal, you can see version mismatch error. My solution is:
git clone https://github.com/radareorg/cutter/
git submodule init && git submodule update
cd radare2
./configure && make && make install
r2pm install r2dec
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
r2dec is now bundled in Windows builds thanks to #913