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
hi,
I am trying to use this crate to inject a share library into process. But it failed with this error:
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: failed to inject shellcode
Caused by:
0: couldn't get libc function addresses for tracee
1: getting the local libc offset failed
2: could not find libc in the target process
This means searching libc.so.6 failed. Here is what i found on my machine:
Thanks for posting, and apologies for the delayed reply.
Basically all that should really matter is that the libc we find:
Be the same library as the one ptrace-inject is linked to (because we use addresses in the local process to determine addresses in the remote process).
Have compatible implementations of malloc, dlopen and free.
Your solution sounds like a good one, and while I don't have the time to implement and test it at the moment I would be happy to review and merge if you wanted to submit a PR.
hi,
I am trying to use this crate to inject a share library into process. But it failed with this error:
This means searching libc.so.6 failed. Here is what i found on my machine:
And when the process is running, what we can find in /proc//maps is "libc-2.30.so" rather than "libc.so.6":
Maybe we can have a check if it is a symbolic link and get the correct file name?
Thanks.
The text was updated successfully, but these errors were encountered: