| View previous topic :: View next topic |
| Author |
Message |
*CandyShop* Grandmaster Cheater
Reputation: 0
Joined: 03 Apr 2007 Posts: 865 Location: Israel
|
Posted: Fri Dec 14, 2007 6:24 am Post subject: [Delphi] Inject a dll with my code |
|
|
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 |
|
 |
HolyBlah Master Cheater
Reputation: 2
Joined: 24 Aug 2007 Posts: 446
|
Posted: Fri Dec 14, 2007 6:28 am Post subject: |
|
|
| Translate it to bytes and use Writeprocessmemory to write it.
|
|
| Back to top |
|
 |
*CandyShop* Grandmaster Cheater
Reputation: 0
Joined: 03 Apr 2007 Posts: 865 Location: Israel
|
Posted: Fri Dec 14, 2007 6:33 am Post subject: |
|
|
So how will I translate this to bytes:
Explain more please, or give an example either
|
|
| Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Fri Dec 14, 2007 7:00 am Post subject: |
|
|
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.
|
|
| Back to top |
|
 |
*CandyShop* Grandmaster Cheater
Reputation: 0
Joined: 03 Apr 2007 Posts: 865 Location: Israel
|
Posted: Fri Dec 14, 2007 8:18 am Post subject: |
|
|
| 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.  |
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
|
|
| Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Fri Dec 14, 2007 10:48 am Post subject: |
|
|
| Symbol is correct, you won't necessarily crash, but you are butchering the stack.
|
|
| Back to top |
|
 |
|