Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save michaellcader/b8efd5af6f5327890f55ddd989888b46 to your computer and use it in GitHub Desktop.

Select an option

Save michaellcader/b8efd5af6f5327890f55ddd989888b46 to your computer and use it in GitHub Desktop.
Cordova - Enable Webview Debugging
// 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