MCPcopy Create free account
hub / github.com/JaveleyQAQ/WeChatOpenDevTools-Python / replaceParams

Function replaceParams

scripts/hook.js:54–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52
53
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}
75
76
77

Callers 1

hook.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected