AOB Inject Byte Resets w/ Wildcards

Anything Cheat Engine related, bugs, suggestions, helping others, etc..
Post Reply
User avatar
arlight1
Fearless Donors
Fearless Donors
Posts: 41
Joined: Tue Apr 25, 2017 12:04 am
Reputation: 5

AOB Inject Byte Resets w/ Wildcards

Post by arlight1 » Mon May 01, 2017 3:47 am

Hello everyone, sorry for making a new topic for this question, but I wanted it separate due to the nature of it.

If I've got a AOB injection script that has a signature of:
F3 41 0F 59 B7 ?? 00 00 00

How can I make it's [DISABLE] redefining fill in the ?? or * to what it is supposed to be as when it found that array? So right now it finds and injects at:

F3 41 0F 59 B7 ?? 00 00 00

but redefines those bytes when disabled at:
db F3 41 0F 59 B7 88 00 00 00

As you can the 88 sometimes changes, which is problematic when disabling the script. Any way to do this?

Thanks.

STN
Founder
Founder
Posts: 2702
Joined: Thu Mar 02, 2017 7:48 pm
Reputation: 140

Re: AOB Inject Byte Resets w/ Wildcards

Post by STN » Mon May 01, 2017 4:10 am

in [enable}

readmem the bytes to an allocated memory, then in disable, simple restore those saved bytes using readmem on your allocated memory.

User avatar
arlight1
Fearless Donors
Fearless Donors
Posts: 41
Joined: Tue Apr 25, 2017 12:04 am
Reputation: 5

Re: AOB Inject Byte Resets w/ Wildcards

Post by arlight1 » Mon May 01, 2017 5:25 pm

STN wrote:
Mon May 01, 2017 4:10 am
in [enable}

readmem the bytes to an allocated memory, then in disable, simple restore those saved bytes using readmem on your allocated memory.
I'm sorry, could you provide an example, I don't really follow?

STN
Founder
Founder
Posts: 2702
Joined: Thu Mar 02, 2017 7:48 pm
Reputation: 140

Re: AOB Inject Byte Resets w/ Wildcards

Post by STN » Tue May 02, 2017 2:08 am

psuedo code
game.exe+92ace 8b 9f 45 44 01 mov bla bla

[enable]
savebytes:
readmem(aobpoint, 5) //8b 9f 45 44 01
cave:
//awesome injection
//if you wish to recreate original code
readmem(aobpoint, 5)
jmp return

aobpoint: //game.exe+92ace
jmp cave
return:

[disable]
aobpoint:
readmem(savebytes, 5) // 8b 9f 45 44 01

User avatar
arlight1
Fearless Donors
Fearless Donors
Posts: 41
Joined: Tue Apr 25, 2017 12:04 am
Reputation: 5

Re: AOB Inject Byte Resets w/ Wildcards

Post by arlight1 » Wed May 03, 2017 1:37 pm

STN wrote:
Tue May 02, 2017 2:08 am
psuedo code
game.exe+92ace 8b 9f 45 44 01 mov bla bla

[enable]
savebytes:
readmem(aobpoint, 5) //8b 9f 45 44 01
cave:
//awesome injection
//if you wish to recreate original code
readmem(aobpoint, 5)
jmp return

aobpoint: //game.exe+92ace
jmp cave
return:

[disable]
aobpoint:
readmem(savebytes, 5) // 8b 9f 45 44 01
Great! Thank you.

Post Reply

Who is online

Users browsing this forum: No registered users