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 


Small Injection Problem

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Betcha
Expert Cheater
Reputation: 4

Joined: 13 Aug 2015
Posts: 232
Location: Somewhere In Space

PostPosted: Sat Oct 15, 2016 5:37 am    Post subject: Small Injection Problem Reply with quote

Hello..

Target is in game time ... Day/Night
This is the line when do injection.

fstp dword ptr [eax]
mov eax,0DAB8D20


What writes/access to this address pops up only one thing.
So no other place to do injection, if only do back trace right?
But not about that..

Problem is that the fstp dword ptr [eax]
is surrounded with mov eax,0DAB8D20
If inject one line up will be like this

mov eax,0DAB8D20
fstp dword ptr [eax]


When make any changes on fstp dword ptr [eax]
it will basically kill the mov eax,0DAB8D20
And on script Deactivate time wont work properly.

How or is it possible to do an injection in this place without any harm on those
mov eax,0DAB8D20 ?
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sat Oct 15, 2016 6:24 am    Post subject: This post has 1 review(s) Reply with quote

Code:
[ENABLE]
aobscan(INJECT, D9 18 B8 ?? ?? ?? ?? {more bytes to make it unique})
label(code)
label(return)
label(saveme)
newmem:

code:
  fstp dword ptr [eax]
saveme:
  reassemble(INJECT+2)

registersymbol(INJECT)
registersymbol(saveme)
[DISABLE]
INJECT:
  db D9 18
  reassemble(saveme)
unregistersymbol(INJECT)
unregistersymbol(saveme)
Back to top
View user's profile Send private message
Betcha
Expert Cheater
Reputation: 4

Joined: 13 Aug 2015
Posts: 232
Location: Somewhere In Space

PostPosted: Sat Oct 15, 2016 9:34 am    Post subject: Reply with quote

Zanzer wrote:


Thank you! <3

But still one question:
When i rewrite script with command ''Reassemble''
By pressing ''OK'' it says error on line reassemble(save) below the [DISABLE]
If click yes and activate script it still works..
It must be like that or i miss something?
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sat Oct 15, 2016 1:37 pm    Post subject: Reply with quote

Well, my code was called "saveme". Just need to make sure it's the same label in the five places.
Back to top
View user's profile Send private message
Betcha
Expert Cheater
Reputation: 4

Joined: 13 Aug 2015
Posts: 232
Location: Somewhere In Space

PostPosted: Sat Oct 15, 2016 3:04 pm    Post subject: Reply with quote

After mixing script with ''reassemble'' i came up with this..
When press ok it see problem in ''reassemble(SaveThis)'',
But if press Yes anyways..
Script works without killing ''mov eax,0DAB8D20'' on Deactivate.
''reassemble'' command is new for me..
Crashed game few times before made something work with ''reassemble''. Very Happy
Code:
[ENABLE]

aobscan(Time,D9 18 B8 ?? ?? ?? ?? D9 00 B8)
alloc(ChangeTime,$100)
label(return)
label(SaveThis)

ChangeTime:
  fstp dword ptr [eax]
  mov [eax],(float)210.0
  jmp return

SaveThis:
  reassemble(Time+2)
  jmp return

Time:
  jmp ChangeTime
  nop
  nop
return:
registersymbol(Time)
registersymbol(SaveThis)

[DISABLE]

Time:
  db D9 18
  reassemble(SaveThis)
unregistersymbol(SaveThis)
unregistersymbol(Time)
dealloc(ChangeTime)
Back to top
View user's profile Send private message
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