angr / patcherex

Shellphish's automated patching engine, originally created for the Cyber Grand Challenge.
BSD 2-Clause "Simplified" License
248 stars 45 forks source link

Reading binaries assembled for x86 #9

Closed ananda91 closed 2 years ago

ananda91 commented 6 years ago

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?

ltfish commented 6 years ago

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

ananda91 commented 6 years ago

Here you go! Thank you for the quick reply.

test1_bin.tar.gz

ananda91 commented 6 years ago

Any idea what went wrong?

github-actions[bot] commented 2 years ago

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.

github-actions[bot] commented 2 years ago

This issue has been closed due to inactivity.