wargio / r2dec-js

radare2 plugin - converts asm to pseudo-C code.
508 stars 48 forks source link

Include r2 and r2dec version information inside the pddi output #299

Open trufae opened 8 months ago

trufae commented 8 months ago

For example:

[0x00005940]> ?Vj
{"arch":"arm","os":"linux","bits":12,"commit":31540,"tap":"5.8.8-895-gb7cd5aa6f1","major":5,"minor":8,"patch":9,"number":50809,"nversion":50809,"version":"5.8.9"}
[0x00005940]>

plugins installed can be helpful too, so it show the version of the r2dec plugin

[0x00005940]> Lcj
[{"name":"a2f","desc":"The reworked analysis from scratch thing","license":"LGPL3","author":"pancake"},{"name":"agD","desc":"agD core plugin","license":"LGPL3","author":"condret"},{"name":"java","desc":"Suite of java commands, java help for more info","license":"Apache"},{"name":"sixref","desc":"quickly find xrefs in arm64 buffer","license":"MIT"},{"name":"r2ghidra","desc":"Ghidra decompiler with pdg command","license":"GPL3","author":"thestr4ng3r, pancake"},{"name":"r2dec","desc":"Pseudo-code decompiler for radare2","license":"BSD-3"}]
[0x00005940]>
wargio commented 8 months ago

i could add this info, not an issue where to get it.