Can someone make a VB.net (c++) or C# Tutorial, In this tutorial i want the MemoryWrite
I am not only the person who want to learn this, I wanna share this in my FB account =)
and Thanks
Can someone make a VB.net (c++) or C# Tutorial, In this tutorial i want the MemoryWrite I am not only the person who want to learn this, I wanna share this in my FB account =)
and Thanks
Using Google, just by typing "vb net gamehacking", I found dozens of tutorials.
Maybe just try using Google first, before asking?
Here is a C# class that can be used to edit integers in the memory, its an incomplete class im working on.
Code:
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Runtime.InteropServices;
namespace Namespace
{
public class MemoryManager
{
[DllImport("kernel32.dll", SetLastError = true)]
private static extern IntPtr OpenProcess(UInt32 dwDesiredAccess, Int32 bInheritHandle, Int32 dwProcessId);
[DllImport("kernel32.dll")]
public static extern Int32 CloseHandle(IntPtr hObject);
[DllImport("kernel32.dll", SetLastError = true)]
public static extern Int32 ReadProcessMemory(IntPtr hProcess, IntPtr lpBaseAddress, [Out] byte[] buffer, uint size, IntPtr lpNumberOfBytesRead);
[DllImport("kernel32.dll", SetLastError = true)]
public static extern bool WriteProcessMemory(IntPtr hProcess, IntPtr lpBaseAddress, byte[] lpBuffer, uint nSize, IntPtr lpNumberOfBytesWritten);
Process process;
IntPtr baseAddress;
int AddressLength;
int ProcessID;
IntPtr LinkHandle;
public MemoryManager(string ProcessName)
{
process = Process.GetProcessesByName(ProcessName)[0];
baseAddress = process.MainModule.BaseAddress;
AddressLength = process.MainModule.ModuleMemorySize;
ProcessID = process.Id;
LinkHandle = OpenProcess(0x001F0FFF, 1, ProcessID);
if (LinkHandle == IntPtr.Zero)
throw new Win32Exception(Marshal.GetLastWin32Error());
}
public void Dispose()
{
process.Dispose();
CloseHandle(LinkHandle);
}
public uint ReadUInt(uint Address)
{
byte[] buffer = new byte[4];
if (ReadProcessMemory(LinkHandle, (IntPtr)Address, buffer, (uint)buffer.Length, IntPtr.Zero) == 0)
throw new Win32Exception(Marshal.GetLastWin32Error());
return BitConverter.ToUInt32(buffer, 0);
}
public byte[] ReadBytes(int Address, int byteCount)
{
byte[] buffer = new byte[byteCount];
if (ReadProcessMemory(LinkHandle, (IntPtr)Address, buffer, (uint)buffer.Length, IntPtr.Zero) == 0)
throw new Win32Exception(Marshal.GetLastWin32Error());
return buffer;
}
public double ReadDouble(int Address)
{
byte[] buffer = new byte[8];
if (ReadProcessMemory(LinkHandle, (IntPtr)Address, buffer, (uint)buffer.Length, IntPtr.Zero) == 0)
throw new Win32Exception(Marshal.GetLastWin32Error());
return BitConverter.ToInt64(buffer, 0);
}
public void WriteUInt(uint Address, uint Value)
{
if (!WriteProcessMemory(LinkHandle, (IntPtr)Address, BitConverter.GetBytes(Value), 4, IntPtr.Zero))
throw new Win32Exception(Marshal.GetLastWin32Error());
}
}
}
You can use the class like this:
Code:
//fill in the process you want to hack
MemoryManager memoryManager = new MemoryManager("ProcessName");
//read an integer from the provided memory address
uint value = memoryManager.ReadUInt(0x009D3FD0);
//write an integer to the provided address
memoryManager.WriteUInt(0x009D3FD0, 123);
//dispose the manager
memoryManager.Dispose();
But as i said before its not complete, but you never really asked for anything specific.
[REQUEST] Tetris Battle Hack Tutorial 02/24/2012 - Facebook - 1 Replies Can someone please make or teach us how to make their own Hack/cheat in Tetris Battle.
[Request] A Video Tutorial on the injection hack 01/02/2012 - Flyff Hacks, Bots, Cheats, Exploits & Macros - 8 Replies Hey i am Wondering if somebody could make a video tutorial on how to install/download and use this injection hack because the way its described sounds like the best hack i have ever heard of haha. i would very much love for myself and others to use this hack but there has been difficulties in people using this hack. thanks ^^
REQUEST tutorial for ranhe hack for archer with CE 06/19/2011 - Shaiya - 0 Replies Hi, ive have been trying to do the range hack with the buff for archer with CE but it never works so i was hoping someone could post a tutorial because the person who wrote the other tutorial wasnt even english.........
1 Hit Hack Cheat Engine Tutorial Request 05/27/2010 - Metin2 - 1 Replies Hi there,
I know how to change Atk Speed, Mov Speed, Range & Type Weapon with CE
But i have never find the way to get the 1hit hack like Multihacks.
Someone can teach me how to get it with Cheat Engine ???
Thanks
[Request]Vac hack tutorial 02/08/2010 - 12Sky2 - 3 Replies thx a lot for sharing^^
ps.i do many way but can't vac
so plz teach me
sorry for my english*-*