Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2
You last visited: Today at 07:58

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Read Process memory in Conquer.exe

Discussion on Read Process memory in Conquer.exe within the Conquer Online 2 forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2005
Posts: 38
Received Thanks: 0
Any of you coders here could help me out?

From my program, I'm trying to retrieve/get the SERVER_NAME of the memory of the game. Ex, Conquer-online's Conquer.exe

ReadProcessMemory() could help, but still it confuses me.

Anybody can share detailed info about this?
RagnaBaby is offline  
Old 04/11/2006, 10:06   #2


 
S.A.L.O.M.O.N.'s Avatar
 
elite*gold: 1406
The Black Market: 150/0/0
Join Date: May 2005
Posts: 23,919
Received Thanks: 15,126
#moved.....
wrong forum ><
S.A.L.O.M.O.N. is offline  
Old 04/11/2006, 16:51   #3
 
unknownone's Avatar
 
elite*gold: 20
Join Date: Jun 2005
Posts: 1,013
Received Thanks: 381
Use FindWindow to search for "[Conquer2.0]". This will retreive the window handle for the topmost window matching that name. If you have multiple windows with the same caption, use FindWindowEx with the desktop as the parent window, then loop through placing any found handle as the next parent, until the handle is zero.

After finding the window handle, use GetWindowThreadProcessId to return the process Id, You can then use OpenProcess with the process ID in order to read/write to its memory.

Code:
#include &#60;windows.h>

const ServerNameAddr = 0x57f21c;

char* GetServerNameFromMemory&#40;&#41;
{
	char* buffer;
	buffer = new char&#91;16&#93;;
  HWND hWnd;
	DWORD pID;
	HANDLE hProcess;

	if &#40;!&#40;hWnd = FindWindow&#40;NULL, &#34;&#91;Conquer2.0&#93;&#34;&#41;&#41;&#41; return NULL;
	GetWindowThreadProcessId&#40;hWnd, &pID&#41;;
	hProcess = OpenProcess&#40;PROCESS_VM_READ, FALSE, pID&#41;;
	ReadProcessMemory&#40;hProcess, &#40;void*&#41;ServerNameAddr, buffer, 16, NULL&#41;;
	CloseHandle&#40;hProcess&#41;;

	return buffer;
}
unknownone is offline  
Old 04/12/2006, 11:20   #4
 
elite*gold: 0
Join Date: Apr 2005
Posts: 38
Received Thanks: 0
I've already have the FindWindow() and get process handle.

Is this the actual server offset of the serverAddressName? If it is, Thanks alot.

Could I possibly have more info on how u did get the offset?


I just didn't get why it's transferred to the main section. But still somebody found to help me.

Thanks alot.
RagnaBaby is offline  
Old 04/12/2006, 12:27   #5
 
tsu's Avatar
 
elite*gold: 0
Join Date: Jan 2006
Posts: 2,534
Received Thanks: 51
Quote:
Originally posted by RagnaBaby@Apr 12 2006, 11:20
I just didn't get why it's transferred to the main section. But still somebody found to help me.

Thanks alot.
That is because, [ NO QUESTIONS ] are allowed in subforums, only releases!
tsu is offline  
Old 04/12/2006, 16:04   #6
 
unknownone's Avatar
 
elite*gold: 20
Join Date: Jun 2005
Posts: 1,013
Received Thanks: 381
Quote:
Originally posted by RagnaBaby@Apr 12 2006, 10:20
I've already have the FindWindow() and get process handle.

Is this the actual server offset of the serverAddressName? If it is, Thanks alot.

Could I possibly have more info on how u did get the offset?


I just didn't get why it's transferred to the main section. But still somebody found to help me.

Thanks alot.
Yeah, that is the offset for the server name. I found it by attaching OllyDbg to a running client, open the memory map and press Ctrl+B, search for the server name there.
unknownone is offline  
Old 04/13/2006, 06:18   #7
 
elite*gold: 0
Join Date: Apr 2005
Posts: 38
Received Thanks: 0
Oh thanks again, I'll try use OllyDbg again. Last time I used it is 5yrs ago. I Hope this things will get a lil bit easier.
RagnaBaby is offline  
Reply


Similar Threads Similar Threads
write memory process problem
10/28/2009 - General Coding - 3 Replies
Hey Leute Habe mir ebem mal das tut von Blackfog angeschaut. Verstehe es auch, bloss will mein compi nich so wie ich will XD habe es au scho mit copy and paste versucht, das ding macht einfach nix
Suche ein memory read process tutorial, am besten mit bildern
10/25/2009 - General Coding - 4 Replies
HEy LEute Ich such ein tutorial, was sich mit read process memory befasst. Wenns geht auch noch alle anderen sachen also write process memory Hoffe da gibts was schönes mit bildern hatte schonmal sufu benutzt aber die sind irgendwie ohne bilder
C# Write process memory
08/16/2008 - CO2 Programming - 6 Replies
ok so i have a question about how do i use the api function writeprocessmemory in C#, i already have readprocessmemory but i can't seem to get writeprocessmemory... so if anyone could show me the call and an example (preferably a pinball example) it would be very helpful :) heres what i have so far: //================================================ ==============================================// // Function: MemoryOpen(int ProcessID])) // ...
[Question] VB.Net and process memory
07/28/2008 - .NET Languages - 5 Replies
Hello, Im having some trouble with read/write process Memory and Im hoping someone here could help me out a little. Code: Dim iMoneyAddress As Integer iMoneyAddress = 90720324 Dim Reader As New MemReader.ProcessMemoryReader() Dim MyProcs As System.Diagnostics.Process() = System.Diagnostics.Process.GetProcessesByName(&quo t;Conquer")
Getting info from Game Process Memory
04/13/2006 - General Coding - 8 Replies
Any of you coders here could help me out? From my program, I'm trying to retrieve/get the SERVER_NAME of the memory of the game. Ex, Conquer-online's Conquer.exe ReadProcessMemory() could help, but still it confuses me. Anybody can share detailed info about this?



All times are GMT +1. The time now is 07:58.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.