Posted: Mon Dec 11, 2023 1:44 pm Post subject: Calling a mono function with a thread
My goal is to call a mono function. I a guide I saw, that it is possible to just create a thread and execute in it the opcodes of the target function.
Since I am also using mono features I would like to include the method names inside my opcode.
Somehow I can't even get my script to compile.
I am stuck with this opcode:
Code:
movss xmm0,[StartOfRound:ReviveDeadPlayers+11f0]
Normallly I could just put it in quotes like this
Code:
jbe "StartOfRound:ReviveDeadPlayers"+1037
and the instruction could be compiled. But this time it doesn't work.
Even with this problem fixed, I really can't believe that you could just execute a method this way. The game is based on Unity.
Is this way of executing a method even possible with or without using method names?
I would really appreciate your help.
I've tried searching around but there is only very limited knowledge available about calling a mono function with cheat engine.
Probably RIP-relative addressing. The address is too far away to access it directly. Allocate memory near the address (third parameter to alloc) or reference it indirectly (i.e. through a register).
IIRC there's more to executing a mono function than just passing the right parameters. Open "monoscript.lua" in the autorun folder and search for "invoke" for more information. _________________
I don't know where I'm going, but I'll figure it out when I get there.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum