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 


[Delphi] Inject a dll with my code

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

Joined: 03 Apr 2007
Posts: 865
Location: Israel

PostPosted: Fri Dec 14, 2007 6:24 am    Post subject: [Delphi] Inject a dll with my code Reply with quote

I want to inject a dll with my code
How can i do it?

this is my code on cheatengine (AA..example..):
Code:
alloc(example,64)
alloc(value,4)

00401000:
jmp example

example
push edx
mov edx,[eax+5A]
mov [value],edx
mov eax,2
jmp 00401002


Thx
Back to top
View user's profile Send private message
HolyBlah
Master Cheater
Reputation: 2

Joined: 24 Aug 2007
Posts: 446

PostPosted: Fri Dec 14, 2007 6:28 am    Post subject: Reply with quote

Translate it to bytes and use Writeprocessmemory to write it.
Back to top
View user's profile Send private message
*CandyShop*
Grandmaster Cheater
Reputation: 0

Joined: 03 Apr 2007
Posts: 865
Location: Israel

PostPosted: Fri Dec 14, 2007 6:33 am    Post subject: Reply with quote

HolyBlah wrote:
Translate it to bytes and use Writeprocessmemory to write it.

So how will I translate this to bytes:
Code:
mov [value],edx


Explain more please, or give an example either Smile
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Fri Dec 14, 2007 7:00 am    Post subject: Reply with quote

Read line by line and convert each op-code to bytes, take a look at cheat engine's source, auto assembler unit.

By the way, you will crash, you didn't pop'ed edx. Laughing
Back to top
View user's profile Send private message
*CandyShop*
Grandmaster Cheater
Reputation: 0

Joined: 03 Apr 2007
Posts: 865
Location: Israel

PostPosted: Fri Dec 14, 2007 8:18 am    Post subject: Reply with quote

Symbol wrote:
Read line by line and convert each op-code to bytes, take a look at cheat engine's source, auto assembler unit.

By the way, you will crash, you didn't pop'ed edx. Laughing

O_O
Do you even know what the stack means?
I won't crash unless the process checks for EDX and use it, so MAPLE crash not the process itself..
I thought about this method but..
Monsoon told me that his friend told him about other method with a dll but he went AFK and I don't know how to do it

btw,
Thanks Smile
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Fri Dec 14, 2007 10:48 am    Post subject: Reply with quote

Symbol is correct, you won't necessarily crash, but you are butchering the stack.
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