lico-n / ZygiskFrida

Injects frida gadget using zygisk to bypass anti-tamper checks.
MIT License
492 stars 88 forks source link

I tried to inject the game "com.mobile.legends" #38

Closed EduModsS closed 6 months ago

EduModsS commented 6 months ago

Hello, I tried to inject into the game "com.mobile.legends" - "Mobile Legends", using ZygiskFrida

my config.json:

{
    "targets": [
        {
            "start_up_delay_ms": 0,
            "app_name": "com.mobile.legends",
            "child_gating": {
                "mode": "inject",
                "start_up_delay_ms": 0,
                "enabled": true,
                "injected_libraries": [
                    {
                        "path": "/data/local/tmp/re.zyg.fri/FridaGadget_16.2.1_ARCH64.so"
                    }
                ]
            },
            "enabled": true,
            "injected_libraries": [
                {
                    "path": "/data/local/tmp/re.zyg.fri/FridaGadget_16.2.1_ARCH64.so"
                }
            ]
        }
    ]
}

I'm trying to hook the subprocess that it generates: "Mobile Legends: Bang Bang (UnityKillsMe)"

but even with this child_gating option, it is not executing the script

my FridaGadget_16.2.1_ARCH64.config.so:

{
    "interaction": {
        "type": "script",
        "path": "/data/local/tmp/re.zyg.fri/SCRIPT_MLBB.js"
    }
}

in my js has il2cpp-bridge and

async function main() {
    showToast("Teste");
    //importViceExports();
    Il2Cpp.perform(() => {
        Il2Cpp.dump();
    });
}

main();

when I try to run it using frida -p {pid} -f file.js it works, but I want to make it using your ZygiskFrida, can you help me?

lico-n commented 6 months ago

As a competitive game this game just has more extensive anticheat. There is no generic solution to this, you would have to figure this out by yourself. I don’t really support circumventing the protections there because of the potential of abuse.