Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cant use api because access violation accesing #452

Open
justqstn opened this issue Dec 16, 2023 · 0 comments
Open

cant use api because access violation accesing #452

justqstn opened this issue Dec 16, 2023 · 0 comments

Comments

@justqstn
Copy link

justqstn commented Dec 16, 2023

Device:
Emulator LDPlayer Android 7.1 64-bit

Game doesnt have exports, and i made minet:

import "frida-il2cpp-bridge";

globalThis.IL2CPP_MODULE_NAME = "libil2cpp.so";
Reflect.defineProperty(Il2Cpp, "module", {value: Process.findModuleByAddress(DebugSymbol.fromName("il2cpp_init").address)});

declare global {
    let IL2CPP_EXPORTS: Record<string, () => NativePointer>;
}

(globalThis as any).IL2CPP_EXPORTS = {
}

for (const module_ of Process.enumerateModules()) {
    for (const export_ of module_.enumerateExports()) {
        if (export_.name.includes("il2cpp")) {
            send(`${module_.name}!${export_.name} @ ${export_.address}`);
            IL2CPP_EXPORTS[export_.name] = () => Il2Cpp.module.base.add(new NativePointer(export_.address));
        }
    }
}

i'm trying Il2Cpp.dump() and get error:

[Remote::PID::21411 ]-> Il2Cpp.dump()
Error: access violation accessing 0x8f488160
    at unityEngineCall (/node_modules/frida-il2cpp-bridge/dist/index.js:684)                                                                                       at get identifier (/node_modules/frida-il2cpp-bridge/dist/index.js:644)
    at dump (/node_modules/frida-il2cpp-bridge/dist/index.js:705)
    at <eval> (<input>:1)
@justqstn justqstn changed the title cant dump because access violation accesing cant use api because access violation accesing Dec 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant