View previous topic :: View next topic |
Author |
Message |
Betcha Expert Cheater Reputation: 4
Joined: 13 Aug 2015 Posts: 232 Location: Somewhere In Space
|
Posted: Sat Oct 15, 2016 5:37 am Post subject: Small Injection Problem |
|
|
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 |
|
|
Zanzer I post too much Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Sat Oct 15, 2016 6:24 am Post subject: |
|
|
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 |
|
|
Betcha Expert Cheater Reputation: 4
Joined: 13 Aug 2015 Posts: 232 Location: Somewhere In Space
|
Posted: Sat Oct 15, 2016 9:34 am Post subject: |
|
|
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 |
|
|
Zanzer I post too much Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Sat Oct 15, 2016 1:37 pm Post subject: |
|
|
Well, my code was called "saveme". Just need to make sure it's the same label in the five places.
|
|
Back to top |
|
|
Betcha Expert Cheater Reputation: 4
Joined: 13 Aug 2015 Posts: 232 Location: Somewhere In Space
|
Posted: Sat Oct 15, 2016 3:04 pm Post subject: |
|
|
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''.
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 |
|
|
|