本帖最后由 shadowtech 于 2024-6-15 22:55 编辑
[JavaScript] 纯文本查看 复制代码 import "frida-il2cpp-bridge";
Il2Cpp.perform(() => {
const AssembleCSharp = Il2Cpp.domain.assembly("hall_xy").image;
const HybridCLRRuntimeManager = AssembleCSharp.class('HybridCLRRuntimeManager');
const Load = HybridCLRRuntimeManager.method('LoadDll');
Load.implementation = function (hotFixFileName: Il2Cpp.String, target: Il2Cpp.Method) {
console.log(`LoadDll called with argument: ${hotFixFileName}`);
const result = this.method('LoadDll').invoke(hotFixFileName, target);
console.log(`LoadDll returned: ${result}`);
return result;
}
});
明明上下调用的都是同一个方法,我打印也是没问题的,但实际在const result = 这个位置,我调用Invoke就报错了,求大佬解答。
报错信息:
[Shell] 纯文本查看 复制代码 il2cpp: couldn't find method LoadDll in class System.String
at method (il2cpp/structs/class.ts:269)
at method (il2cpp/structs/object.ts:38)
at <anonymous> (index.ts:12)
at call (native)
at <anonymous> (il2cpp/structs/method.ts:334)
|