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
#include"frida-gum.h"externvoidfgpg_agent_main(constchar*data, int*stay_resident) {
*stay_resident=1;
g_print("Hello from agent!\n");
}
And when i'm trying to inject, i get this output:
➜ build ./injector 10986 $PWD/libinject-payload.dylib
/Users/virbotsom/share/git-reps/dev/fgpg/build/libinject-payload.dylib
[*] Injected
Module not found at "/usr/lib/libresolv.9.dylib"
Also libresolv - is first dependency of libinject-payload.dylib, so it looks like frida-core got confused somewhere trying to load(?) injection payload in process:
➜ build otool -L libinject-payload.dylib
libinject-payload.dylib:
@rpath/libinject-payload.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libresolv.9.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1345.100.2)
OS: MacOS 14.1 (Sonoma)
CPU: M3
UPD: It works if injection-payload compiled without dependencies or just libSystem (at least it worked for me), but if i compile it with any other dependency (such as libresolv) then frida fails to load it in target process.
The text was updated successfully, but these errors were encountered:
Sorry for opening an issue (i'm not totally sure if it's bug somewhere in my code/approach or frida-core).
So, i'm trying to inject library in another process with frida-core 16.2.1 and got
Module not found at "/usr/lib/libresolv.9.dylib"
error.Here is code snippet of injector:
And here is injected library:
And when i'm trying to inject, i get this output:
Also
libresolv
- is first dependency oflibinject-payload.dylib
, so it looks like frida-core got confused somewhere trying to load(?) injection payload in process:OS: MacOS 14.1 (Sonoma)
CPU: M3
UPD: It works if injection-payload compiled without dependencies or just libSystem (at least it worked for me), but if i compile it with any other dependency (such as libresolv) then frida fails to load it in target process.
The text was updated successfully, but these errors were encountered: