Open HerlinCoder opened 8 months ago
Thanks for posting, and apologies for the delayed reply.
Basically all that should really matter is that the libc we find:
ptrace-inject
is linked to (because we use addresses in the local process to determine addresses in the remote process).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.