| View previous topic :: View next topic |
| Author |
Message |
Elec0 Expert Cheater
Reputation: 0
Joined: 21 Nov 2007 Posts: 188 Location: Out of my mind, back in five minutes.
|
Posted: Tue Jan 29, 2008 9:10 am Post subject: [VB6][Question]Injecting Code Into .EXE Programs |
|
|
How would you go about doing this? It would be kind of like making a trainer, but you would, instead of a .swf file, you would use a .exe file. If that makes any sense.
~Elec0
_________________
|
|
| Back to top |
|
 |
Losplagos Expert Cheater
Reputation: 0
Joined: 21 Mar 2006 Posts: 172 Location: Knee deep in a c++ book
|
Posted: Tue Jan 29, 2008 9:34 am Post subject: |
|
|
You would have to program a .dll and inject it into the game. To start look up readprocessmemory() and writeprocessmemory(). You will have to write the dll in another langauge since vb6 if i remember correctly does not let you make dlls. That should be enough to start.
_________________
Earthbound = 31337
Last edited by Losplagos on Tue Jan 29, 2008 9:38 am; edited 1 time in total |
|
| Back to top |
|
 |
Elec0 Expert Cheater
Reputation: 0
Joined: 21 Nov 2007 Posts: 188 Location: Out of my mind, back in five minutes.
|
Posted: Tue Jan 29, 2008 9:36 am Post subject: |
|
|
Oh...I think you can write DLLs in C++, but I don't know C++ very well.
Okay, thanks though.
_________________
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Tue Jan 29, 2008 10:52 am Post subject: |
|
|
| Losplagos wrote: | | You would have to program a .dll and inject it into the game. To start look up readprocessmemory() and writeprocessmemory(). You will have to write the dll in another langauge since vb6 if i remember correctly does not let you make dlls. That should be enough to start. |
Correct, by default VB cannot make standard Win32 dlls, but you can hack the linker to do it.
As for other injection, you can write to memory, make caves, etc without the need to inject a DLL.
| Elec0 wrote: | Oh...I think you can write DLLs in C++, but I don't know C++ very well.
Okay, thanks though. |
Yes, you can make DLLs in C/C++
_________________
- Retired. |
|
| Back to top |
|
 |
Elec0 Expert Cheater
Reputation: 0
Joined: 21 Nov 2007 Posts: 188 Location: Out of my mind, back in five minutes.
|
Posted: Wed Jan 30, 2008 10:41 am Post subject: |
|
|
| Wiccaan wrote: | | Losplagos wrote: | | You would have to program a .dll and inject it into the game. To start look up readprocessmemory() and writeprocessmemory(). You will have to write the dll in another langauge since vb6 if i remember correctly does not let you make dlls. That should be enough to start. |
As for other injection, you can write to memory, make caves, etc without the need to inject a DLL.
|
I didn't get that.
_________________
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Wed Jan 30, 2008 10:56 am Post subject: |
|
|
Injection doesn't always mean that you inject a DLL into a process. There is also code injection. Just like what CE scripts do, they inject code into the process.
You can do this via WriteProcessMemory by rewriting code, replacing jumps, creating caves, etc like I said above.
You can also execute code via threads, again like CE 5.4 does, by injecting a cave and having the thread call to it.
_________________
- Retired. |
|
| Back to top |
|
 |
|