逆向工程不只是‘看代码’:用IDA和字节码分析两个Java CrackMe的解题思路
2026/6/4 2:08:52
【免费下载链接】wechat_no_revoke项目地址: https://gitcode.com/gh_mirrors/we/wechat_no_revoke
微信防撤回插件是一款基于Xposed框架的安卓应用,旨在拦截并保存微信中被撤回的消息。该插件能够实时监控微信消息系统,当检测到撤回操作时,自动保存原始消息内容并替换撤回提示,支持文字、图片等多种消息类型。
WechatRevokeHook:消息拦截核心模块,负责Hook微信撤回方法WechatVersion:版本适配系统,提供不同微信版本的兼容性支持WechatDatabase:数据库操作模块,处理消息的存储与恢复MessageUtil:消息处理工具类,提供消息解析与重建功能插件通过Xposed框架注入微信进程,监控消息处理流程:
git clone https://gitcode.com/gh_mirrors/we/wechat_no_revoke cd wechat_no_revoke在项目根目录执行以下命令:
./gradlew assembleDebug编译产物将生成在app/build/outputs/apk/debug/目录下。
⚠️ 确保设备已启用USB调试模式
adb install -r app/build/outputs/apk/debug/app-debug.apk通过Hook微信消息处理方法实现撤回拦截,主要流程包括:
WechatVersion模块通过以下方式实现多版本兼容:
WechatDatabase模块实现消息的安全存储:
通过修改res/values/strings.xml文件配置插件行为:
<!-- 自动保存撤回消息 --> <string name="pref_key_auto_save">auto_save_revoked</string> <string name="pref_default_auto_save">true</string> <!-- 显示通知提醒 --> <string name="pref_key_notification">show_notification</string> <string name="pref_default_notification">true</string>禁用通知功能减少内存占用:
<string name="pref_default_notification">false</string>启用消息加密保护隐私:
<string name="pref_key_encrypt">encrypt_messages</string> <string name="pref_default_encrypt">true</string>旧版本微信兼容模式:
<string name="pref_key_compatibility">compat_mode</string> <string name="pref_default_compatibility">false</string>通过ADB命令查看插件运行日志:
adb logcat | grep "WechatRevokeHook"修改WechatVersion.kt添加版本支持:
fun getVersionHookInfo(version: String): VersionInfo { return when { version.startsWith("8.0") -> VersionInfo("com.tencent.mm.plugin.chat.ui.ChatUI", "onRevokeMsg") version.startsWith("8.1") -> VersionInfo("com.tencent.mm.ui.chatting.ChattingUI", "a") version.startsWith("8.2") -> VersionInfo("com.tencent.mm.ui.chatting.ChattingUI", "b") else -> defaultVersionInfo } }修改WechatDatabase.kt配置消息备份位置:
fun setBackupPath(path: String) { backupDir = File(Environment.getExternalStorageDirectory(), "wechat_backup") if (!backupDir.exists()) { backupDir.mkdirs() } }本项目采用MIT开源许可证,所有代码可自由修改与分发。建议定期同步最新源码以获取版本适配更新,确保在微信版本迭代中保持防护效果。
【免费下载链接】wechat_no_revoke项目地址: https://gitcode.com/gh_mirrors/we/wechat_no_revoke
创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考