Skip to content

Instantly share code, notes, and snippets.

@authenticationfailure
authenticationfailure / FridaEnableRemoteDebuggingAndroidWebViews.js
Created July 14, 2018 10:24
Enable Remote Debugging of Android WebViews at Runtime with Frida
/*
Enable remote debugging of Android WebViews at Runtime using Frida
*/
Java.perform(function() {
Java.choose("android.webkit.WebView", {
"onMatch": function(o) {
try {
// Use a Runnable to invoke the setWebContentsDebuggingEnabled
// method in the same thread as the WebView
var Runnable = Java.use('java.lang.Runnable');