dzervas / injectionforge

Compile frida scripts into injectable libraries or executables that inject themselfs
59 stars 9 forks source link

Windows #14

Closed ServerBSvvv closed 10 months ago

ServerBSvvv commented 11 months ago

How to use it on Windows?

ServerBSvvv commented 11 months ago

or use it with WSL?

dzervas commented 11 months ago

If you mean how to compile on windows for windows target you just cargo build with the environment variables that you need (e.g. FRIDA_CODE)

If you mean how to use the resulting binary in windows you can either inject the resulting DLL however you like or just use DLL proxying which allows you to "mimic" a DLL by renaming the original to mylib-orig.dll and the resulting compiled dll to mylib.dll

ServerBSvvv commented 11 months ago

If you mean how to compile on windows for windows target you just cargo build with the environment variables that you need (e.g. FRIDA_CODE)

If you mean how to use the resulting binary in windows you can either inject the resulting DLL however you like or just use DLL proxying which allows you to "mimic" a DLL by renaming the original to mylib-orig.dll and the resulting compiled dll to mylib.dll

what if I need to compile a shared library for android armv7?

dzervas commented 11 months ago

you can frida-gadget for android (check frida's wiki)

if you still want to use deepfreeze for android:

rustup target add armv7-linux-androideabi
cargo build --lib --target armv7-linux-androideabi

just make sure that you have the android toolchain installed