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 


code injection help

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
IDA
How do I cheat?
Reputation: 0

Joined: 25 Jan 2014
Posts: 3

PostPosted: Sat Jan 25, 2014 1:49 pm    Post subject: code injection help Reply with quote

hey there,

i found these in olly. nopping all these removes recoil from the game.

00463781 8B16 MOV EDX,DWORD PTR DS:[ESI]
00463783 8B52 14 MOV EDX,DWORD PTR DS:[EDX+14]
00463786 50 PUSH EAX
00463787 8D4C24 1C LEA ECX,[ESP+1C]
0046378B 51 PUSH ECX
0046378C 8BCE MOV ECX,ESI
0046378E FFD2 CALL EDX

i need to use AA code injection so i can save the script and use it in my CE trainer. but i dont really know how to write the code.

thx in advance
Back to top
View user's profile Send private message
UnIoN
Expert Cheater
Reputation: 2

Joined: 17 May 2011
Posts: 146

PostPosted: Sat Jan 25, 2014 5:55 pm    Post subject: Reply with quote

read chapter 8: http://forum.cheatengine.org/viewtopic.php?t=542093
Back to top
View user's profile Send private message
Rydian
Grandmaster Cheater Supreme
Reputation: 31

Joined: 17 Sep 2012
Posts: 1358

PostPosted: Sat Jan 25, 2014 6:49 pm    Post subject: Reply with quote

Assuming that code snippet is unique...
Code:
[ENABLE]
aobscan(norecoil, 8B 16 8B 52 14 50 8D 4C 24 1C 51 8B CE FF D2)
label(_norecoil)
registersymbol(_norecoil)

norecoil:
_norecoil:
db 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90

[DISABLE]
_norecoil:
db 8B 16 8B 52 14 50 8D 4C 24 1C 51 8B CE FF D2

unregistersymbol(_norecoil)
This will be a toggleable script.

http://forum.cheatengine.org/viewtopic.php?p=5510987

_________________
Back to top
View user's profile Send private message
IDA
How do I cheat?
Reputation: 0

Joined: 25 Jan 2014
Posts: 3

PostPosted: Sun Jan 26, 2014 9:08 am    Post subject: Reply with quote

thx for ur answers.

your code works like a charme.

first thing i tried was this but didnt go so well Very Happy

[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
nop
nop
nop
nop
nop
nop
nop

exit:
jmp returnhere

"ac_client.exe"+63781:
jmp newmem
returnhere:




[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"ac_client.exe"+63781:
mov edx,[esi]
mov edx,[edx+14]
push eax
lea ecx, [esp+1C]
push ecx
mov ecx, esi
call edx
//Alt: db 8B 16 8B 52 14
Back to top
View user's profile Send private message
Rydian
Grandmaster Cheater Supreme
Reputation: 31

Joined: 17 Sep 2012
Posts: 1358

PostPosted: Sun Jan 26, 2014 7:59 pm    Post subject: Reply with quote

Well, you weren't putting enough nops in. It's one per byte, not one per line.

nop nop
nop nop nop
nop
nop nop nop
nop
nop nop
nop nop

(I think that's the right count.)

_________________
Back to top
View user's profile Send private message
IDA
How do I cheat?
Reputation: 0

Joined: 25 Jan 2014
Posts: 3

PostPosted: Thu Jan 30, 2014 3:15 pm    Post subject: Reply with quote

okay, thanks for that.
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