Replies: 7 comments 2 replies
-
That's a static method, otherwise you would get another error. |
Beta Was this translation helpful? Give feedback.
-
@vfsfitvnm i also get this error that you show to me serveral tries before. |
Beta Was this translation helpful? Give feedback.
-
You must call that method using a class System.String
{
System.Boolean Contains(System.String value); // 0x0082c664;
static System.Boolean IsNullOrEmpty(System.String value); // 0x0082c684;
} const SystemString = Il2Cpp.Image.corlib.class("System.String");
const string = Il2Cpp.String.from("hello");
// Contains is not static, so:
console.log(string.object.method<boolean>("Contains").invoke(Il2Cpp.String.from("el"))); // true
// IsNullOrEmpty is static, so:
console.log(SystemString.method<boolean>("IsNullOrEmpty").invoke(string)); // true The difference is in how you obtain the method: I don't know how you can retrieve an instance of that class, it really depends on what you are trying to do. You can take a look at the past issues (like #39) |
Beta Was this translation helpful? Give feedback.
-
It's all about corlib...
|
Beta Was this translation helpful? Give feedback.
-
Well it seems there's a bit of confusion here... Why are you trying to inflate a generic class? Also, did you read the issue I linked? |
Beta Was this translation helpful? Give feedback.
-
working by following snippet
It's my fault cause i'm try to invoke method to early. Like immediately after attached to process. |
Beta Was this translation helpful? Give feedback.
-
looks like my question is belongs to here, i hope somebody can help, i still learning, how do i call b__25_7 ? i've got this message
console.log("Frida loaded successfully !!"); Il2Cpp.perform(function () {
}); and this is the awake function from dnSpy |
Beta Was this translation helpful? Give feedback.
-
Hello. First of all big thanks for A12 fix.
I want to invoke some method but it's non static.
try to invoke like that :
it gives me this output :
Error: access violation accessing 0x10 at invokeRaw (node_modules/frida-il2cpp-bridge/dist/il2cpp/structs/method.js:168)
My class have Instance object too.
Maybe i should to invoke my method with Instance object?
How i can achieve it?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions