Results 1 to 6 of 6
  1. #1
    sekaidown's Avatar
    Join Date
    Feb 2017
    Gender
    female
    Location
    Fortaleza - Brazil
    Posts
    5
    Reputation
    10
    Thanks
    0

    ReadProcessMemory

    I am new to "ReadProcessMemory".

    I have BaseAdress and offset.

    How do I find the adress generated?



    Using CheatEngine is easy, but in C # or C ++ I do not know.

  2. #2
    Icesycthe7's Avatar
    Join Date
    Aug 2018
    Gender
    male
    Posts
    7
    Reputation
    10
    Thanks
    0
    My Mood
    Bored
    Quote Originally Posted by sekaidown View Post
    I am new to "ReadProcessMemory".

    I have BaseAdress and offset.

    How do I find the adress generated?



    Using CheatEngine is easy, but in C # or C ++ I do not know.
    You should prolly follow some tutorials first and learn some actual code before you ask such simple questions like this, also you havent even posted any code of you trying.

  3. #3
    sekaidown's Avatar
    Join Date
    Feb 2017
    Gender
    female
    Location
    Fortaleza - Brazil
    Posts
    5
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by Icesycthe7 View Post
    You should prolly follow some tutorials first and learn some actual code before you ask such simple questions like this, also you havent even posted any code of you trying.
    I'm using an autoit code to read the memory.
    But you're using C # to do the program.
    The code is this:

    Code:
    Local $iPid = WinGetProcess("Grand Line Adventures")
    Local $iAddress = 0x0AFDE298
    
    If $iPid = -1 Then
        ConsoleWrite("+++ Failed to get process PID. Open good process or change parameter in WinGetProcess func." &    @CRLF)
        Exit
    EndIf
    
    Local $hHandle = DllCall("kernel32.dll", 'int', 'OpenProcess', 'int', 0x1F0FFF, 'int', 1, 'int', $iPid)
    
    If    @error Then
        ConsoleWrite("+++ Failed to open process memory for FULL_ACCESS. Error is " &    @error &    @CRLF)
        Exit
    EndIf
    
    Local $tagStruct = "struct;double var1;endstruct"
    
    Local $sStruct = DllStructCreate($tagStruct)
    
    If    @error Then
        ConsoleWrite("+++ Failed to create $sStruct. Error is " &    @error &    @CRLF)
        Exit
    EndIf
    
    DllCall("kernel32.dll", 'int', 'ReadProcessMemory', 'int', $hHandle[0], 'int', $iAddress, 'ptr', DllStructGetPtr($sStruct), 'int', DllStructGetSize($sStruct), 'int', '')
    
    If    @error Then
        ConsoleWrite("+++ Failed to Read Process Memory. Error is " &    @error &    @CRLF)
        Exit
    EndIf
    
    Local $vRet = DllStructGetData($sStruct, "var1")
    
    If    @error Then
        ConsoleWrite("+++ Failed to Get data from $sStruct. Error is " &    @error &    @CRLF)
        Exit
    EndIf
    
    ConsoleWrite("++ Successfully read memory at addr 0x" & Hex($iAddress) & " value is " & $vRet &    @CRLF)
    The code read only the generated address.
    I wanted to calculate the + offset address to find the generated address and use this code.

    I'm a little new in C #.
    I always used VB because it was almost everything visual.
    Last edited by sekaidown; 03-05-2019 at 04:52 PM.

  4. #4
    Azuki's Avatar
    Join Date
    Mar 2015
    Gender
    female
    Location
    京都市
    Posts
    1,110
    Reputation
    195
    Thanks
    20,161
    My Mood
    Angelic
    Quote Originally Posted by sekaidown View Post
    -snip-
    you very clearly don't know what you're doing, please refer to the basics of game hacking and programming

    BTC: 1LLm4gaPYCZsczmi8n1ia1GsEMsDRs2ayy
    ETH: 0x7d8045F6e452045439c831D09BAB19Bf9D5263EE



  5. #5
    PythonMishap's Avatar
    Join Date
    Mar 2019
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0
    The guy that made deluxeviewbot,net said he used these processes to manipulate twitch's API's into making artificial viewers with python AI. Idk how to help you but ima research this a bit and see if I can get an answer for you.

  6. #6
    XoXlonG's Avatar
    Join Date
    Sep 2019
    Gender
    male
    Posts
    22
    Reputation
    10
    Thanks
    0
    Thanks for the useful info

Similar Threads

  1. [Tutorial] ReadProcessMemory
    By aanthonyz in forum C++/C Programming
    Replies: 27
    Last Post: 07-30-2016, 06:05 AM
  2. [Source Code] C# WriteProcessMemory/ReadProcessMemory
    By Kantanomo in forum C# Programming
    Replies: 10
    Last Post: 09-03-2012, 04:21 PM
  3. [Help] ReadProcessMemory - Read 8 byte [solved]
    By pyton789 in forum Visual Basic Programming
    Replies: 7
    Last Post: 09-18-2011, 07:49 AM
  4. ReadProcessMemory
    By Void in forum C++/C Programming
    Replies: 17
    Last Post: 04-03-2010, 07:12 AM
  5. Write/ReadProcessMemory errors
    By Dragonion in forum General Game Hacking
    Replies: 0
    Last Post: 09-23-2008, 08:11 AM