Load from asset folder
4 views
7a6620c7...
Description
Load js files when asset folder has been encrypted on a cordova mobile app
How to Use
Download the script and run it with Frida CLI:
Download ScriptThen run with Frida:
frida -U -f YOUR_PACKAGE_NAME -l load-from-asset-folder.js
Replace YOUR_PACKAGE_NAME with the target app's package name.
Source Code
JavaScript
//Load js files when asset folder has been encrypted on a cordova mobile app
Java.perform(function() {
var webView = Java.use("android.webkit.WebView");
webView.loadUrl.overload("java.lang.String").implementation = function(url) {
var file_path = 'file:///android_asset/www/scripts/index.js'; // path to file to load on webview
this.loadUrl.overload("java.lang.String").call(this, file_path);
}
});
Comments