rms-runtime-mobile-security
Version:
Runtime Mobile Security (RMS), powered by FRIDA, is a powerful web interface that helps you to manipulate Android and iOS Apps at Runtime
30 lines (27 loc) • 1.32 kB
JavaScript
/********************************************************************************
* Name: iOS Custom Keyboard Support Check
* OS: iOS
* Author: @ay-kay
* Source: https://codeshare.frida.re/@ay-kay/ios-custom-keyboard-support/
*********************************************************************************/
var UIApplication = ObjC.classes.UIApplication.sharedApplication();
var shouldAllowKeyboardExtension = true;
var isDelegateImplemented = false;
try {
shouldAllowKeyboardExtension = UIApplication.delegate().application_shouldAllowExtensionPointIdentifier_(UIApplication, "com.apple.keyboard-service");
isDelegateImplemented = true;
send("App delegate implements application:shouldAllowExtensionPointIdentifier:");
} catch (e) {
if (e instanceof TypeError) {
send("App delegate has no application:shouldAllowExtensionPointIdentifier:, default behaviour applies:");
}
}
if (shouldAllowKeyboardExtension) {
send("-> Third-party keyboards are allowed.")
} else {
send("-> Third-party keyboards are NOT allowed.")
}
if (shouldAllowKeyboardExtension && isDelegateImplemented) {
send("Note: App delegate is implemented but is configured to allow third-party keyboards.");
send("Review the implementation to check if third-party keyboard support is configurable.");
}