| View previous topic :: View next topic |
| Author |
Message |
RaC Grandmaster Cheater
Reputation: 0
Joined: 29 May 2006 Posts: 938
|
Posted: Sun Oct 29, 2006 2:40 am Post subject: Freezing Values via Assembly. |
|
|
Well, I looked up in the CE source and couldn't find an answer, nor google gave too much support.
So my question is - How do you freeze a value using assembly?
_________________
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25840 Location: The netherlands
|
Posted: Sun Oct 29, 2006 3:49 am Post subject: |
|
|
replace the code that changed that value with nops.
or a more complex rotuine that only filters out that address from changing
_________________
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 |
|
 |
RaC Grandmaster Cheater
Reputation: 0
Joined: 29 May 2006 Posts: 938
|
Posted: Sun Oct 29, 2006 7:43 am Post subject: |
|
|
Noping it is quite troublesome because the value I'm trying to freeze belongs to pointer.
Every time the process runs the pointer is pointed into a different address making it impossible for me to use it as CTAutoAssembler script. (the need to locate the address every time..)
_________________
|
|
| Back to top |
|
 |
bahblah Grandmaster Cheater
Reputation: 0
Joined: 27 Sep 2005 Posts: 633
|
Posted: Wed Nov 01, 2006 10:38 pm Post subject: |
|
|
alloc(Threadproc, 1024)
alloc(DoFreeze, 4)
label(EndThread)
label(Loopy)
DoFreeze:
dd 1
Threadproc:
pushad
Loopy:
cmp dword [DoFreeze], 0
je EndThread
mov eax, [pointer]
mov [eax+offset], valuetofreezeat
push FreezeInterval
call Sleep
jmp Loopy
EndThread:
popad
retn 4
After auto-assembling it, use CE's "Create Thread" feature to create a thread with a starting address of Threadproc
And nopping should work unless it's self-modifying code The code instructions that write to the pointer value should be static.
|
|
| Back to top |
|
 |
Glest Master Cheater
Reputation: 0
Joined: 12 Jul 2006 Posts: 334 Location: The Netherlands
|
Posted: Thu Nov 02, 2006 2:47 am Post subject: |
|
|
yeah, that's correct. A nop should still work with pointers. Except if the code handles more stuff than just one. Then you indeed need to have a working pointer to compare the adress in the AA. But you'd also need working pointer if you want to freeze it the standard way.
_________________
|
|
| Back to top |
|
 |
|