GIDForums  

Go Back   GIDForums > Computer Programming Forums > CPP / C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 30-Apr-2007, 23:56
SliderMan SliderMan is offline
New Member
 
Join Date: Apr 2007
Posts: 1
SliderMan is on a distinguished road

injecting a dll to a process for changing process memory with __asm


hey guys i wanted to make a dll and inject it to a process so the dll will change some of the memory with the __asm func but i couldnt make it:

CPP / C++ / C Code:
 
void V37Trainer() {

	HMODULE WINAPI GetModuleHandle(LPCTSTR pcomdebug);
	BOOL WINAPI FreeLibrary(HMODULE pcomdebug);
	MessageBoxA(0, "Trainer Activated! Happy Hacking! (BY SliderMan :))", ":)",MB_ICONINFORMATION);  
	//while for getting the keys:
	__asm {
		mov eax, 0x0067D772;
		jmp eax;
		je 0x0067e5f8;
	};
}
this is what i tried to do that code is the function running after the injection (creaethread) and in the __asm i wanted it to jmp that game addy "0x0067D772" its into eax right now. and then put after je 0x0067e5f8 (instant of jne 0x0067e5f
i have tried this too:
CPP / C++ / C Code:

void V37Trainer() {

	HMODULE WINAPI GetModuleHandle(LPCTSTR pcomdebug);
	BOOL WINAPI FreeLibrary(HMODULE pcomdebug);
	MessageBoxA(0, "Trainer Activated! Happy Hacking! (BY SliderMan :))", ":)",MB_ICONINFORMATION);  
	//while for getting the keys:
	__asm {
	       0x0067D772:
	       je 0x0067e5f8;
	};
}
but its giving me a compiling error
thanks in advance!
moshe.
Last edited by LuciWiz : 01-May-2007 at 11:52. Reason: Please insert your C/C++ code between [cpp] & [/cpp] tags
 
 

Recent GIDBlog2nd Week of IA Training by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hard drive/CPU Diagnoses Issues binarybug Computer Hardware Forum 1 22-Jan-2007 19:23
Memory de-allocation during debugging gaoanyu C Programming Language 12 19-Dec-2005 04:50
Pointer Usage in C++: Beginner to Advanced varunhome CPP / C++ Forum 0 19-Aug-2005 09:25
[TUTORIAL] Calling an external program in C (Linux) dsmith C Programming Language 4 22-Apr-2005 13:30
[Tutorial] Pointers in C (Part I) Stack Overflow C Programming Language 1 08-Apr-2005 18:35

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 03:02.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.