|
You last visited: Today at 14:04
Advertisement
how to use ReadProcessMemory to get char name with vb????
Discussion on how to use ReadProcessMemory to get char name with vb???? within the Perfect World forum part of the MMORPGs category.
06/06/2011, 12:18
|
#1
|
elite*gold: 0
Join Date: Mar 2011
Posts: 33
Received Thanks: 16
|
how to use ReadProcessMemory to get char name with vb????
  
I've got an offset but do not know how to use it to read type string,i know just to read type integer.
this my function
Public Shared Sub PointerRead(ByVal Offset As Integer(), ByRef Buffer As Integer)
Try
Dim b As Integer = Nothing
Dim t As Integer = _PerfectWorldBaseAddress
ReadProcessMemory(_hProcess, t, b, 4, 0)
For i = 0 To UBound(Offset)
t = b + Offset(i)
ReadProcessMemory(_hProcess, t, b, 4, 0)
Next
Buffer = b
Catch Ex As Exception
'MsgBox(Ex)
End Try
End Sub
I needed a way to read the integer type.    
Which should be changed? 
    :hands down:
|
|
|
06/09/2011, 05:45
|
#2
|
elite*gold: 0
Join Date: Oct 2007
Posts: 10
Received Thanks: 1
|
i use this function to getInfoChar
Code:
Public Sub QuickRefreshData(ByVal ProcessID As Integer)
Dim lpBaseAdd, lpBaseAdd2, lpBaseAdd3 As Integer
Dim lpTempAddName, bValue As Integer
Try
Dim hProcess As Integer = OpenProcess(PROCESS_VM_READ, False, ProcessID)
ReadProcessMemory(hProcess, GAME_BASE_ADD, lpBaseAdd, 4, 0)
ReadProcessMemory(hProcess, lpBaseAdd + &H1C, lpBaseAdd2, 4, 0)
ReadProcessMemory(hProcess, lpBaseAdd2 + &H20, lpBaseAdd3, 4, 0)
ReadProcessMemory(hProcess, lpBaseAdd3 + OFFSET_PLAYER.Cur_HP, Cur_HP, 4, 0)
ReadProcessMemory(hProcess, lpBaseAdd3 + OFFSET_PLAYER.Max_HP, Max_HP, 4, 0)
ReadProcessMemory(hProcess, lpBaseAdd3 + OFFSET_PLAYER.Cur_MP, Cur_MP, 4, 0)
ReadProcessMemory(hProcess, lpBaseAdd3 + OFFSET_PLAYER.Max_MP, Max_MP, 4, 0)
ReadProcessMemory(hProcess, lpBaseAdd3 + OFFSET_PLAYER.Target, Target, 4, 0)
ReadProcessMemory(hProcess, lpBaseAdd3 + OFFSET_PLAYER.Name, lpTempAddName, 4, 0)
For i As Byte = 1 To 32 Step 2
ReadProcessMemory(hProcess, lpTempAddName + i - 1, bValue, 2, 0)
If bValue = 0 Then Exit For
Name += ChrW(bValue)
Next
Catch ex As Exception
WriteLog(ex.ToString, "RefreshPlayerData", "System")
End Try
End Sub
|
|
|
06/18/2011, 14:07
|
#3
|
elite*gold: 0
Join Date: Mar 2011
Posts: 33
Received Thanks: 16
|
Quote:
Originally Posted by unfaceguy
i use this function to getInfoChar
Code:
Public Sub QuickRefreshData(ByVal ProcessID As Integer)
Dim lpBaseAdd, lpBaseAdd2, lpBaseAdd3 As Integer
Dim lpTempAddName, bValue As Integer
Try
Dim hProcess As Integer = OpenProcess(PROCESS_VM_READ, False, ProcessID)
ReadProcessMemory(hProcess, GAME_BASE_ADD, lpBaseAdd, 4, 0)
ReadProcessMemory(hProcess, lpBaseAdd + &H1C, lpBaseAdd2, 4, 0)
ReadProcessMemory(hProcess, lpBaseAdd2 + &H20, lpBaseAdd3, 4, 0)
ReadProcessMemory(hProcess, lpBaseAdd3 + OFFSET_PLAYER.Cur_HP, Cur_HP, 4, 0)
ReadProcessMemory(hProcess, lpBaseAdd3 + OFFSET_PLAYER.Max_HP, Max_HP, 4, 0)
ReadProcessMemory(hProcess, lpBaseAdd3 + OFFSET_PLAYER.Cur_MP, Cur_MP, 4, 0)
ReadProcessMemory(hProcess, lpBaseAdd3 + OFFSET_PLAYER.Max_MP, Max_MP, 4, 0)
ReadProcessMemory(hProcess, lpBaseAdd3 + OFFSET_PLAYER.Target, Target, 4, 0)
ReadProcessMemory(hProcess, lpBaseAdd3 + OFFSET_PLAYER.Name, lpTempAddName, 4, 0)
For i As Byte = 1 To 32 Step 2
ReadProcessMemory(hProcess, lpTempAddName + i - 1, bValue, 2, 0)
If bValue = 0 Then Exit For
Name += ChrW(bValue)
Next
Catch ex As Exception
WriteLog(ex.ToString, "RefreshPlayerData", "System")
End Try
End Sub
|
wow thanks, it works
|
|
|
 |
Similar Threads
|
ReadProcessMemory
04/29/2011 - General Coding - 2 Replies
Habe ein gutes beispiel für pointer und offsets um internet gefunden doch leider klappt es nur bei dem programm
was auch im video war ich wollte es jetzt mal bei 4story ausprobieren nur leider geht es nicht ( private server )
hier mal das programm #include <iostream>
#include <windows.h>
using namespace std;
//---------------------------------
//Offsets
|
ReadProcessMemory From Lineage II
03/03/2011 - Lin2 Exploits, Hacks, Bots, Tools & Macros - 8 Replies
Hello, This is my second thread, and I hope someone can have some benefit from it.
Why do this? well maybe make an status bar to display health,mana, etc or
maybe you want to write data to the process, But in this article I show how to read.
First of all you need to inculde some files:
#include <Tlhelp32.h> to have access to:
|
ReadProcessMemory problem
06/10/2009 - General Coding - 4 Replies
hi,
jedes mal wenn ich ReadProcessMemory verwende kommt die zahl 1 raus. Was mache ich denn falsch.
int ReadMemory(int address)
{
int r;
FindWindow();
r = ReadProcessMemory(Process, (int*)address, &value, sizeof(value), NULL);
CloseHandle( Process );
|
[Help!!!] Delphi + Readprocessmemory
11/02/2008 - General Coding - 1 Replies
I cant seem to get read process memory working in delphi i dont know why at all either, ive googled it for like 2 hours the other night and know luck. so i figured ima try here
this is my source currently
thanks in advance for help
unit Unit1;
interface
|
ReadProcessMemory error 299
07/21/2008 - General Coding - 2 Replies
Hi,
Kriege hier immer error 299 ("Only part of a ReadProcessMemory or WriteProcessMemory request was completed."). Keine Ahnung wo dran es liegen könnte eigentlich alles richtig. WinXP 32 Prof., kein Vista..
//Speil ist hier Guild Wars
unsigned ebx1 = 0x00002C;
ph = OpenProcess(PROCESS_VM_READ, false, pid);
|
All times are GMT +1. The time now is 14:08.
|
|