Skip to content

Instantly share code, notes, and snippets.

@n1sh1th
Created October 16, 2021 05:16
Show Gist options
  • Save n1sh1th/d3ccd68ee17eb9b94b28ecfd6514854b to your computer and use it in GitHub Desktop.
Save n1sh1th/d3ccd68ee17eb9b94b28ecfd6514854b 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