c# any simple memory class 32/64 bit ?
Hi, i want to find some decent easy memory class for use in 1 mmo online game 32 bit.
I want some simple memory class to read data like
is something like this exists ?
I used 1 program that worked with this game long time ago but now won't work, i don't know if its because of windows10 64 bit or something else.
Try to run VS 2017 as admin too and still don't work :$
This is code i just changed pointer + offsets and don't work
c# code
I want some simple memory class to read data like
Code:
baseAdress = 0x00499FB8; offsets[3] = [0x4, 0x24, 0x3c]; data = readMemory( targetProcess, baseAddress + offsets[] ); textBox.Text = data;
I used 1 program that worked with this game long time ago but now won't work, i don't know if its because of windows10 64 bit or something else.
Try to run VS 2017 as admin too and still don't work :$
This is code i just changed pointer + offsets and don't work

c# code
Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace test_memory
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void startbot_Click(object sender, EventArgs e)
{
test();
}
public void test()
{
Process[] processList = null;
Process targetProcess = null;
string processName = "alefclient";
// get process by name
processList = Process.GetProcessesByName(processName);
try
{
// check if process is running
if (processList == null)
{
MessageBox.Show("Process not selected.");
return;
}
else
{
byte[] buffer = new byte[4];
byte[] nameBuffer = new byte[30];
uint bytesRead = 0;
int address = Convert.ToInt32("00499FB8", 16); // base address 0x00499FB8
// offsets 0x4a4, 0x5c, 0x24, 0x4, 0x720
address = BitConverter.ToInt32(buffer, 0) + 1172; // 0x4a4
ReadProcessMemory(targetProcess.Handle, (IntPtr)address, buffer, 4, ref bytesRead);
address = BitConverter.ToInt32(buffer, 0) + 92; // 0x5c
ReadProcessMemory(targetProcess.Handle, (IntPtr)address, buffer, 4, ref bytesRead);
address = BitConverter.ToInt32(buffer, 0) + 36; // 0x24
ReadProcessMemory(targetProcess.Handle, (IntPtr)address, buffer, 4, ref bytesRead);
address = BitConverter.ToInt32(buffer, 0) + 4; // 0x4
ReadProcessMemory(targetProcess.Handle, (IntPtr)address, buffer, 4, ref bytesRead);
var targetHealth = BitConverter.ToInt32(buffer, 0) + 1824; // 0x720
ReadProcessMemory(targetProcess.Handle, (IntPtr)address, buffer, 4, ref bytesRead);
txtTargetID.Text = "Taget health " + targetHealth;
}
}
catch (Exception ex)
{
MessageBox.Show("Something went wrong, try again.");
}
}
private void ReadProcessMemory(IntPtr handle, IntPtr address, byte[] buffer, int v, ref uint bytesRead)
{
throw new NotImplementedException();
}
}
}
