|
You last visited: Today at 07:58
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.
04/11/2006, 08:11
|
#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?
|
|
|
04/11/2006, 10:06
|
#2
|
elite*gold: 1406
Join Date: May 2005
Posts: 23,919
Received Thanks: 15,126
|
#moved.....
wrong forum ><
|
|
|
04/11/2006, 16:51
|
#3
|
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 <windows.h>
const ServerNameAddr = 0x57f21c;
char* GetServerNameFromMemory()
{
char* buffer;
buffer = new char[16];
HWND hWnd;
DWORD pID;
HANDLE hProcess;
if (!(hWnd = FindWindow(NULL, "[Conquer2.0]"))) return NULL;
GetWindowThreadProcessId(hWnd, &pID);
hProcess = OpenProcess(PROCESS_VM_READ, FALSE, pID);
ReadProcessMemory(hProcess, (void*)ServerNameAddr, buffer, 16, NULL);
CloseHandle(hProcess);
return buffer;
}
|
|
|
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.
|
|
|
04/12/2006, 12:27
|
#5
|
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!
|
|
|
04/12/2006, 16:04
|
#6
|
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.
|
|
|
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.
|
|
|
 |
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.
|
|