Open jpstotz opened 1 year ago
I tried to understand what is going wrong by identifying the code that makes the app crash. Therefore I checked out and built this project as described. Then tried to add console.log
statements to the code to narrow down the problematic code part.
Unfortunately this Typescript project seems to be configured rather strange as there is no console.log
available and I am not familiar with such projects to make it work :(
Same here, after typing Swift.
frida dies.
frida -U -f com.apple.mobilesafari
____
/ _ | Frida 16.0.11 - A world-class dynamic instrumentation toolkit
| (_| |
> _ | Commands:
/_/ |_| help -> Displays the help system
. . . . object? -> Display information about 'object'
. . . . exit/quit -> Exit
. . . .
. . . . More info at https://frida.re/docs/home/
. . . .
. . . . Connected to iOS Device (id=fe3ade8c294adf31dc08d43e3e069cffa288840a)
Spawned `com.apple.mobilesafari`. Resuming main thread!
[iOS Device::com.apple.mobilesafari ]-> Swift.Process terminated
[iOS Device::com.apple.mobilesafari ]-> Swift.
Thank you for using Frida!
This is due to using Module.unsureInitialized("CoreFoundation")
, if there is no CoreFoundation
loaded gum throws an error which crashes the app. This should probably be replaced with non-crashing code and at least make Swift.available
return false
.
Same issue happens on Android. Process terminated once typing Java or Java.available. But this only happens to one specific apk, maybe there is some anti-frida/debugger machenism included(this apk has one .so file and used o-llvm, so it's hard to follow init_proc function which o-llvmed)
Also happening to me
Observed on iOS 14.2. Just typing on the Frida console:
Swift.
crashes the app. It happens on any pre-installed app that belongs to iOS (Messages, App Store, ...).If I use Twitter app from App Store (I get v9.44 for iOS 14.2) I get a tiny bit further: It crashes after executing the command
Swift.available
.