angr/patcherex

Reading binaries assembled for x86

ananda91 opened this issue · 5 comments

I am new to binary rewriting. I tried to run your example for patcherex using a test binary on my x86 machine. I get the following WARNINGS and ERRORS after the instruction

>>backend = DetourBackend("test1")
WARNING | 2018-03-13 18:22:27,675 | angr.procedures.definitions | unsupported syscall: rt_sigqueueinfo
WARNING | 2018-03-13 18:22:27,675 | angr.procedures.definitions | unsupported syscall: rt_sigqueueinfo
WARNING | 2018-03-13 18:22:27,675 | angr.procedures.definitions | unsupported syscall: rt_sigqueueinfo
WARNING | 2018-03-13 18:22:27,676 | angr.procedures.definitions | unsupported syscall: rt_sigqueueinfo
WARNING | 2018-03-13 18:22:30,538 | angr.procedures.definitions | unsupported syscall: sys_623
WARNING | 2018-03-13 18:22:30,539 | angr.procedures.definitions | unsupported syscall: sys_623
WARNING | 2018-03-13 18:22:30,539 | angr.procedures.definitions | unsupported syscall: sys_623
WARNING | 2018-03-13 18:22:30,544 | angr.procedures.definitions | unsupported syscall: sys_623
WARNING | 2018-03-13 18:22:30,562 | angr.procedures.definitions | unsupported syscall: sys_623
WARNING | 2018-03-13 18:22:30,563 | angr.procedures.definitions | unsupported syscall: sys_623
WARNING | 2018-03-13 18:22:30,563 | angr.procedures.definitions | unsupported syscall: sys_623
WARNING | 2018-03-13 18:22:30,564 | angr.procedures.definitions | unsupported syscall: sys_623
WARNING | 2018-03-13 18:22:34,718 | angr.procedures.definitions | unsupported syscall: clone
WARNING | 2018-03-13 18:22:34,719 | angr.procedures.definitions | unsupported syscall: clone
WARNING | 2018-03-13 18:22:34,719 | angr.procedures.definitions | unsupported syscall: clone
WARNING | 2018-03-13 18:22:34,720 | angr.procedures.definitions | unsupported syscall: clone
WARNING | 2018-03-13 18:22:34,727 | angr.procedures.definitions | unsupported syscall: clone
WARNING | 2018-03-13 18:22:34,774 | angr.procedures.definitions | unsupported syscall: wait4
WARNING | 2018-03-13 18:22:34,775 | angr.procedures.definitions | unsupported syscall: wait4
WARNING | 2018-03-13 18:22:34,775 | angr.procedures.definitions | unsupported syscall: wait4
WARNING | 2018-03-13 18:22:34,776 | angr.procedures.definitions | unsupported syscall: wait4
WARNING | 2018-03-13 18:22:34,781 | angr.procedures.definitions | unsupported syscall: wait4
WARNING | 2018-03-13 18:22:34,797 | angr.procedures.definitions | unsupported syscall: wait4
WARNING | 2018-03-13 18:22:34,798 | angr.procedures.definitions | unsupported syscall: wait4
WARNING | 2018-03-13 18:22:34,798 | angr.procedures.definitions | unsupported syscall: wait4
WARNING | 2018-03-13 18:22:34,799 | angr.procedures.definitions | unsupported syscall: wait4
WARNING | 2018-03-13 18:22:34,825 | angr.procedures.definitions | unsupported syscall: execve
WARNING | 2018-03-13 18:22:34,826 | angr.procedures.definitions | unsupported syscall: execve
WARNING | 2018-03-13 18:22:34,826 | angr.procedures.definitions | unsupported syscall: execve
WARNING | 2018-03-13 18:22:34,827 | angr.procedures.definitions | unsupported syscall: execve
WARNING | 2018-03-13 18:22:34,827 | angr.procedures.definitions | unsupported syscall: execve
WARNING | 2018-03-13 18:22:34,836 | angr.procedures.definitions | unsupported syscall: clone
WARNING | 2018-03-13 18:22:34,837 | angr.procedures.definitions | unsupported syscall: clone
WARNING | 2018-03-13 18:22:34,837 | angr.procedures.definitions | unsupported syscall: clone
WARNING | 2018-03-13 18:22:34,837 | angr.procedures.definitions | unsupported syscall: clone
WARNING | 2018-03-13 18:22:34,876 | angr.procedures.definitions | unsupported syscall: kill
WARNING | 2018-03-13 18:22:34,877 | angr.procedures.definitions | unsupported syscall: kill
WARNING | 2018-03-13 18:22:34,877 | angr.procedures.definitions | unsupported syscall: kill
WARNING | 2018-03-13 18:22:34,877 | angr.procedures.definitions | unsupported syscall: kill
WARNING | 2018-03-13 18:22:35,048 | angr.procedures.definitions | unsupported syscall: readlink
WARNING | 2018-03-13 18:22:35,049 | angr.procedures.definitions | unsupported syscall: readlink
WARNING | 2018-03-13 18:22:35,049 | angr.procedures.definitions | unsupported syscall: readlink
WARNING | 2018-03-13 18:22:35,050 | angr.procedures.definitions | unsupported syscall: readlink
WARNING | 2018-03-13 18:22:35,050 | angr.procedures.definitions | unsupported syscall: readlink
ERROR   | 2018-03-13 18:22:35,279 | angr.engines.vex.statements.dirty | Unsupported dirty helper amd64g_dirtyhelper_FSTENV
ERROR   | 2018-03-13 18:22:35,279 | angr.engines.vex.statements.dirty | Unsupported dirty helper amd64g_dirtyhelper_FLDENV
WARNING | 2018-03-13 18:22:35,285 | angr.procedures.definitions | unsupported syscall: rt_sigprocmask

What am I doing wrong?

Actually I do not know. Can you please provide the binary?

Here you go! Thank you for the quick reply.

test1_bin.tar.gz

Any idea what went wrong?

This issue has been marked as stale because it has no recent activity. Please comment or add the pinned tag to prevent this issue from being closed.

This issue has been closed due to inactivity.