Open alexdetrano opened 3 years ago
I have the same problem on iOS with a different file.
I have executed grep on the Application folder and this is the result:
grep -ir "mono"
Binary file System.aotdata.arm64 matches
Binary file Seling.Mobile.dll matches
CodeSignature/CodeResources:
Binary file APPNAME.iOS matches
Binary file Mono.Security.aotdata.arm64 matches
Binary file zxing.portable.dll matches
Binary file System.Core.dll matches
Binary file mscorlib.dll matches
Binary file Xamarin.iOS.dll matches
Binary file Xamarin.Forms.Platform.iOS.dll matches
Binary file Mono.Security.dll matches
Binary file SQLitePCLRaw.provider.sqlite3.dll matches
Binary file Firebase.Core.dll matches
Binary file System.Net.Http.dll matches
Binary file APPNAME.iOS.exe matches
Binary file System.dll matches
Furthermore:
grep -ir "mono_thread_attach" Binary file APPNAME.iOS matches
Hey @alexdetrano and @omareltf,
The above mentioned issue arises because, the Xamarin apps are compiled Ahead of Time in case of iOS and they work just like any other native app with ObjC runtime. There is no Mono runtime to begin with, hence you won't be able to find mono module/mono exports/mono runtime using Fridax.
I am pretty sure that is the case, because following this hunch has yielded results. But If someone has successfully used Fridax to hook into iOS applications and has found mono-module (very unlikely), I would love to know how they did it and get the full picture of what's going on.
What one can do to hook into Xamarin apps on iOS?
References:
Update:
DEBUG
flag. __IOS__;__MOBILE__;__UNIFIED__;DEBUG
I'm trying to hook a Xamarin-based iOS app and am getting the following error:
I've looked at https://github.com/NorthwaveSecurity/fridax/issues/1 and the issue was fixed but I'm still having the issue. I've tried poking around but am just getting started with frida. Things I've tried:
Process.enumerateModulesSync()
Process.enumerateExports()
dlopen
and looking for any import of monobut nothing shows up. Is there anything else I can do to troubleshoot the issue? Sadly I can't share the ipa.