 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
Redouane Master Cheater
Reputation: 3
Joined: 05 Sep 2013 Posts: 363 Location: Algeria
|
Posted: Fri Jun 06, 2014 4:37 am Post subject: Need help disabling this script. |
|
|
| Code: | [enable]
alloc(mem,1024)
registersymbol(mem)
createthread(mem)
mem:
mov eax,[01005194]
lea eax,[eax+1]
mov [01005194],eax
push #1000
call sleep
jmp mem
[disable]
mem:
ret
unregistersymbol(mem)
dealloc(mem) |
In this script,I need the 'ret' to execute before the dealloc command,because the ret will kill the thread,if I could make the 'dealloc(mem)' execute one second after the other part of the script,it would solve the problem,also,I did not use globalalloc because there is no 'globalfree' command like in MHS,and as I know,there is no lua command to kill target threads,is there?
Also,what is the heaplist?what kind of useful informations can I gather from it?
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25856 Location: The netherlands
|
Posted: Fri Jun 06, 2014 5:22 am Post subject: |
|
|
globalalloc is specifically used for cases like this. You do NOT want to free it
| Code: |
[enable]
globalalloc(mem,1024)
registersymbol(mem)
createthread(mem)
mem:
mov eax,[01005194]
lea eax,[eax+1]
mov [01005194],eax
push #1000
call sleep
jmp mem
[disable]
mem:
ret
|
this way you can toggle it on and off without it allocating more memory each time (globalalloc reuses the memory block)
in 6.4 you can do:
| Code: |
[enable]
alloc(mem,1024)
registersymbol(mem)
createthread(mem)
mem:
mov eax,[01005194]
lea eax,[eax+1]
mov [01005194],eax
push #1000
call sleep
jmp mem
[disable]
{$lua}
writeBytes("mem", 0xc3) --write the ret, autoassemble() would be an option to
sleep(1000)
{$asm}
unregistersymbol(mem)
dealloc(mem)
|
_________________
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 |
|
 |
justa_dude Grandmaster Cheater
Reputation: 23
Joined: 29 Jun 2010 Posts: 893
|
Posted: Fri Jun 06, 2014 5:42 am Post subject: |
|
|
| Redone wrote: |
lea eax,[eax+1]
|
Why would you do this instead of inc eax?
_________________
A nagy kapu mellett, mindig van egy kis kapu.
----------------------
Come on... |
|
| Back to top |
|
 |
Redouane Master Cheater
Reputation: 3
Joined: 05 Sep 2013 Posts: 363 Location: Algeria
|
Posted: Fri Jun 06, 2014 6:44 am Post subject: |
|
|
@Dark Byte the 6.4 solution is the one I was looking for,I agree that using globalalloc is better than using alloc in this case,thanks.
| justa_dude wrote: | | Redone wrote: |
lea eax,[eax+1]
|
Why would you do this instead of inc eax? |
Oops!Thanks for reminding me,forgot about those simple integer instructions.
|
|
| 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
|
|