Open ret2libc opened 2 years ago
@ret2libc ehm. this bin is x86 not arm.
You need to open it with rizin -a arm ls
if you are on a x86
machine. Its this weird macho
thing that it contains x86
and arm
assembly in the same binary.
rizin -a arm -Qc "pd 10" ls
;-- main:
;-- entry0:
;-- func.100003a90:
0x100003a90 pacibsp
0x100003a94 stp x28, x27, [sp, -0x60]!
0x100003a98 stp x26, x25, [sp, 0x10]
0x100003a9c stp x24, x23, [sp, 0x20]
0x100003aa0 stp x22, x21, [sp, 0x30]
0x100003aa4 stp x20, x19, [sp, 0x40]
0x100003aa8 stp fp, lr, [sp, 0x50]
0x100003aac add fp, sp, 0x50
0x100003ab0 sub sp, sp, 0x640
0x100003ab4 mov x19, x1
Work environment
rizin -v
full output, not truncated (mandatory)Expected behavior
In general, the value from the table at
0x100004638
should be added to0x100003c58
.Actual behavior
Steps to reproduce the behavior
Additional Logs, screenshots, source code, configuration dump, ...
Standard /bin/ls from MacOS binls.zip