 |
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
differentrain How do I cheat?
Reputation: 0
Joined: 12 Jul 2025 Posts: 2
|
Posted: Sat Jul 12, 2025 12:59 am Post subject: Il2cpp game help |
|
|
I try to hack an Il2cpp game:
Code: | -- Get instance of class
local pm=readQword(findStatic('','PanelManager','<Instance>k__BackingField',true))
print(ToHex(pm))
-- get method address
local method=getAddress('PanelManager.Get')
print(ToHex(method))
-- create mono string
local name =executeCodeEx(1, 1000, getAddress("il2cpp_string_new"), 'PopupDebug')
print(ToHex(name))
-- game crashed. The reason is memory Access Violation.
local dbg=executeCodeEx(1, nil,method,pm,name) |
But if I use BepInEx+UnityExplorer to invoke PanelManager.Get method first, the lua code above can be executed correctly.
Do I makes sth. wrong?
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25762 Location: The netherlands
|
Posted: Sat Jul 12, 2025 1:13 am Post subject: |
|
|
instead of ExecuteCodeEx try mono_new_string('PopupDebug')
or else use a RemoteExecutor then first attach the thread to the mono/il2cpp lob (mono/il2cpp_thread_attach) and then you can call functions with it
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
 |
differentrain How do I cheat?
Reputation: 0
Joined: 12 Jul 2025 Posts: 2
|
Posted: Sat Jul 12, 2025 2:09 am Post subject: |
|
|
Thanks DB.
But the point is, these code, makes game crash:
Quote: | local pm=readQword(findStatic('','PanelManager','<Instance>k__BackingField',true))
print(ToHex(pm))
local method=getAddress('PanelManager.Get')
print(ToHex(method))
local name =mono_new_string('PopupDebug')
print(ToHex(name))
local methodId = mono_findMethod('','PanelManager', 'Get')
print(ToHex(my_mono_invoke_method(mono_enumDomains()[1],pm,methodId,{name}))) |
Description: |
|
Filesize: |
47.75 KB |
Viewed: |
74 Time(s) |

|
|
|
Back to top |
|
 |
|
|
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
|
|