一、设置问题
仅设置
postern
代理即可,不需要再设置系统wifi代理
二、vpn被反调试了
常见检测vpn代码,搜索“
.getActiveNetwork()
”
public final boolean isVpnConnected(Context context) {
NetworkCapabilities networkCapabilities;
Object systemService = context.getSystemService("connectivity");
if (systemService != null) {
ConnectivityManager connectivityManager = (ConnectivityManager) systemService;
Network activeNetwork = connectivityManager.getActiveNetwork();
if (activeNetwork == null || (networkCapabilities = connectivityManager.getNetworkCapabilities(activeNetwork)) == null) {
return false;
}
return networkCapabilities.hasTransport(4);
// 是否是VPN端口
// return networkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_VPN) && networkCapabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET);
}
三、ssl校验没过
// okhttp3.CertificatePinner有可能被混淆了,导致ssl验证不过,查看混淆的类名并修改kill_ssl.js源码,尝试hook这些java.net.url、java.io.File.$init函数打印调用栈找突破口
四、flutter应用
flutter应用需要在so层hook禁用证书,详细看:记录一次charles启用vpn+禁ssl都无法抓包app的情况竟因为是flutter应用