![]() |
| ||
| DLL Injection - Coding the DLL C++ Ok i've created basic DLL and DLL Injector/Loader which the DLL calls on a function called CreateRemoteThread inside the target process i was wondering how to code DLL to read/write to memory so e.g. lets say my target process is: int main()How would i code a DLL to read ''mytest'' variable and display it and also write to it e.g. changing it to lets say 10 Thanks for taking your time reading Any tips/help would be much appreciated /PoZ |
| ||
| Re: DLL Injection - Coding the DLL C++ Read this article |
| ||
| Re: DLL Injection - Coding the DLL C++ Quote:
I've injected the process with the DLL which works fine... I would like to read/write variables in the injected process (so il be needing to code the DLL to read/write) any chance you could show me abit of code on how it would be done? Thanks, PoZ |
| ||
| Re: DLL Injection - Coding the DLL C++ >>any chance you could show me abit of code on how it would be done? Nope --but possibly the windows debug api might be useful |
| ||
| Re: DLL Injection - Coding the DLL C++ Quote:
#include <windows.h> DLL code (Coded in C++): its at home im currently at college >.< il post that later basically what it does it CreateRemoteThread in the process and produces a messagebox saying that remotethread is sucessfull Going to read that link you send me ^.^ thank you for your help again /PoZ |
| ||
| Re: DLL Injection - Coding the DLL C++ Also read that link you send me Ancient Dragon ... it didn't cover what i was needing (well i don't think) >.< but thanks alot for trying mate DLL Code: Dllmain.cpp: /* Replace "dll.h" with the name of your header */ All these code work fine... just wanting to read/write process memory from injected process so e.g. DLL Loader: Injector.exe DLL: Project1.dll Target: Test.exe i want the Project1.dll to able to read variables from Test.exe so lets say Test.exe has variable such as int tcode = 10; i want the DLL to be able to read/write to the variable "tcode". |
| All times are GMT -4. The time now is 3:23 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC