View previous topic :: View next topic |
Author |
Message |
sav3nger How do I cheat?
Reputation: 0
Joined: 24 May 2020 Posts: 5
|
Posted: Wed Mar 10, 2021 7:25 am Post subject: Calling function |
|
|
I try to call function when executing by button "Hit me" click in step 2 tutorial. I finded with ultimap some addresses and try to call functions with alloc + create thread, but tutorial crashes any time. Can any help with that?
That is call which i try to execute, for example:
Code: |
Tutorial-x86_64.exe+A60F1 - FF 90 F0010000 - call qword ptr [rax+000001F0]
Tutorial-x86_64.exe+A60F7 - 90 - nop
|
So i allocate memory, and past:
Code: |
call qword ptr [01646960]
ret
|
in rax register value: 0000000001646770
so 0000000001646770+000001F0 = 01646960
when i creating thread by allocated address, tutorial is freezing and crashing after. Whats wrong?
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 468
Joined: 09 May 2003 Posts: 25706 Location: The netherlands
|
Posted: Wed Mar 10, 2021 11:06 am Post subject: |
|
|
1: You also need to setup the other registers for that call
rax, rcx and rdx
2: calling code that touches the GUI can usually only be done from the main thread and can cause unexpected crashes otherwise
But focus on nr1 first
_________________
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 |
|
 |
|