 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
aikoncwd Grandmaster Cheater
Reputation: 23
Joined: 21 Dec 2012 Posts: 591 Location: Spain (Barcelona)
|
Posted: Mon Feb 18, 2013 3:11 am Post subject: [PROBLEM] How to show an address on the CE Table using label |
|
|
Hi
I have a program that store the variable on a random position every time. I use Aobscan() to get the correct offset, this works very well:
| Code: | [ENABLE]
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
label(what)
registersymbol(what)
aobscan(aob1,89 56 34 C7 45 FC 00 00 00 00)
newmem:
originalcode:
mov [esi+34],edx
mov [ebp-04],00000000
exit:
jmp returnhere
aob1:
what:
jmp newmem
nop
nop
nop
nop
nop
returnhere:
[DISABLE]
dealloc(newmem)
what:
db 89 56 34 C7 45 FC 00 00 00 00
unregistersymbol(what) |
This piece of code works. Now I want to create a new label (registersymbol?) and store the address [esi+34], then show on the CE Table like this:
I want to know how to show the [esi+34] value on the (addr) label every time the script is ON.
I tried something like this:
| Code: | [ENABLE]
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
label(what)
registersymbol(what)
label(addr)
registersymbol(addr) //Here I want to move the address value and show on the table
aobscan(aob1,89 56 34 C7 45 FC 00 00 00 00)
newmem:
addr:
mov [addr],esi //I have no idea what I'm doing
originalcode:
mov [esi+34],edx
mov [ebp-04],00000000
exit:
jmp returnhere
aob1:
what:
jmp newmem
nop
nop
nop
nop
nop
returnhere:
[DISABLE]
dealloc(newmem)
what:
db 89 56 34 C7 45 FC 00 00 00 00
unregistersymbol(what)
unregistersymbol(addr) |
If I exec the script, the (addr) address on the table fill up with an address, but is not the esi value, so I assume that I do it wrong.
Someone can explainme how to do it? Thanks
_________________
Hey Hitler
Test here your skill with CheatEngine, I coded a challenge for you. Try to beat it!
HERE |
|
| Back to top |
|
 |
justa_dude Grandmaster Cheater
Reputation: 23
Joined: 29 Jun 2010 Posts: 893
|
Posted: Mon Feb 18, 2013 9:15 am Post subject: |
|
|
| Code: |
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
alloc(myvar,4)
registersymbol(myvar)
label(what)
registersymbol(what)
aobscan(aob1,89 56 34 C7 45 FC 00 00 00 00)
newmem:
push ecx
lea ecx,[esi+34]
mov [myvar],ecx
pop ecx
originalcode:
mov [esi+34],edx
mov [ebp-04],00000000
exit:
jmp returnhere
aob1:
what:
jmp newmem
nop
nop
nop
nop
nop
returnhere:
|
Add [myvar] to the address list,
or
| Code: |
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
registersymbol(newmem)
label(what)
registersymbol(what)
aobscan(aob1,89 56 34 C7 45 FC 00 00 00 00)
newmem:
dd 0 //variable 1
dd 0 //var 2, etc
originalcode:
push ecx
lea ecx,[esi+34]
mov [newmem],ecx
pop ecx
mov [esi+34],edx
mov [ebp-04],00000000
exit:
jmp returnhere
aob1:
what:
jmp originalcode
nop
nop
nop
nop
nop
returnhere:
|
Add [newmem] to the address list.
|
|
| Back to top |
|
 |
aikoncwd Grandmaster Cheater
Reputation: 23
Joined: 21 Dec 2012 Posts: 591 Location: Spain (Barcelona)
|
Posted: Mon Feb 18, 2013 9:50 am Post subject: |
|
|
Thanks for your reply.
I tried your code, but it didn't work
Exists other way to do it?
_________________
Hey Hitler
Test here your skill with CheatEngine, I coded a challenge for you. Try to beat it!
HERE |
|
| Back to top |
|
 |
Fresco Grandmaster Cheater
Reputation: 4
Joined: 07 Nov 2010 Posts: 600
|
Posted: Mon Feb 18, 2013 9:58 am Post subject: |
|
|
in your aa code you should have something like:
just add
| Code: | label(stuff)
registersymbol(stuff) |
and add a new address named "stuff"
_________________
... Fresco |
|
| Back to top |
|
 |
justa_dude Grandmaster Cheater
Reputation: 23
Joined: 29 Jun 2010 Posts: 893
|
Posted: Mon Feb 18, 2013 3:53 pm Post subject: |
|
|
| AikonCWD wrote: | Thanks for your reply.
I tried your code, but it didn't work :(
Exists other way to do it? |
No problem. What does, "it didn't work" mean? If your original script worked, I don't see any obvious reason that the updates I made should break it. Of course, I elided the [disable] section, but...
|
|
| Back to top |
|
 |
aikoncwd Grandmaster Cheater
Reputation: 23
Joined: 21 Dec 2012 Posts: 591 Location: Spain (Barcelona)
|
Posted: Mon Feb 18, 2013 4:36 pm Post subject: |
|
|
When I activate the script with your code, [myvar] show an address, but is not the correct address
_________________
Hey Hitler
Test here your skill with CheatEngine, I coded a challenge for you. Try to beat it!
HERE |
|
| Back to top |
|
 |
Fresco Grandmaster Cheater
Reputation: 4
Joined: 07 Nov 2010 Posts: 600
|
Posted: Tue Feb 19, 2013 7:57 am Post subject: |
|
|
| Code: | [ENABLE]
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
label(what)
registersymbol(what)
aobscan(aob1,89 56 34 C7 45 FC 00 00 00 00)
newmem:
originalcode:
push eax
lea eax,[esi+34]
mov [what],eax
pop eax
mov [esi+34],edx
mov [ebp-04],00000000
exit:
jmp returnhere
what:
db 00 00 00 00
aob1:
jmp newmem
nop
nop
nop
nop
nop
returnhere:
[DISABLE]
what:
db 89 56 34 C7 45 FC 00 00 00 00
unregistersymbol(what)
dealloc(newmem)
|
_________________
... Fresco |
|
| 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
|
|