| View previous topic :: View next topic |
| Author |
Message |
samuri25404 Grandmaster Cheater
Reputation: 7
Joined: 04 May 2007 Posts: 955 Location: Why do you care?
|
Posted: Wed Jun 27, 2007 9:28 am Post subject: [Help] Changing the AOB in a Script |
|
|
Yes, I know I could just go find the address's AOBs and change it manually, but I'm writing a script to do it for me, because I'm just that lazy. ;)
Now, I know you can't do something like
| Code: |
mov <address>, <value of AOBs you want>
|
or something like that. Isn't there a specific command like the one below?
Also, for those thinking of DB, I don't want the ones to the left of the address, I want the ones on the bottom of the memory editor... or are those AOBs the same thing? o.o
|
|
| Back to top |
|
 |
sponge I'm a spammer
Reputation: 1
Joined: 07 Nov 2006 Posts: 6009
|
Posted: Wed Jun 27, 2007 1:46 pm Post subject: |
|
|
keep little endian in mind:
if you want to change one byte
mov byte ptr
if you want to change 2 bytes word ptr 4 bytes dword ptr 8 bytes qword ptr.
_________________
|
|
| Back to top |
|
 |
samuri25404 Grandmaster Cheater
Reputation: 7
Joined: 04 May 2007 Posts: 955 Location: Why do you care?
|
Posted: Wed Jun 27, 2007 10:18 pm Post subject: |
|
|
You own.
Thanks a ton, that clears a lot of stuff up for me. =)
Edit:
So it would be like
Or what? [32] ?
|
|
| Back to top |
|
 |
sponge I'm a spammer
Reputation: 1
Joined: 07 Nov 2006 Posts: 6009
|
Posted: Wed Jun 27, 2007 11:02 pm Post subject: |
|
|
32 isnt a word...
mov word ptr [ADDRESS],3240
when this is executed the aob will be 40 32. (little endian)
_________________
|
|
| Back to top |
|
 |
samuri25404 Grandmaster Cheater
Reputation: 7
Joined: 04 May 2007 Posts: 955 Location: Why do you care?
|
Posted: Sat Jun 30, 2007 11:38 am Post subject: |
|
|
Ah, I see.
Ok, now two things:
First, an AOB is more than just a QWORD, so if I say mov qword ptr [whatever], whatever, it's going to take the last 8 bytes, right?
And as for Little Endian...
If I'm changing a QWORD, then I would have to do like:
| Code: |
mov qword ptr 12345678, 12 23 34 45 56 67 78 89
|
in order for the AOBs at 12345678 to be
| Code: |
89 78 67 56 45 34 23 12
|
Correct?
Edit:
Do I use cmp in the same way as mov?
| Code: |
cmp qword ptr [12345678], 12 23 34 45 56 67 78 89
|
|
|
| Back to top |
|
 |
sponge I'm a spammer
Reputation: 1
Joined: 07 Nov 2006 Posts: 6009
|
Posted: Sun Jul 01, 2007 5:06 pm Post subject: |
|
|
mhmm... but no spaces. and there is no specified length for any aob. it can be as short or as long as you like.
_________________
|
|
| Back to top |
|
 |
|