vfsfitvnm / frida-il2cpp-bridge

A Frida module to dump, trace or hijack any Il2Cpp application at runtime, without needing the global-metadata.dat file.

Home Page:https://github.com/vfsfitvnm/frida-il2cpp-bridge/wiki

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cannot exclude class in tracing

commonuserlol opened this issue · comments

hello, I'm trying to exclude the SoftMasking class, but it still keeps appearing in the console

il2cpp: 0x0305c2c0 ┌─SoftMasking.MaterialReplacer.<>c.<CollectGlobalReplacers>b__3_1
il2cpp: 0x0305c2c0 └─SoftMasking.MaterialReplacer.<>c.<CollectGlobalReplacers>b__3_1

here is my code:

import "frida-il2cpp-bridge";
Il2Cpp.perform(() => {
    const AssemblyCSharp = Il2Cpp.domain.assembly("Assembly-CSharp").image;
    Il2Cpp.trace().parameters(false).assemblies(AssemblyCSharp.assembly).filterClasses(c => !(c.namespace.includes("Axlebolt.Standoff.UI") || c.namespace.includes("SoftMasking"))).and().attach();
});

That's a nested class - it has an empty namespace. You can roll your own logic using the Il2Cpp.Class::parent, or use the full type name instead (c.type.name)