Forked from n1sh1th/cordova-enable-webview-debug.js
Created
January 28, 2025 17:13
-
-
Save michaellcader/b8efd5af6f5327890f55ddd989888b46 to your computer and use it in GitHub Desktop.
Cordova - Enable Webview Debugging
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Usage : frida -U -f bundle_id -l cordova-enable-webview-debug.js --no-pause | |
| Java.perform(function() { | |
| var Webview = Java.use("android.webkit.WebView") | |
| Webview.loadUrl.overload("java.lang.String").implementation = function(url) { | |
| console.log("[+]Loading URL from", url); | |
| this.setWebContentsDebuggingEnabled(true); | |
| this.loadUrl.overload("java.lang.String").call(this, url); | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment