• 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
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      forivin's Avatar
      Join Date
      Mar 2013
      Posts
      10
      Thanks (-->)
      1
      Thanks (<--)
      0

      Example code for an injection-dll please :(

      Silent VPN
      I'd like to read and write memory from within a process using dll injection.
      I wrote my injector and it works very well, but I have a hard time writing this dll. All the tutorials I found are so ... COMPLEX.
      You know, I don't need to create a windows forms window or w/e. I just want to write given values to specific addreses and show the content of other addresses in a messagebox or consolewindow.

      So what I'm asking for is a very very basic and simple code of an dll with an example of reading a memory address and writing to a memory address.
      I would really really appreciate it.

    2. #2
      Kim Kong Trasher
      I don't have status.
       
      Raging
       
      c5's Avatar
      Join Date
      Jul 2012
      Location
      Mankei Iland
      Posts
      1,221
      Thanks (-->)
      97
      Thanks (<--)
      492
      AllocConsole.

      *(data type*)address to read and write, eg

      cout << *(int*)0x1234567 << endl;

      *(int*)0x1234567 = 100;
      Example code for an injection-dll please :(

    3. #3
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      forivin's Avatar
      Join Date
      Mar 2013
      Posts
      10
      Thanks (-->)
      1
      Thanks (<--)
      0
      Well, first of all I'm impressed how super easy it seems to be to read/write within a process, but I was actually looking for a more complete sourcecode.
      I'm not very familiar with c++.

      So I created a new dll project in vc++, what would be the content of my main.cpp?
      Would it be something like this?
      Code:
      #include <iostream>
      DWORD WINAPI Main_thread( LPVOID lpParam )
      {
          cout << *(int*)0x1234567 << endl;
          *(int*)0x1234567 = 100; 
          return S_OK;
      }

    4. #4
      Kim Kong Trasher
      I don't have status.
       
      Raging
       
      c5's Avatar
      Join Date
      Jul 2012
      Location
      Mankei Iland
      Posts
      1,221
      Thanks (-->)
      97
      Thanks (<--)
      492
      Silent VPN
      Quote Originally Posted by forivin View Post
      Well, first of all I'm impressed how super easy it seems to be to read/write within a process, but I was actually looking for a more complete sourcecode.
      I'm not very familiar with c++.

      So I created a new dll project in vc++, what would be the content of my main.cpp?
      Would it be something like this?
      Code:
      #include <iostream>
      DWORD WINAPI Main_thread( LPVOID lpParam )
      {
          cout << *(int*)0x1234567 << endl;
          *(int*)0x1234567 = 100; 
          return S_OK;
      }
      Oh well.

      Code:
      AllocConsole();
      freopen("CONIN$", "r", stdin); 
      freopen("CONOUT$", "w", stdout); 
      freopen("CONOUT$", "w", stderr); 
      
      cout << "0x1234567 contains: (int)" << *(int*)0x1234567 << endl;
      *(int*)0x1234567 = 100; 
      cout << "0x1234567 now contains: (int)" << *(int*)0x1234567 << endl;
      Example code for an injection-dll please :(

    Similar Game Hacker Threads

    1. Replies: 13
      Last Post: 11-14-2014, 09:38 AM
    2. [Help] IGI2 Code Injection Error
      By GameMaster Greatee in forum C#
      Replies: 3
      Last Post: 09-17-2014, 01:36 AM
    3. [Discuss] DayZ StandAlone - ESP Hack. - Code or Injection?
      By Bunny_Code in forum Hacking Help
      Replies: 4
      Last Post: 04-01-2014, 05:04 PM
    4. DLL Injection Help
      By jksmith639 in forum Hacking Help
      Replies: 5
      Last Post: 01-06-2013, 12:08 PM

    Tags for this Thread