Frida拦截所有网络浏览流量



我的目标是记录应用程序的Webview中的所有流量。所以不仅仅是URL,还有标题和正文。这适用于所有请求,因此也适用于异步javascript请求。

我发现了一篇有趣的文章:文章。这几乎就是我想用弗里达做的事情。

使用Frida的以下脚本,我能够记录一些URL:

var Webview = Java.use("android.webkit.WebView")
var WebViewClient = Java.use("android.webkit.WebViewClient");
Webview.loadUrl.overload("java.lang.String").implementation = function(url) {
this.setWebContentsDebuggingEnabled(true);
console.log("n[+]Loading URL from: " + url);
this.loadUrl.overload("java.lang.String").call(this, url);
}
}

但当我拦截shouldInterceptRequest时,没有任何记录。

WebViewClient.shouldInterceptRequest.implement = function(o, s) {

send("shouldInterceptRequest()" + o + s);
send(s.toString());
this.shouldInterceptRequest(o, s);
};

我如何使用Frida在Android上实现网络视图流量的完全拦截?

WebViewClient实例需要设置为webView,我的建议是先实现它,然后使用frida。你会想明白的。

希望这有帮助。例如

最新更新