Loading... ## 绕过WIFI代理检测 ```java XposedHelpers.findAndHookMethod(cls,"getProperty", String.class,new XC_MethodHook() { protected void afterHookedMethod( MethodHookParam param) throws Throwable { if ("http.proxyHost".equals(String .valueOf(param.args[0]))) { param.setResult(null); } if ("http.proxyPort".equals(String .valueOf(param.args[0]))) { param.setResult(null); } }; }); ``` ## 绕过简单的证书校验 ```java XposedHelpers.findAndHookMethod("X509TrustManager or TrustManager 实现类",lpparam.classLoader, "checkServerTrusted",X509Certificate[].class, String.class,new XC_MethodReplacement() { @Override protected Object replaceHookedMethod( MethodHookParam methodHookParam) throws Throwable { XposedBridge.log("直接替换checkServerTrusted方法(检查证书合法),返回null"); return null; } }); ``` 最后修改:2023 年 12 月 22 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 如果觉得我的文章对你有用,请随意赞赏