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

how to cast argument to a concrete type ,and use it to invoke methods

andrewpedia opened this issue · comments

I have to invoke a instance method from an interceptor .
is the args[0] == this?

If the intercepted method is non-static, then yes

wrap(block: (this: Il2Cpp.Class | Il2Cpp.Object, ...parameters: any[]) => T): NativeCallback<any, any> {

okay,thanks for quick reply.
Now ,how can I use args[0] to invoke a method ,which name is "get_t"?
thanks.

Please read the wiki or look for other issues/questions, there are plenty of code snippets