• 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
  • Results 1 to 4 of 4
    1. #1
      Hacker
      Turning to page 394...
       
      Coding
       
      Liduen's Avatar
      Join Date
      May 2013
      Location
      Germany
      Posts
      713
      Thanks (-->)
      161
      Thanks (<--)
      225

      External Memory Patch

      John Kittz
      Hi,

      I want to change the instructions on address 0x0043BD0F in my target process from 0F85 35FFFFFF (JNE 0043BC4A) to JMP ...

      Before patching (with ollydbg):
      Click image for larger version. 

Name:	beforepatch.JPG 
Views:	8 
Size:	14.9 KB 
ID:	2523

      After patching (with ollydbg):
      Click image for larger version. 

Name:	afterpatch.JPG 
Views:	9 
Size:	13.3 KB 
ID:	2524

      I tried things like:

      int val1[5] = { 0xE9, 0x36, 0xFF, 0xFF, 0xFF};
      int val2 = 0x90;
      int aAdrWallhack[6] = {0x0043BD0F, 0x0043BD14}; // all addresses

      for(int i = 0; i < 5; i++){
      WriteProcessMemory(hProcess, (LPVOID) aAdrWallhack[0 + i], &val1[i], 1, NULL);
      }

      WriteProcessMemory(hProcess, (LPVOID) aAdrWallhack[1], &val2, 1, NULL);


      But everytime I tested it my target process crashed.
      Why doesn't it work?
      Can somebody tell me what I'm doing wrong?
      (it's my first attempt in external patching)


      EDIT -> Working code:

      int val1[5] = { 0xE9, 0x36, 0xFF, 0xFF, 0xFF};
      int val2 = 0x90;
      int aAdrWallhack[6] = {0x0043BD0F, 0x0043BD14}; // all addresses

      for(int i = 0; i < 5; i++){
      WriteProcessMemory(hProcess, (LPVOID) (aAdrWallhack[0]+i), &val1[i], 1, NULL);
      }

      WriteProcessMemory(hProcess, (LPVOID) aAdrWallhack[1], &val2, 1, NULL);


      Greetings,
      Liduen
      Last edited by Liduen; 03-21-2014 at 04:33 PM.
      My contributions
      UrbanTerror | OpenGL - ModelLogger | Polymorphic junk code | Tutorial/Article Collection
      Admiring technological singularity

    2. #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
      You're using an array aAdrWallhack with 2 elements having a value, but then refering to aAdrWallhack[5] in your loop which is 0. What you need isn't

      (LPVOID) aAdrWallhack[0 + i] but (LPVOID) (aAdrWallhack[0]+i)


      That should fix your problem else I'll take a look at the screenshots which aren't approved yet though

    3. Thanks Liduen thanked for this post
    4. #3
      Hacker
      Turning to page 394...
       
      Coding
       
      Liduen's Avatar
      Join Date
      May 2013
      Location
      Germany
      Posts
      713
      Thanks (-->)
      161
      Thanks (<--)
      225
      Ah lol what a stupid mistake xD
      Thanks!

      Yep now it works, beautiful!

      But why didn't I get any errors while compiling this?
      Nah doesn't matter anymore, it works now ^^
      Last edited by Liduen; 03-21-2014 at 04:37 PM.
      My contributions
      UrbanTerror | OpenGL - ModelLogger | Polymorphic junk code | Tutorial/Article Collection
      Admiring technological singularity

    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
      Cheats'n'Trainers
      Quote Originally Posted by Liduen View Post
      Ah lol what a stupid mistake xD
      Thanks!

      Yep now it works, beautiful!

      But why didn't I get any errors while compiling this?
      Nah doesn't matter anymore, it works now ^^
      Because it's not a syntax mistake or something, Visual Studio isn't that smart to recognize your intention and therefor whether the element was 0 or not

    Similar Game Hacker Threads

    1. [Release] k. external
      By CreepSore in forum Assault Cube Hacks
      Replies: 4
      Last Post: 05-18-2016, 08:48 AM
    2. [Help] Dumping a whole region of memory somewhere to trick a memory check
      By windows.h in forum Hacking Help
      Replies: 6
      Last Post: 02-18-2016, 09:28 AM
    3. [Discuss] Patch version?
      By d0wen in forum CS:GO Hacks
      Replies: 0
      Last Post: 10-24-2015, 12:25 AM
    4. [Help] reading string from memory adress [external]
      By Ex0rpl4net in forum C/C++
      Replies: 12
      Last Post: 09-03-2015, 06:33 PM
    5. help me Esp cs go External
      By docc in forum C/C++
      Replies: 8
      Last Post: 07-05-2015, 09:20 AM

    Tags for this Thread