exportletTestJs={test:function(){//参数分别是 dllName namespace className methodName methodCountHybridCLR.observe("HotUpdate.dll","HotUpdate","Hello","add",2,function(methodInfo,runtimeArgs){console.log("args len "+runtimeArgs.length)leta=runtimeArgs[1].readU32();letb=runtimeArgs[2].readU32();console.log("add call a = "+a+" b= "+b)});HybridCLR.attach();}}
如何修改? 与frida attach 返回的args参数写法一致
test:function(){HybridCLR.observe("HotUpdate.dll","HotUpdate","Hello","add",2,function(methodInfo,runtimeArgs){console.log("args len "+runtimeArgs.length)leta=runtimeArgs[1].readU32();letb=runtimeArgs[2].readU32();console.log("add call a = "+a+" b= "+b)runtimeArgs[1].writeU32(100)//把a值修改为100});HybridCLR.attach();}