Created
October 16, 2021 05:16
-
-
Save n1sh1th/d3ccd68ee17eb9b94b28ecfd6514854b 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