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 


INJECT,ERROR: Could not find unique AOB

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
noyuw
Newbie cheater
Reputation: 0

Joined: 26 Oct 2015
Posts: 12

PostPosted: Sat Apr 22, 2017 3:05 am    Post subject: INJECT,ERROR: Could not find unique AOB Reply with quote

Hey,

I have a little problem and can't figure this out, spent a few hours on it already..

I'm trying to do an AOB injection, but i have an inject error and it will not work at all (i can't even activate it by checking the checkbox on the current table, it won't let me).

This is a 4 Bytes value that i'm just trying to freeze or keep at the same amount (1065353216)

Whatever scan i do, it is always
Code:

 fstp dword ptr [eax+00000188]


who is concerned, maybe i could do it in another way ?

Here is the AOB injection

Code:
[ENABLE]

aobscan(INJECT,ERROR: Could not find unique AOB, tried code "D9 98 88 01 00 00") // should be unique
alloc(newmem,$1000)

label(code)
label(return)

newmem:

code:
  fstp dword ptr [eax+00000188]
  jmp return

INJECT+B20268:
  jmp newmem
  nop
return:
registersymbol(INJECT)

[DISABLE]

INJECT+B20268:
  db D9 98 88 01 00 00

unregistersymbol(INJECT)
dealloc(newmem)

{
// ORIGINAL CODE - INJECTION POINT: 1D2F1F00

""+1D2F1EE7: 8B 45 F0              -  mov eax,[ebp-10]
""+1D2F1EEA: DD 45 E8              -  fld qword ptr [ebp-18]
""+1D2F1EED: DD 45 E0              -  fld qword ptr [ebp-20]
""+1D2F1EF0: D9 C9                 -  fxch st(1)
""+1D2F1EF2: D9 CA                 -  fxch st(2)
""+1D2F1EF4: DE C9                 -  fmulp st(1),st(0)
""+1D2F1EF6: DE C1                 -  faddp
""+1D2F1EF8: D9 5D F4              -  fstp dword ptr [ebp-0C]
""+1D2F1EFB: 39 00                 -  cmp [eax],eax
""+1D2F1EFD: D9 45 F4              -  fld dword ptr [ebp-0C]
// ---------- INJECTING HERE ----------
""+1D2F1F00: D9 98 88 01 00 00     -  fstp dword ptr [eax+00000188]
// ---------- DONE INJECTING  ----------
""+1D2F1F06: 85 DB                 -  test ebx,ebx
""+1D2F1F08: 74 0A                 -  je 1D2F1F14
""+1D2F1F0A: 8B 86 AC 00 00 00     -  mov eax,[esi+000000AC]
""+1D2F1F10: 3B D8                 -  cmp ebx,eax
""+1D2F1F12: 74 15                 -  je 1D2F1F29
""+1D2F1F14: 83 EC 04              -  sub esp,04
""+1D2F1F17: 6A 00                 -  push 00
""+1D2F1F19: 6A 02                 -  push 02
""+1D2F1F1B: 56                    -  push esi
""+1D2F1F1C: E8 B7 01 00 00        -  call 1D2F20D8
}


Thanks


Last edited by noyuw on Sat Apr 22, 2017 6:48 am; edited 1 time in total
Back to top
View user's profile Send private message
Twistedfate
Expert Cheater
Reputation: 0

Joined: 11 Mar 2016
Posts: 192

PostPosted: Sat Apr 22, 2017 6:40 am    Post subject: Reply with quote

The code u want to inject is
Code:
fstp dword ptr [eax+00000188]


just select more instruction under your code then you can get unique Array of bytes ( press Ctrl+c ) choose bytes only .

- if the AOB is repeated CE will fail to inject the code .
- You can check if its unique or not , by scanning for array of bytes and make writable square grayed .
Back to top
View user's profile Send private message
noyuw
Newbie cheater
Reputation: 0

Joined: 26 Oct 2015
Posts: 12

PostPosted: Sat Apr 22, 2017 7:00 am    Post subject: Reply with quote

Twistedfate wrote:


just select more instruction under your code then you can get unique Array of bytes ( press Ctrl+c ) choose bytes only .
.


I don't get what you are saying, can you explain a bit more on how to do that ?

Since this is always about "fstp dword ptr [eax+00000188]" (even after a game restart), could there would be another simplest way to freeze/unfreeze the value ? (still with [ENABLE] / [DISABLE])

Here is a screen of the memory viewer : imgur[dot]com/a/4lQWS

Btw, thanks for the help
Back to top
View user's profile Send private message
Twistedfate
Expert Cheater
Reputation: 0

Joined: 11 Mar 2016
Posts: 192

PostPosted: Sat Apr 22, 2017 7:22 am    Post subject: Reply with quote

look at the picture .
the orange line mean less AOBs = error cannot inject .
the purple line mean more AOBs = unique signature → CE can Inject it .
you could select more than one instructions . and pressed CTR+C to copy AOBs then past them in your script. .... select AOBs starting from
Code:
fstp dword ptr [eax+00000188]

to be like that

Code:
 D9 98 88 01 00 00   85 DB 74 0A        8B 86 AC 00 00 00    3B D8   74 15 
  83 EC 04  6A 00   6A 02



aob.jpg
 Description:
 Filesize:  59.18 KB
 Viewed:  2762 Time(s)

aob.jpg


Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting 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