kantaki How do I cheat?
Reputation: 0
Joined: 21 Nov 2011 Posts: 3
|
Posted: Mon Nov 21, 2011 2:34 pm Post subject: Simple c# memory reading problem |
|
|
Hello,
i tried to read a string from the internet explorer.
what i did :
opened ie
visited ownedcore
opened cheat engine with internet explorer as a process
text: diablo
took the first address
But i wont get a result :/
where is the mistake ?
my guess the last readmemoryprocess argument.
i had no clue what i should insert.
i hope you can help me thanks =)
Code: | private void button1_Click(object sender, EventArgs e) {
Process[] iexp = Process.GetProcessesByName("iexplore");
if (iexp.Length == 0) {
listBox1.Items.Add("NOT FOUND");
}
Process internet = iexp[0];
uint baseAddress = (uint)internet.MainModule.BaseAddress.ToInt32();
IntPtr readHandle = OpenProcess(0x0010, false, (uint)internet.Id);
byte[] bytes = new byte[24];
uint rw = 0;
uint size=sizeof(int);
ReadProcessMemory(readHandle, ((IntPtr)baseAddress + 0x0D6B058E), bytes, (UIntPtr)24, ref rw);
string Diablo = Encoding.UTF8.GetString(bytes);
ReadProcessMemory(readHandle, (IntPtr)baseAddress + 0x00528744, bytes, (UIntPtr)size, ref rw);
int someNumber = BitConverter.ToInt32(bytes, 0);
listBox1.Items.Add(Diablo);
listBox1.Items.Add(someNumber);
} |
|
|