radareorg / r2retdec

RetDec plugin for Radare2
https://retdec.com/
MIT License
124 stars 24 forks source link

Provide info export to r2 #10

Closed xkubov closed 4 years ago

xkubov commented 4 years ago

Right now the plugin works only with data that are extracted from the r2 environment. The option of the exportation of analyzed data on a user's request from RetDec to the r2 may greatly improve the plugin function and a use case in general.

I'll let the execution of this open for discussion. My proposal is to create a subset of commands that would be used to export specific info. For example pdza? - RetDec exportation of analysis. Each pdza_ would export specific info from RetDec (functions, parameters, calling conventions, types, local vars, global vars, etc.)

xkubov commented 4 years ago

I refactored the interface of the plugin to provide an easy way to implement this. I'll open a new issue with all the data we can export from RetDec, but we are not currently doing it. With the pdza command, I have provided import of functions - currently only signatures and sizes. Providing more data should not be hard now.