View previous topic :: View next topic |
Author |
Message |
IDA How do I cheat?
Reputation: 0
Joined: 25 Jan 2014 Posts: 3
|
Posted: Sat Jan 25, 2014 1:49 pm Post subject: code injection help |
|
|
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 |
|
 |
UnIoN Expert Cheater
Reputation: 2
Joined: 17 May 2011 Posts: 146
|
|
Back to top |
|
 |
Rydian Grandmaster Cheater Supreme
Reputation: 31
Joined: 17 Sep 2012 Posts: 1358
|
Posted: Sat Jan 25, 2014 6:49 pm Post subject: |
|
|
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 |
|
 |
IDA How do I cheat?
Reputation: 0
Joined: 25 Jan 2014 Posts: 3
|
Posted: Sun Jan 26, 2014 9:08 am Post subject: |
|
|
thx for ur answers.
your code works like a charme.
first thing i tried was this but didnt go so well
[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 |
|
 |
Rydian Grandmaster Cheater Supreme
Reputation: 31
Joined: 17 Sep 2012 Posts: 1358
|
Posted: Sun Jan 26, 2014 7:59 pm Post subject: |
|
|
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 |
|
 |
IDA How do I cheat?
Reputation: 0
Joined: 25 Jan 2014 Posts: 3
|
Posted: Thu Jan 30, 2014 3:15 pm Post subject: |
|
|
okay, thanks for that.
|
|
Back to top |
|
 |
|