| View previous topic :: View next topic |
| Author |
Message |
darksin How do I cheat?
Reputation: 0
Joined: 12 Aug 2014 Posts: 2
|
Posted: Tue Aug 12, 2014 3:36 pm Post subject: Help with aob scan (moving one address to another) |
|
|
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
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25817 Location: The netherlands
|
Posted: Tue Aug 12, 2014 4:10 pm Post subject: |
|
|
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 |
|
 |
darksin How do I cheat?
Reputation: 0
Joined: 12 Aug 2014 Posts: 2
|
Posted: Tue Aug 12, 2014 5:52 pm Post subject: |
|
|
nice that worked perfectly, thanks a lot for the help
|
|
| Back to top |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Wed Aug 13, 2014 4:03 am Post subject: Re: Help with aob scan (moving one address to another) |
|
|
| 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 |
|
 |
|