You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for creating awesome injection library. I am able to successfully inject with help of your technique. But when I run sample-target with strace the injection fails with message: ptrace(PTRACE_ATTACH) failed
please help.
The text was updated successfully, but these errors were encountered:
Unfortunately, trying to run sample-target under strace presents a bit of a chicken-and-egg problem.
strace works by attaching to the target application using ptrace. However, linux-inject itself also needs to be able to attach to the target application using ptrace. Two processes cannot ptrace the same application at the same time, so linux-inject can't attach when strace is already attached.
As a result, you can't use linux-inject on an application that is running under strace.
Unfortunately, trying to run sample-target under strace presents a bit
of a chicken-and-egg problem.
strace works by attaching to the target application using ptrace.
However, linux-inject itself also needs to be able to attach to the target
application using ptrace. Two processes cannot ptrace the same
application at the same time, so linux-inject can't attach when strace
is already attached.
As a result, you can't use linux-inject on an application that is running
under strace.
Reply to this email directly or view it on GitHub: #5 (comment)
Thanks for creating awesome injection library. I am able to successfully inject with help of your technique. But when I run sample-target with strace the injection fails with message: ptrace(PTRACE_ATTACH) failed
please help.
The text was updated successfully, but these errors were encountered: