MCPcopy
hub / github.com/JaveleyQAQ/WeChatOpenDevTools-Python / onEnter

Function onEnter

scripts/hook.js:56–71  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

54function replaceParams() {
55 Interceptor.attach(address.LaunchAppletBegin, {
56 onEnter(args) {
57 send("[+] HOOK到小程序加载! " + readStdString(args[1]))
58 for (var i = 0; i < 0x1000; i += 8) {
59 try {
60 var s = readStdString(args[2].add(i))
61 var s1 = s.replaceAll('"enable_vconsole":false', '"enable_vconsole": true')
62 // .replaceAll("md5", "md6")
63 // .replaceAll('"frameset":false', '"frameset": true')
64 //"frameset":false
65 if (s !== s1) {
66 writeStdString(args[2].add(i), s1)
67 }
68 } catch (a) {
69 }
70 }
71 }
72 })
73
74}

Callers

nothing calls this directly

Calls 3

sendMessageFunction · 0.85
readStdStringFunction · 0.70
writeStdStringFunction · 0.70

Tested by

no test coverage detected