NorthwaveSecurity / fridax

Fridax enables you to read variables and intercept/hook functions in Xamarin/Mono JIT and AOT compiled iOS/Android applications.
MIT License
161 stars 21 forks source link

Stuck at device.enumerateApplications() when using frida 15.0.3 #23

Open hanhanhanz opened 3 years ago

hanhanhanz commented 3 years ago

Hi, thanks for the nice tools i have an issue when fridax.js stuck in applications = await device.enumerateApplications() when using frida 15.0.3. However, the JS will run normally when using frida 14.2.18.

using frida 15.0.3:

./fridax.js inject  --scripts  scripts/jit_modify_class_function_argument.js 
[*] Awaiting storage initialization.
[*] Awaiting USB device.
[*] Up and running on SM-G5XXX.

and it stays like that forever.

using frida 14.2.18:

./fridax.js inject  --scripts  scripts/jit_modify_class_function_argument.js 
[*] Awaiting storage initialization.
[*] Awaiting USB device.
[*] Up and running on SM-G5XXX.
? Which application do you want to inject? 
  App1
  App2
  App3
❯ App4

(Move up and down to reveal more choices)

fridax version = 1.0.0 frida-server already running = yes xamarin app already launched = yes expected behavior = fridax can be run in current version of frida (frida 15.0.X)

AregGhazaryan commented 2 years ago

Having the same issue here

SorCelien commented 1 year ago

I had the same issue and I searched a bit and found a solution. Indeed, the cause of this problem is the "frida-inject": "^0.4.1" dependency. Frida-inject is itself dependent of "frida": "^14.0.8" (an old version of Frida that is maybe not working well with newer frida-server). In order to avoid this problem I added the "frida": "^16.0.8" dependency in the package.json file of Fridax.

xinhan1989 commented 7 months ago

hey @SorCelien tried what you did but started getting other errors about unable to locate the frida_binding.node file. Did you manage to solve this error?