commonuserlol

Results 37 comments of commonuserlol

actually il2cppdumper just copy ready2use script. for example you can use script from https://github.com/vfsfitvnm/frida-il2cpp-bridge/discussions/113, but it sets only method name, for fields, strings, etc metadata dump still needed

> Agree, but I doubt I'll work on this anytime soon. I made few attempts in the past, but I always gave up at a certain point. PS: I won't...

yes i understood this, but first need to find metadata in memory.. i have one idea and I'll try implement it soon as I can

yeah, im generated pseudo metadata .json file, now need figure how to correctly generate .h file and apply c++ signatures..

unfortunately I have very little knowledge about the internals of il2cpp so I'll leave it here, maybe it will be useful to someone for further development (this is not the...

I see `Il2Cpp.Delegate` simply assign callback to `System.IntPtr`, so I did ```typescript const callbackPtr = callback.field("method_ptr").value; console.log(`${callbackPtr} will be patched`); const callbackMethod = new Il2Cpp.Method(callbackPtr); replaceCallback(callbackMethod); ``` where `replaceCallback` sets...

I haven’t seen something similar here, how would you implement a value check?? 1. `ret.equals(NULL) ? "err" : (ret == undefined ? "" : "formatted ret")` 2. `if (ret.equals(NULL)) ...;...

Okay, now it looks like ``` 0x00d41e48 │ ┌─MyClass::GetNextReward(this = SOME_VIEW(Clone) (MyClass)) 0x00d41e48 │ └─MyClass::GetNextReward = null [native IL2CPP excpetion occurred] ``` Also colored like error from `console.ts/raise` ![image](https://github.com/vfsfitvnm/frida-il2cpp-bridge/assets/111648021/72024b04-f6f9-4908-a358-1873c55af482) I...

Correct impl is ```typescript const result = returnValue == undefined ? "" : returnValue instanceof NativePointer ? returnValue.equals(NULL) ? " = \x1b[0m\x1b[38;5;9mnull [native IL2CPP excpetion occurred]\x1b[0m" : ` = \x1b[36m${fromFridaValue(returnValue,...

Il2Cpp compiled code already have checks for `NativePointer` but for `number` it can be UB (undefined behavior) as c++ have it. Frida can interpret it as 0 afaik. Probably easiest...