 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
Spark2893 How do I cheat?
Reputation: 0
Joined: 10 Dec 2007 Posts: 7 Location: Malaysia(luv it)
|
Posted: Mon Dec 31, 2007 12:24 am Post subject: PLLLLEASE help me in code injection |
|
|
Hey ,i think i need your help,guys
I am playing ALien Shooter and try to inject some code
The opcode for decreasing my health is mov [esi+54],edi.
I will try to make my health stays 100 all the time
| Code: |
[ENABLE]
alloc(newmem,2046)
label(newmem)
label(exit)
label(returnhere)
0047a33:
jmp newmem
nop
returnhere:
newmem:
mov [edi],100
mov [esi+54],edi
pop esi
pop edi
jmp returnhere
exit:
jmp returnhere
[DISABLE]
dealloc(newmem)
0047a33:
mov [esi+54],edi
pop esi
pop edi
|
When i enabled it after assigning it to the cheat table....
BOOM!
the game crash
Where i got it wrong and how to fix it
Help me i'm a noobie in code injecting so good replies will mean so much to me
|
|
| Back to top |
|
 |
Labyrnth Moderator
Reputation: 10
Joined: 28 Nov 2006 Posts: 6301
|
Posted: Mon Dec 31, 2007 12:19 pm Post subject: |
|
|
Now try this.
You was moving 100 to [edi] but should be edi only.
newmem:
mov [edi],100 <--- edi does not need [ ]
Also, 100 is not 100 health as your thinking.
That is changing health to 256.
It should be: mov edi,64
64 hexa = 100 decimal
100 hexa = 256 decimal
decimal = visual HP in game.
| Code: | [ENABLE]
alloc(newmem,2046)
label(newmem)
label(exit)
label(returnhere)
0047a33:
jmp newmem
nop
returnhere:
newmem:
mov edi,64
mov [esi+54],edi
pop esi
pop edi
jmp returnhere
exit:
jmp returnhere
[DISABLE]
dealloc(newmem)
0047a33:
mov [esi+54],edi
pop esi
pop edi |
|
|
| Back to top |
|
 |
|
|
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
|
|