• Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • At Work
  • CodenzHub
  • Coding
  • Deejaying
  • Donating
  • Drinking
  • Eating
  • Editing
  • Hacking
  • Hate Mailing
  • Jamin'
  • Lagging
  • Live Streaming
  • Lurking
  • No Status
  • Pawning
  • PC Gaming
  • PS Gaming
  • Raging
  • Reversing
  • Sleeping
  • Steam Gaming
  • Trolling
  • TwitchStreamer
  • Vodka!
  • Watching TV/Movie
  • Xbox Gaming
  • Youtuber
  • Zombies
  • Page 1 of 2 12 LastLast
    Results 1 to 10 of 15
    1. #1
      Global Moderator
      give me my colorz back
      FeelsBadMan
       
      Coding
       
      till0sch's Avatar
      Join Date
      Oct 2012
      Location
      Germany.
      Posts
      1,168
      Thanks (-->)
      179
      Thanks (<--)
      340

      C# Better Trainer Class

      John Kittz
      Here is my trainer class, which I downloaded but then added some features and now I want to share with you:

      Features:

      - Read Int8, Int16, Int32, Int64, float, double, string
      - Write Int8, Int16, Int32, Int64, float, double, string

      - Read Pointer Int8, Int16, Int32, Int64, float, double
      - Write Pointer Int8, Int16, Int32, Int64, float, double

      - Write Code Injection
      - Write Byte Array (nice for opcodes)
      - Write String
      - Write NOPs

      - Check Game availabilty (by window title)
      - Suspend and Resume Processes


      Int8=byte, with string, ASCII is meant, not Unicode.

      Credits ofc also to "Cless" of the CheatEngine forum
      (->https://forum.cheatengine.org/viewto...66e1ee329fb191)


      I thought that somebody of you would maybe need it. I also made a DLL which you can use.

      Let me know whether it worked and it useful or not


      MemoryHacking.cs:
      https://guidedhacking.com/attachment...1&d=1364413551

      MemoryHacking.dll:
      https://guidedhacking.com/attachment...1&d=1364413750

      MemoryHacking.dll Virus Scan
      https://virusscan.jotti.org/de/scanr...2ef2d4b9852ed3
      Attached Files Attached Files

    2. Thanks Crypt, Fleep, xePixTvx, lampuiho, marcie, TYPEX thanked for this post
    3. #2
      Global Moderator
      give me my colorz back
      FeelsBadMan
       
      Coding
       
      till0sch's Avatar
      Join Date
      Oct 2012
      Location
      Germany.
      Posts
      1,168
      Thanks (-->)
      179
      Thanks (<--)
      340
      Quote Originally Posted by Crypt View Post
      Sweet. Good job.
      Thanks.

      Maybe I'll work on DLL injection and somehow a memory scanner (no plan of how to do this, I'll try it)

    4. #3
      RTFM
      Shootin Pool!
       
      Coding
       
      Syperus's Avatar
      Join Date
      Oct 2012
      Location
      127.0.0.1
      Posts
      436
      Thanks (-->)
      101
      Thanks (<--)
      131
      Nice share! And thank you for properly crediting the author.
      Blacks Ops Zombies, BioShock Infinite Array of Bytes
      "People say I'm a bad influence. I say the world's already fucked, I'm just adding to it" -Eminem

    5. #4
      Global Moderator
      give me my colorz back
      FeelsBadMan
       
      Coding
       
      till0sch's Avatar
      Join Date
      Oct 2012
      Location
      Germany.
      Posts
      1,168
      Thanks (-->)
      179
      Thanks (<--)
      340
      Quote Originally Posted by Syperus View Post
      Nice share! And thank you for properly crediting the author.
      Thanks
      Of course I credit the author who wrote the most of the code (I just added some functions)

    6. #5
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      hacke21's Avatar
      Join Date
      Jun 2013
      Posts
      7
      Thanks (-->)
      2
      Thanks (<--)
      0
      Check ReadPointerInt16 in MemoryHacking.cs !

      Code:
      if (Handle != 0)
                          {
                              foreach (int i in Offset)
                              {
                                  ReadProcessMemoryInteger((int)Handle, Pointer, ref Pointer, 2, ref Bytes);
                                  Pointer += i;
                              }
                              ReadInt16(EXENAME, Pointer);
                              //ReadProcessMemoryInteger((int)Handle, Pointer, ref Value, 4, ref Bytes);
                              CloseHandle(Handle);
      should be

      Code:
       Value = ReadInt16(EXENAME, Pointer);

    7. #6
      Global Moderator
      give me my colorz back
      FeelsBadMan
       
      Coding
       
      till0sch's Avatar
      Join Date
      Oct 2012
      Location
      Germany.
      Posts
      1,168
      Thanks (-->)
      179
      Thanks (<--)
      340
      Quote Originally Posted by hacke21 View Post
      Check ReadPointerInt16 in MemoryHacking.cs !

      Code:
      if (Handle != 0)
                          {
                              foreach (int i in Offset)
                              {
                                  ReadProcessMemoryInteger((int)Handle, Pointer, ref Pointer, 2, ref Bytes);
                                  Pointer += i;
                              }
                              ReadInt16(EXENAME, Pointer);
                              //ReadProcessMemoryInteger((int)Handle, Pointer, ref Value, 4, ref Bytes);
                              CloseHandle(Handle);
      should be

      Code:
       Value = ReadInt16(EXENAME, Pointer);
      Correct sir. Thanks for reporting this, I will fix it

    8. #7
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      vmv's Avatar
      Join Date
      May 2013
      Posts
      14
      Thanks (-->)
      1
      Thanks (<--)
      2
      Hi,
      till0sch97, ...can you make this function smaller then this or combine them ...?

      private void OpenProcess()
      {
      Process[] procs = Process.GetProcessesByName("game.exe");
      if (procs.Length == 0)
      {
      MessageBox.Show("start the game first...!");
      return;
      }
      else
      {
      int dwPid = procs[0].Id; hProcess = OpenProcess(0x1F0FFF, false, dwPid);

      ProcessModuleCollection modules = procs[0].Modules; foreach (ProcessModule module in modules)
      {
      if (module.ModuleName == "game.dll")
      {
      gameBase = module.BaseAddress.ToInt32() + 0x00000000;
      }
      }
      }
      }
      private int read(int address, int[] offset)
      {
      int value = 0; int bytes = 0;
      Process[] procs = Process.GetProcessesByName("game.exe");
      if (procs.Length != 0)
      {
      IntPtr hProcess = OpenProcess(0x1F0FFF, false, dwPid);
      foreach (int i in offset)
      {
      ReadPointers(hProcess, address, ref address, 4, ref bytes);
      address += i;
      }
      ReadPointers(hProcess, address, ref value, 4, ref bytes);
      }
      return value;
      }
      //calling
      int final = read(gameBase, new int[] { 0x10, 0x20, 0x30, 0x40, 0x50 });

      //api
      [DllImport("kernel32", EntryPoint = "ReadProcessMemory")]
      private static extern int ReadPointers(IntPtr hProcess, int Address, ref int Value, int nSize, ref int BytesRead);
      [DllImport("kernel32.dll")]
      public static extern IntPtr OpenProcess(uint dwDesiredAccess, bool InheritHandle, int dwProcessId);


      Is nothing important ..just if you have time..

      Thank you,

    9. #8
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      vmv's Avatar
      Join Date
      May 2013
      Posts
      14
      Thanks (-->)
      1
      Thanks (<--)
      2
      [PHP]private int OpenProcess(int address, int[] offset)
      {
      Process[] procs = Process.GetProcessesByName("game.exe");
      if (procs.Length == 0)
      {
      MessageBox.Show("start the game first...!");
      return 1;
      }
      else
      {
      dwPid = procs[0].Id; hProcess = OpenProcess(0x1F0FFF, false, dwPid);
      ProcessModuleCollection modules = procs[0].Modules; foreach (ProcessModule module in modules)
      {
      if (module.ModuleName == "game.dll")
      {
      gameBase = module.BaseAddress.ToInt32() + 0x00000000;
      }
      }
      foreach (int i in offset)
      {
      ReadPointers(hProcess, address, ref address, 4, ref bytes);
      address += i;
      }
      ReadPointers(hProcess, address, ref value, 4, ref bytes);
      return value;
      }
      }[/PHP]

      Can be done more compact then this ?
      Anyone... ?
      This could be a good function to do more things for every newbie like me.. : open proc,get module base address, read pointers from that base address...etc etc.
      Thank you,

    10. #9
      Global Moderator
      give me my colorz back
      FeelsBadMan
       
      Coding
       
      till0sch's Avatar
      Join Date
      Oct 2012
      Location
      Germany.
      Posts
      1,168
      Thanks (-->)
      179
      Thanks (<--)
      340
      Why more compact, doesn't this work? What you basically do is getting a handle from a process name and calling ReadProcessMemory (and later on closing the handle).

    11. #10
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      vmv's Avatar
      Join Date
      May 2013
      Posts
      14
      Thanks (-->)
      1
      Thanks (<--)
      2
      Cheats'n'Trainers
      Why more compact...because it's possible..
      What i need is : open process, get remote modudle base address, read pointers from that module..
      If you write that in a normal way...you will need alot of code...but as you can see, can be done in a shorter way
      I'm not that good at C#...i'm just understanding it a bit.
      So, can be done even smaller then this ?
      It is working fine like this btw,.

      Thank you,

    Page 1 of 2 12 LastLast

    Similar Game Hacker Threads

    1. [Release] OpenGL Drawing Class
      By Solaire in forum Direct-X, OpenGL
      Replies: 7
      Last Post: 03-18-2016, 06:05 PM
    2. [Source Code] DX9 - Image Class
      By GAFO666 in forum Direct-X, OpenGL
      Replies: 2
      Last Post: 02-03-2016, 01:28 PM
    3. [Source Code] C++ VMTHook Class
      By Solaire in forum Tutorials and Snippets
      Replies: 2
      Last Post: 12-25-2015, 08:09 PM
    4. [Release] C++ Trainer Class
      By till0sch in forum C/C++
      Replies: 5
      Last Post: 11-04-2013, 03:46 PM
    5. [Trainer+Source]Bioshock Infinite +17 Trainer
      By Syperus in forum Other Game Hacks
      Replies: 14
      Last Post: 05-26-2013, 09:45 PM

    Tags for this Thread