Results 1 to 4 of 4
  1. #1
    defaulto's Avatar
    Join Date
    Aug 2017
    Gender
    male
    Posts
    461
    Reputation
    427
    Thanks
    347
    My Mood
    Angelic

    Question C# (VAMemory) - Reading/Writing to Addresses [SOLVED]

    So I tought that I could write a small Program which is changing currently only 1 Value (Health) in the Game Memory.
    Since I was new to this topic I looked it up on several Platforms and found out that many are using the VAMemory Library. Source
    So I choosed to use it. It looked like to be simple and not that complex like those basic technicues.

    A few Days before this I found the Addresses which I tought I would definetly need. I found those static ones pretty fast (for my "skill" level). So I started to look for other Sources (to see how they actually made it). Since my knowledge on those things isn't that great i got lost within my own coding lines.
    Long Story. Now to the problem.

    I don't know how to include "mono.dll" + 00267618 to an int so it works as the BaseAddress. Since how i made it till now didn't work. Others used the Address which is getting leaded by the Pointer at the Top (3618B364) and add to it the Offsets. Since that one is always changing i can't use it. Maybe i just forgot one important thing which i don't know yet.

    Hope i could get some help on that one. I would really appreciate it.
    (Probably I got tons of mistakes in the Grammar, Spelling, Informations, etc. You may correct me if you want to ^^)

    -@




    Last edited by defaulto; 08-16-2018 at 08:44 AM. Reason: [SOLVED]

  2. #2
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,976
    Reputation
    343
    Thanks
    4,320
    My Mood
    Cheeky
    Code:
    Process process = Process.GetProcessesByName("process")[0];
    for (int i = 0; i < process.Modules.Count; i++)
    {
        if (process.Modules[i].ModuleName == "mono.dll")
        {
            baseAddress = process.Modules[i].BaseAddress;
        }
    }
    Hope that helps. written in notepad so can't confirm if it works
    Ah we-a blaze the fyah, make it bun dem!

  3. The Following User Says Thank You to Hell_Demon For This Useful Post:

    defaulto (08-16-2018)

  4. #3
    Threadstarter
    Team Ehrenlos Co-Founder
    Premium Member
    defaulto's Avatar
    Join Date
    Aug 2017
    Gender
    male
    Posts
    461
    Reputation
    427
    Thanks
    347
    My Mood
    Angelic
    Yup thank you really much. Finally worked. I have first had some problems since your Code gave me some Errors. But i have understand the code behind it and wrote my own one based on yours. Took me around a half hour but i finally found the solution because of you


  5. #4
    Venipa's Avatar
    Join Date
    Jan 2015
    Gender
    male
    Posts
    11
    Reputation
    10
    Thanks
    100
    My Mood
    Doh
    i recommend to use MemorySharp its probably a better alternative to VAMemory

  6. The Following User Says Thank You to Venipa For This Useful Post:

    defaulto (11-03-2018)

Similar Threads

  1. [Help Request] Address Read/Write Help
    By SchimmelJoghurt in forum Call of Duty Ghosts Discussions & Help
    Replies: 11
    Last Post: 11-20-2013, 03:26 PM
  2. [Help] Memory editing (Read/Write Process Memory)
    By wolfguardiann in forum Visual Basic Programming
    Replies: 31
    Last Post: 06-04-2011, 03:23 AM
  3. [Help] Read & write text file like:NAME1, LINK[Solved]
    By shotyoudie in forum Visual Basic Programming
    Replies: 6
    Last Post: 02-05-2011, 12:58 PM
  4. Writing to address based on offset?
    By Muu in forum C++/C Programming
    Replies: 21
    Last Post: 12-06-2010, 07:16 PM
  5. [Source Help]Read/Write Text[Solved]
    By Samueldo in forum Visual Basic Programming
    Replies: 4
    Last Post: 04-05-2010, 10:17 AM