wargio / r2dec-js

radare2 plugin - converts asm to pseudo-C code.
514 stars 50 forks source link

--offsets support to view only offsets #158

Closed wargio closed 5 years ago

wargio commented 5 years ago
[0x00001020]> pddo
                   | /* r2dec pseudo code output */
                   | /* /bin/jconsole @ 0x1020 */
                   | #include <stdint.h>
                   |  
    0x00001020     | int32_t main (void) {
                   |     /* [13] -r-x section size 453 named .text */
    0x00001021     |     rax = "openjdk";
    0x00001028     |     r9 = str_lib_jconsole_jar;
    0x0000102f     |     r8d = 3;
    0x00001035     |     rcx = str_J_ms8m;
    0x0000103c     |     edx = 3;
    0x00001065     |     JLI_Launch ("1.8.0_212-b01", 0x00002011, "java", rax, 1, 0, 0, 0);
    0x0000106c     |     return rax;
                   | }
radare commented 5 years ago

thanks!

On 24 Apr 2019, at 12:24, Giovanni notifications@github.com wrote:

[0x00001020]> pddo / r2dec pseudo code output / / /bin/jconsole @ 0x1020 / #include
0x00001020 int32_t main (void) {
/ [13] -r-x section size 453 named .text /
0x00001021 rax = "openjdk";
0x00001028 r9 = str_lib_jconsole_jar;
0x0000102f r8d = 3;
0x00001035 rcx = str_J_ms8m;
0x0000103c edx = 3;
0x00001065 JLI_Launch ("1.8.0_212-b01", 0x00002011, "java", rax, 1, 0, 0, 0);
0x0000106c return rax;
}

You can view, comment on, or merge this pull request online at:

https://github.com/wargio/r2dec-js/pull/158 https://github.com/wargio/r2dec-js/pull/158 Commit Summary

added offset File Changes

M README.md https://github.com/wargio/r2dec-js/pull/158/files#diff-0 (2) M libdec/arch/x86.js https://github.com/wargio/r2dec-js/pull/158/files#diff-1 (25) M libdec/context.js https://github.com/wargio/r2dec-js/pull/158/files#diff-2 (4) M libdec/core.js https://github.com/wargio/r2dec-js/pull/158/files#diff-3 (2) M libdec/core/extra.js https://github.com/wargio/r2dec-js/pull/158/files#diff-4 (16) M libdec/core/instruction.js https://github.com/wargio/r2dec-js/pull/158/files#diff-5 (34) M libdec/core/scope.js https://github.com/wargio/r2dec-js/pull/158/files#diff-6 (20) M libdec/db/macros.js https://github.com/wargio/r2dec-js/pull/158/files#diff-7 (12) M libdec/r2util.js https://github.com/wargio/r2dec-js/pull/158/files#diff-8 (5) M p/core_pdd.c https://github.com/wargio/r2dec-js/pull/158/files#diff-9 (8) Patch Links:

https://github.com/wargio/r2dec-js/pull/158.patch https://github.com/wargio/r2dec-js/pull/158.patch https://github.com/wargio/r2dec-js/pull/158.diff https://github.com/wargio/r2dec-js/pull/158.diff — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/wargio/r2dec-js/pull/158, or mute the thread https://github.com/notifications/unsubscribe-auth/AAG75FWZIJBJ6CXP7JVACKDPSAYONANCNFSM4HICPQMQ.