vfsfitvnm / frida-il2cpp-bridge

A Frida module to dump, trace or hijack any Il2Cpp application at runtime, without needing the global-metadata.dat file.
https://github.com/vfsfitvnm/frida-il2cpp-bridge/wiki
MIT License
918 stars 191 forks source link

couldn't resolve export il2cpp_get_corlib #444

Open root-mega opened 7 months ago

root-mega commented 7 months ago

Hi,

This error appears on calling Il2Cpp.dump(). Note: I'm using a modified version of this package to change the GameAssembly.dll name to UserAssembly.dll, though it probably doesn't matter a lot

il2cpp: couldn't resolve export il2cpp_get_corlib at r (/node_modules/hk4e-frida-il2cpp/dist/index.js:413) at get getCorlib (/node_modules/hk4e-frida-il2cpp/dist/index.js:244) at call (native) at (/node_modules/hk4e-frida-il2cpp/dist/index.js:842) at initialize (/node_modules/hk4e-frida-il2cpp/dist/index.js:1230)

vfsfitvnm commented 7 months ago

Please take a look at https://github.com/vfsfitvnm/frida-il2cpp-bridge/issues/363

PS: you can do the following to change the default name:

(gloablThis as any).IL2CPP_MODULE_NAME = "UserAssembly.dll";

Il2Cpp.perform(() => {
    // ...
});