Reputation: 61
Im running Frida Server (frida-server-12.5.8-android-arm64.xz) in Android 8 (Oreo) as root:
-rwxrwxrwx 1 root root 38152536 2019-05-26 23:34 irwan
./irwan &
and then I try this to unpinning ssl in apk :
C:\Users\irwan>frida -U -f xxx.xxxxx -l "C:\Users\irwan\OneDrive\pentest\payload\frida\unpinning_universal.js"
the output error :
Failed to spawn: unable to access zygote64 while preparing for app launch; try disabling Magisk Hide in case it is active
as the following the picture:
can someone help me to implement or create step by step solutions for this problem? thanks.
Upvotes: 6
Views: 14458
Reputation: 113
As explained by @gmlime,
Frida and Magisk require Zygote module to spawn processes. Magisk Hide ptraces the zygote module in order to intercept calls, which locks out other apps from doing so, and zygote is needed by Frida to spawn apps and do early hooking.
We can temporarily disable MagiskHide. We can quickly disable it through the command-line using adb. Run
adb shell "su -c magiskhide disable"
And then recheck with your frida command, It should work.
Upvotes: 2
Reputation: 91
https://webcache.googleusercontent.com/search?q=cache:ouBQw77t4r8J:https://github.com/frida/frida/issues/905+&cd=1&hl=en&ct=clnk (Cache was also unavaliable,but the content was the same as following steps.)
Just disable Magisk Hide to fix this :
Magisk Manager > Settings >Magisk > Magisk Hide (Toggle Off)
Upvotes: 9