Skip to content

Commit

Permalink
Update hook.js
Browse files Browse the repository at this point in the history
  • Loading branch information
JaveleyQAQ authored Aug 7, 2024
1 parent 30efbaf commit 5c0ff94
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions scripts/hook.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand All @@ -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);
Expand Down

0 comments on commit 5c0ff94

Please sign in to comment.