Results 1 to 5 of 5

Hybrid View

  1. #1
    topoedits's Avatar
    Join Date
    Apr 2014
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0

    BO2 Zombies Need Code Example

    I am new to this and I was wondering if I could pass a code visual basic simple as get an amount of money in black ops zombies 2 thank you.

  2. #2
    dtx12's Avatar
    Join Date
    Mar 2013
    Gender
    male
    Posts
    145
    Reputation
    10
    Thanks
    1,853
    It's fairly easy.
     
    Code:
    internal static class Utils
        {
            [DllImport("kernel32.dll")]
            private static extern IntPtr OpenProcess(uint dwDesiredAccess, bool bInheritHandle, int dwProcessId);
    
            [DllImport("kernel32.dll")]
            private static extern bool ReadProcessMemory(IntPtr hProcess, int lpBaseAddress, [Out] byte[] lpBuffer, int dwSize, [Out] int lpNumberOfBytesRead);
    
            [DllImport("kernel32.dll")]
            private static extern bool WriteProcessMemory(IntPtr hProcess, int lpBaseAddress, byte[] lpBuffer, uint nSize, [Out] int lpNumberOfBytesWritten);
    
            private static IntPtr handle;
            private const int bytes = 0;
    
            public static void ConnectToGame()
            {
                Process t6zm = Process.GetProcessesByName("t6zm").FirstOrDefault();
                if (t6zm != null)
                    handle = OpenProcess(0x1f0fff, false, t6zm.Id);
            }
    
            public static void WriteInt(int pointer, int value)
            {
                WriteProcessMemory(handle, pointer, BitConverter.GetBytes(value), 4, bytes);
            }
    
            public static int ReadInt(int pointer)
            {
                var buffer = new byte[4];
                ReadProcessMemory(handle, pointer, buffer, 4, bytes);
                return BitConverter.ToInt32(buffer, 0);
            }
        }
    Code:
    internal class Client
        {
            private int Index;
            private const int gClients = 0x23427A0;
            private const int clientSize = 0x57f8;
    
            private int currentClient
            {
                get { return gClients + Index*clientSize; }
            }
    
            public Client(int index)
            {
                Index = index;
            }
    
            public int Money
            {
                get { return Utils.ReadInt(currentClient + 0x55C8); }
                set { Utils.WriteInt(currentClient + 0x55C8, value); }
            }
        }
    Then you can do just:
    Code:
     Utils.ConnectToGame();
                var client = new Client(0);
    client.Money = 100000;
    Console.WriteLine(client.Money);

  3. The Following User Says Thank You to dtx12 For This Useful Post:

    topoedits (10-25-2014)

  4. #3
    topoedits's Avatar
    Join Date
    Apr 2014
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by dtx12 View Post
    It's fairly easy.
     
    Code:
    internal static class Utils
        {
            [DllImport("kernel32.dll")]
            private static extern IntPtr OpenProcess(uint dwDesiredAccess, bool bInheritHandle, int dwProcessId);
    
            [DllImport("kernel32.dll")]
            private static extern bool ReadProcessMemory(IntPtr hProcess, int lpBaseAddress, [Out] byte[] lpBuffer, int dwSize, [Out] int lpNumberOfBytesRead);
    
            [DllImport("kernel32.dll")]
            private static extern bool WriteProcessMemory(IntPtr hProcess, int lpBaseAddress, byte[] lpBuffer, uint nSize, [Out] int lpNumberOfBytesWritten);
    
            private static IntPtr handle;
            private const int bytes = 0;
    
            public static void ConnectToGame()
            {
                Process t6zm = Process.GetProcessesByName("t6zm").FirstOrDefault();
                if (t6zm != null)
                    handle = OpenProcess(0x1f0fff, false, t6zm.Id);
            }
    
            public static void WriteInt(int pointer, int value)
            {
                WriteProcessMemory(handle, pointer, BitConverter.GetBytes(value), 4, bytes);
            }
    
            public static int ReadInt(int pointer)
            {
                var buffer = new byte[4];
                ReadProcessMemory(handle, pointer, buffer, 4, bytes);
                return BitConverter.ToInt32(buffer, 0);
            }
        }
    Code:
    internal class Client
        {
            private int Index;
            private const int gClients = 0x23427A0;
            private const int clientSize = 0x57f8;
    
            private int currentClient
            {
                get { return gClients + Index*clientSize; }
            }
    
            public Client(int index)
            {
                Index = index;
            }
    
            public int Money
            {
                get { return Utils.ReadInt(currentClient + 0x55C8); }
                set { Utils.WriteInt(currentClient + 0x55C8, value); }
            }
        }
    Then you can do just:
    Code:
     Utils.ConnectToGame();
                var client = new Client(0);
    client.Money = 100000;
    Console.WriteLine(client.Money);
    What format to use? is that I am new to this I just be programmed java and .php
    Attached Thumbnails Attached Thumbnails
    cWeEUZk.png  


  5. #4
    dtx12's Avatar
    Join Date
    Mar 2013
    Gender
    male
    Posts
    145
    Reputation
    10
    Thanks
    1,853
    Quote Originally Posted by topoedits View Post
    What format to use? is that I am new to this I just be programmed java and .php
    I've attached a Visual Studio project.
    https://www.virustotal.com/en/file/5...is/1414239645/
    https://virusscan.jotti.org/en/scanre...02e6ef24537b5b
    <b>Downloadable Files</b> Downloadable Files
    Last edited by Lovroman; 10-25-2014 at 06:21 AM.

  6. The Following User Says Thank You to dtx12 For This Useful Post:

    topoedits (10-25-2014)

  7. #5
    Necktof87's Avatar
    Join Date
    Jan 2014
    Gender
    male
    Location
    On my bike
    Posts
    306
    Reputation
    12
    Thanks
    475
    My Mood
    Amazed
    Search on youtube how to make a hack using cheat engine. Follow it, you will understand it.

Similar Threads

  1. What does MPGH need coded?
    By Faith in forum General
    Replies: 16
    Last Post: 05-16-2010, 02:23 AM
  2. [Info] DLL HACK READY! NEED CODE!
    By bug_NOT_ME in forum Combat Arms Hacks & Cheats
    Replies: 26
    Last Post: 09-21-2009, 11:14 AM
  3. [Preview] AFK Bot V1. Need Coding Assistance.
    By User1 in forum Combat Arms Hacks & Cheats
    Replies: 23
    Last Post: 08-26-2009, 12:06 AM
  4. Need Code's Plz
    By GenX in forum Trade Accounts/Keys/Items
    Replies: 2
    Last Post: 03-13-2009, 12:36 PM
  5. Need Codes And ADDY,s
    By ._boky_. in forum WarRock - International Hacks
    Replies: 0
    Last Post: 07-04-2008, 09:18 AM