Assault cube read from memory

Posts 12 of 2 · Page 1 of 1
Assault cube read from memory
I am new to hacking with prior experience in programming (mostly python).

I have the permanent (green) memory address of Ammo / Bullets for assault cube (used cheat engine).

1. I want to read the number of bullets from the memory / address and display it in console
2. The next step would mostly be writing to that address and add more bullets

I want to do it using C#, without using vamemory.

Can somebody please guide me?
https://www.mpgh.net/forum/showthread.php?t=1404542

Code:
using System;
namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
        	const UInt64 OFFSET = 0x0;
            Memory AC = new Memory("ac_client");
            const int bulletCount = AC.Read<int>(AC.getBaseAddress() + OFFSET);
            Console.WriteLine(bulletCount);
            AC.Write<int>(AC.getBaseAddress() + OFFSET, bulletCount + 1);
        }
    }
}
Posts 12 of 2 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?