Results 1 to 2 of 2
  1. #1
    devopsguy's Avatar
    Join Date
    Mar 2019
    Gender
    male
    Posts
    6
    Reputation
    10
    Thanks
    0

    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?

  2. #2
    MikeRohsoft's Avatar
    Join Date
    May 2013
    Gender
    male
    Location
    Los Santos
    Posts
    797
    Reputation
    593
    Thanks
    26,314
    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);
            }
        }
    }

Similar Threads

  1. [Help Request] Write to memory? Assault Cube Addys.
    By Renamon Toast Crunch in forum C# Programming
    Replies: 4
    Last Post: 10-29-2013, 12:20 PM
  2. [Solved] VB Read String from memory
    By waffl95 in forum Call of Duty Modern Warfare 3 Coding, Programming & Source Code
    Replies: 3
    Last Post: 12-21-2012, 05:32 AM
  3. [Help]Reading Stacks from memory using VB.net
    By euverve in forum Visual Basic Programming
    Replies: 2
    Last Post: 04-19-2011, 10:10 AM
  4. Replies: 5
    Last Post: 07-22-2009, 04:26 PM
  5. Reading from a memory address
    By isaacboy in forum Visual Basic Programming
    Replies: 0
    Last Post: 03-26-2009, 03:28 AM