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; } }); ``` 正文到此结束 本文作者:huoyu 本文链接:http://type.zimopy.com/nixiang_xposed/549.html 版权声明:本博客所有文章除特别声明外,均默认采用 CC BY-NC-SA 4.0 许可协议。 最后修改:2023 年 12 月 22 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 0 如果觉得我的文章对你有用,请随意赞赏