From 5c0ff94281c29df97bb8b6d200bfc76917002128 Mon Sep 17 00:00:00 2001 From: Javeley <132129852+JaveleyQAQ@users.noreply.github.com> Date: Wed, 7 Aug 2024 11:24:15 +0800 Subject: [PATCH] Update hook.js --- scripts/hook.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/scripts/hook.js b/scripts/hook.js index eb3a4ac..9c4d728 100644 --- a/scripts/hook.js +++ b/scripts/hook.js @@ -141,6 +141,14 @@ function setupInterceptor() { } }) break; + case 11159: + Interceptor.attach(address.SwitchVersion, { + onEnter(args) { + this.context.r8 = this.context.rax + sendMessage() + } + }) + break; case 13080811: Interceptor.attach(address.WechatAppHtml, { @@ -150,6 +158,16 @@ function setupInterceptor() { } }) break; + + case 13080812: + Interceptor.attach(address.WechatAppHtml, { + onEnter(args) { + this.context.rsi = address.WechatWebHtml + sendMessage() + } + }) + break; + default: console.log(address.Version);