Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Help with aob scan (moving one address to another)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
darksin
How do I cheat?
Reputation: 0

Joined: 12 Aug 2014
Posts: 2

PostPosted: Tue Aug 12, 2014 3:36 pm    Post subject: Help with aob scan (moving one address to another) Reply with quote

hi, im kind of new to Assembly and have been trying to make a script that will move one address to another, i would be grateful if anyone could share their knowledge and help me make this script work . Now with this game in particular it wont allow debugging or pointer scanning.

so i think that i have the basic framework down with a solid signature and have registered the aob to the cheat table to add addresses. below is the code:

Code:

[ENABLE]
aobscan(player, 00 00 00 00 ?? ?? ?? 00 00 00 00 00 00 00 00 00 ?? ?? 00 00 ?? ?? 00 00 00 00 00 00 00 00 00 00 ?? ?? ?? ?? ?? ?? ?? ?? 01 00 00 00 00 00 00 00 E3 2E 00 00 ?? 00 00 00 ?? ?? 00 00 ?? 00 00 00 ?? 75 00 00 00 00 00 00 ?? ?? 00 00 00 00 00 00 40 10 62 3A AC 10 62 3A 00 00 00 00 00 00 00 00)
label(_player)
registersymbol(_player)


player:
_player:

[DISABLE]
unregistersymbol(_player)
[/url]


so basically i want to move _player+10 (4byte) into _player+e10(4byte) and fyi the value i want to move changes a lot so i cant simply db.

what i have tried:
Code:

[ENABLE]
aobscan(player, 00 00 00 00 ?? ?? ?? 00 00 00 00 00 00 00 00 00 ?? ?? 00 00 ?? ?? 00 00 00 00 00 00 00 00 00 00 ?? ?? ?? ?? ?? ?? ?? ?? 01 00 00 00 00 00 00 00 E3 2E 00 00 ?? 00 00 00 ?? ?? 00 00 ?? 00 00 00 ?? 75 00 00 00 00 00 00 ?? ?? 00 00 00 00 00 00 40 10 62 3A AC 10 62 3A 00 00 00 00 00 00 00 00)
label(_player)
registersymbol(_player)

player:
mov eax, player+e10 //this is the address i want to move
mov ecx, player+10 //this is the new location i want to move it to
mov ecx, eax //moving it to the new location

player:
_player:

[DISABLE]
unregistersymbol(_player)
[/quote]


^ this script does change the address but not with the correct value and not 4 bytes its 16 bytes worth and even the first 4 bytes are random, sorry if this script is totally wrong or messy, still learning. So what would i need to do to make this work? are there any other commands? again any help from experienced people would be very much appreciated Smile
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25817
Location: The netherlands

PostPosted: Tue Aug 12, 2014 4:10 pm    Post subject: Reply with quote

You're overwriting the data with your code

Can't check if it works from here but try readmem(address,count)
Code:

player+10:
readmem(player+e10,4)


_________________
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
View user's profile Send private message MSN Messenger
darksin
How do I cheat?
Reputation: 0

Joined: 12 Aug 2014
Posts: 2

PostPosted: Tue Aug 12, 2014 5:52 pm    Post subject: Reply with quote

nice that worked perfectly, thanks a lot for the help Smile
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Wed Aug 13, 2014 4:03 am    Post subject: Re: Help with aob scan (moving one address to another) Reply with quote

Code:

[ENABLE]
aobscan(player, 00 00 00 00 ?? ?? ?? 00 00 00 00 00 00 00 00 00 ?? ?? 00 00 ?? ?? 00 00 00 00 00 00 00 00 00 00 ?? ?? ?? ?? ?? ?? ?? ?? 01 00 00 00 00 00 00 00 E3 2E 00 00 ?? 00 00 00 ?? ?? 00 00 ?? 00 00 00 ?? 75 00 00 00 00 00 00 ?? ?? 00 00 00 00 00 00 40 10 62 3A AC 10 62 3A 00 00 00 00 00 00 00 00)

createthread(newmem)
alloc(newmem,128)

newmem:
push ebp
mov ebp,esp

mov esi,player+10      // source
mov edi,player+e10     // destination
mov ecx,10             // count
repe movsd             // will move 4byte chunks, ( 0x10 * 0x4 = 0x40 = 64 )

leave
ret
 
[DISABLE]
dealloc(newmem)




Or try readmem.

_________________
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites