• 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 4 123 ... LastLast
    Results 1 to 10 of 32
    1. #1
      Jr.Coder
      Learning to hack games!
       
      Feeling Normal
       
      VDV777's Avatar
      Join Date
      Mar 2013
      Posts
      92
      Thanks (-->)
      38
      Thanks (<--)
      0

      c++/write and read memory \ cycle. Help please

      Silent VPN
      There is array of bytes 11 05 AB FF FF FF (for example).
      Need:
      You must create a cycle. Which will find all the addresses on the array of bytes. And add an offset "+ 20" (once) to the found addresses. And then found addresses with offset "+ 20". Constantly (cycle) equate to the value 0х1452AB address. (For example).
      It can be done?

      Please Help.

      I used this write\read code.
      Code:
      template<class T> T ReadMemory (DWORD address)
      {
      	static char buffer [1024];
      	HANDLE proc_handle = OpenProcess (PROCESS_ALL_ACCESS , false , pID);
      	if (!ReadProcessMemory(proc_handle , (LPCVOID)address , &buffer , sizeof(buffer), NULL))
      	CloseHandle (proc_handle);
      	return reinterpret_cast<T> (buffer);
      }
      Code:
      template<class T> void WriteMemory (DWORD address , T value)
      {
      	HANDLE proc_handle = OpenProcess (PROCESS_ALL_ACCESS , false , pID);
      	if (!WriteProcessMemory(proc_handle , (LPVOID)address , &value , sizeof(value), NULL))
      	CloseHandle (proc_handle);
      	
      }
      Please Help with source code

    2. #2
      Respected Hacker
      Learning to hack games!
       
      Coding
       
      till0sch's Avatar
      Join Date
      Oct 2012
      Location
      Germany.
      Posts
      1,168
      Thanks (-->)
      179
      Thanks (<--)
      340
      Quote Originally Posted by VDV777 View Post
      There is array of bytes 11 05 AB FF FF FF (for example).
      Need:
      You must create a cycle. Which will find all the addresses on the array of bytes. And add an offset "+ 20" (once) to the found addresses. And then found addresses with offset "+ 20". Constantly (cycle) equate to the value 0х1452AB address. (For example).
      It can be done?

      Please Help.
      #
      Sorry I dont know what you mean. If you have a static ptr with an offet you'll first have to read the value in the ptr itself, then add your offset and read that value again to get the value..

    3. #3
      Jr.Coder
      Learning to hack games!
       
      Feeling Normal
       
      VDV777's Avatar
      Join Date
      Mar 2013
      Posts
      92
      Thanks (-->)
      38
      Thanks (<--)
      0
      Quote Originally Posted by till0sch97 View Post
      #
      Sorry I dont know what you mean. If you have a static ptr with an offet you'll first have to read the value in the ptr itself, then add your offset and read that value again to get the value..
      sory , i bad know English.
      I meen:
      Attachment 1826
      search array of bytes " 03 00 00 11 FF FF FF FF" - found 10 addresses (for example in CE ) - in c++ "Cycle, constantly finds addresses on the array."

      then add offsets to found addresses(once):
      address 1 + 20 , addreess 2 +20 , address 3 +20 , address 4 +20 , etc.

      then
      value of "address 1 with offsets 20" = value of address address 0x1234567 (for example) , value of "address 2 with offsets 20" = value of address address 0x1234567 , value of "address 3 with offsets 20" = value of address address 0x1234567 , ets....

      For example on 1 address:
      search array of bytes 03 00 00 11 FF FF FF FF(cycle)
      found address 0x1234567(cycle)
      to address 0x134567 add offset "+20"(once) = address "0x1234567+20"
      address "0x1234567+20" = address 0x7777777 (cycle)

    4. #4
      Respected Hacker
      Learning to hack games!
       
      Coding
       
      till0sch's Avatar
      Join Date
      Oct 2012
      Location
      Germany.
      Posts
      1,168
      Thanks (-->)
      179
      Thanks (<--)
      340
      Quote Originally Posted by VDV777 View Post
      sory , i bad know English.
      I meen:
      Attachment 1826
      search array of bytes " 03 00 00 11 FF FF FF FF" - found 10 addresses (for example in CE ) - in c++ "Cycle, constantly finds addresses on the array."

      then add offsets to found addresses(once):
      address 1 + 20 , addreess 2 +20 , address 3 +20 , address 4 +20 , etc.

      then
      value of "address 1 with offsets 20" = value of address address 0x1234567 (for example) , value of "address 2 with offsets 20" = value of address address 0x1234567 , value of "address 3 with offsets 20" = value of address address 0x1234567 , ets....

      For example on 1 address:
      search array of bytes 03 00 00 11 FF FF FF FF(cycle)
      found address 0x1234567(cycle)
      to address 0x134567 add offset "+20"(once) = address "0x1234567+20"
      address "0x1234567+20" = address 0x7777777 (cycle)
      You mean to scan process with C++? To find a byte array which isnt static?

    5. #5
      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
      Yes it can be done, but I advise not to use ReadProcessMemory with it, it will be quite slow.
      c++/write and read memory \ cycle. Help please

    6. #6
      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
      Quote Originally Posted by till0sch97 View Post
      You mean to scan process with C++? To find a byte array which isnt static?
      Apparently yep
      c++/write and read memory \ cycle. Help please

    7. #7
      Jr.Coder
      Learning to hack games!
       
      Feeling Normal
       
      VDV777's Avatar
      Join Date
      Mar 2013
      Posts
      92
      Thanks (-->)
      38
      Thanks (<--)
      0
      Quote Originally Posted by till0sch97 View Post
      You mean to scan process with C++? To find a byte array which isnt static?
      yes........

    8. #8
      Jr.Coder
      Learning to hack games!
       
      Feeling Normal
       
      VDV777's Avatar
      Join Date
      Mar 2013
      Posts
      92
      Thanks (-->)
      38
      Thanks (<--)
      0
      Quote Originally Posted by c5 View Post
      Yes it can be done, but I advise not to use ReadProcessMemory with it, it will be quite slow.
      What if you could advise and help with the source code?

    9. #9
      Respected Hacker
      Learning to hack games!
       
      Coding
       
      till0sch's Avatar
      Join Date
      Oct 2012
      Location
      Germany.
      Posts
      1,168
      Thanks (-->)
      179
      Thanks (<--)
      340
      Quote Originally Posted by VDV777 View Post
      What if you could advise and help with the source code?
      Wow I think scanning that whole process is a bit much and I dont think that it is easy.. Mh and you can't find a pointer? Or did I missunterstood your intention?

    10. #10
      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
      He's trying to scan for a pattern externally with ReadProcessMemory. Probably he could find a pointer but just wants the whole process to be dynamic rather than hardcoded
      c++/write and read memory \ cycle. Help please

    Page 1 of 4 123 ... LastLast

    Similar Game Hacker Threads

    1. [Help] C++ Read Write Memory
      By fx705HUJX0 in forum C/C++
      Replies: 7
      Last Post: 03-31-2016, 01:43 PM
    2. [Help] How to make Kernel Mode Read/Write Process Memory?
      By skythen in forum C/C++
      Replies: 17
      Last Post: 02-21-2015, 08:30 PM
    3. [Help] DLL injection read/write memory
      By BDKPlayer in forum Hacking Help
      Replies: 12
      Last Post: 07-16-2014, 11:29 AM
    4. [Help] Read / Write
      By Vultrax in forum Visual Basic
      Replies: 7
      Last Post: 03-07-2014, 12:16 PM
    5. Memory Class (Read/Write) ?
      By forivin in forum C/C++
      Replies: 3
      Last Post: 10-16-2013, 02:50 AM

    Tags for this Thread