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 


how to codecave this script?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
icewd
Advanced Cheater
Reputation: 0

Joined: 27 Dec 2006
Posts: 71

PostPosted: Fri Jun 08, 2007 7:56 am    Post subject: how to codecave this script? Reply with quote

[ENABLE]
alloc(CodeCave,32)
alloc(Pointer,32)
registersymbol(CodeCave)
registersymbol(Pointer)
label(ReturnHere)

CodeCave:
push ecx
mov ecx,Pointer
mov [ecx],esi
pop ecx
mov [esi+00000114],edi
jmp ReturnHere

00691202:
jmp CodeCave
nop
ReturnHere:

[DISABLE]
00691202:
mov [esi+00000114],edi

dealloc(CodeCave)
dealloc(Pointer)
unregistersymbol(CodeCave)
unregistersymbol(Pointer)


This is CRC script but I want to learn how to convert a CRC scripit to the Codecave script, can anyone help me?
Back to top
View user's profile Send private message
samuri25404
Grandmaster Cheater
Reputation: 7

Joined: 04 May 2007
Posts: 955
Location: Why do you care?

PostPosted: Fri Jun 08, 2007 9:10 am    Post subject: Reply with quote

Ehh, I don't think that's a CRC script--it looks more along the lines to be Auto Assembler to me.

Two things, FYI:

1) type [ code ] and [ /code ] around your code, without the spaces and it makes it look like this:

Code:

wee


2) I think your script is a little bad, you don't register the value of Pointer. You need to add something along the lines of this somewhere in there:

Code:

Pointer:
dd 0
Back to top
View user's profile Send private message
SXGuy
I post too much
Reputation: 0

Joined: 19 Sep 2006
Posts: 3551

PostPosted: Fri Jun 08, 2007 10:44 am    Post subject: Re: how to codecave this script? Reply with quote

well you need to find some codecave address first.
search for codecaves 32 bytes
you will get a few, then use some of them after 007 (i think)
then replace all the labels with codecave addresses
same with symbols

Code:

label(CodeCave)
alloc(Pointer,32)
registersymbol(CodeCave)
registersymbol(Pointer)
label(ReturnHere)

CodeCave: //first codecave address
push ecx
mov ecx,Pointer //second
mov [ecx],esi
pop ecx
mov [esi+00000114],edi
jmp ReturnHere //third

00691202:
jmp CodeCave //first
nop
ReturnHere: //second

[DISABLE]
00691202:
mov [esi+00000114],edi

label(CodeCave)
dealloc(Pointer)
unregistersymbol(CodeCave)
unregistersymbol(Pointer)



i dont think its a CRC script, i dunno what it is, but doubt it works anyway, but thats how you codecave

heres an example (not real codecave addresses)

Code:

00001234:
push ecx
mov ecx,00001235
mov [ecx],esi
pop ecx
mov [esi+00000114],edi
jmp 00691204

00691202:
jmp 00001234
00691203:
nop

_________________
Proud member of "The DACEF" (Distruction Against Criminal Egotistical Forces"

Sign up today and receive your free "I Hate x0r Badge"
Back to top
View user's profile Send private message
icewd
Advanced Cheater
Reputation: 0

Joined: 27 Dec 2006
Posts: 71

PostPosted: Fri Jun 08, 2007 12:03 pm    Post subject: Reply with quote

Thank you two for helping, I desire to say that.

I am so glad I made it works, I cannot describe how happy i am. I cannot achieve this without your help Very Happy

dont take it as spam, i just want to say a TAHNK YOU!
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 programming 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