Go Back   UnKnoWnCheaTs - Multiplayer Game Hacking and Cheats

  • Hack Stuff in C# (VB/C#.NET) Hack Stuff in C# (VB/C#.NET)
    sponsored advertisements
    Reply
     
    Thread Tools

    Hack Stuff in C# (VB/C#.NET)
    Old 28th January 2009, 10:54 AM   #1
    d1gitalSLR
    Supreme H4x0|2

    d1gitalSLR's Avatar

    Join Date: Sep 2008
    Location: London, UK
    Posts: 611
    Reputation: 5862
    Rep Power: 391
    d1gitalSLR DEFINES UNKNOWNCHEATSd1gitalSLR DEFINES UNKNOWNCHEATSd1gitalSLR DEFINES UNKNOWNCHEATSd1gitalSLR DEFINES UNKNOWNCHEATSd1gitalSLR DEFINES UNKNOWNCHEATSd1gitalSLR DEFINES UNKNOWNCHEATSd1gitalSLR DEFINES UNKNOWNCHEATSd1gitalSLR DEFINES UNKNOWNCHEATSd1gitalSLR DEFINES UNKNOWNCHEATSd1gitalSLR DEFINES UNKNOWNCHEATSd1gitalSLR DEFINES UNKNOWNCHEATS
    Points: 25,392, Level: 22
    Points: 25,392, Level: 22 Points: 25,392, Level: 22 Points: 25,392, Level: 22
    Level up: 93%, 108 Points needed
    Level up: 93% Level up: 93% Level up: 93%
    Activity: 0%
    Activity: 0% Activity: 0% Activity: 0%
    Last Achievements Hack Stuff in C# (VB/C#.NET)Hack Stuff in C# (VB/C#.NET)Hack Stuff in C# (VB/C#.NET)Hack Stuff in C# (VB/C#.NET)
    Arrow Hack Stuff in C# (VB/C#.NET)

    This is my first tutorial for Unknown Cheats, the people here are so nice.

    So heres me giving back.

    http://www.codeproject.com/KB/trace/...oryreader.aspx

    That is a good read to get you started with the MemoryProcessReaderLib

    It has a hook and its pre-setup to call the Win32 C++ WriteProcessMemory and ReadProcessMemory.

    Now for the start of your class. You will need to add these using Statements.

    Code:
    using System.Diagnostics;
    using ProcessMemoryReaderLib;
    At the beginning of your partial class (if you are doing this in a windows form) add these:

    Code:
    ProcessMemoryReader Reader = new ProcessMemoryReader();
    Process[] MyProcess = Process.GetProcessesByName("GAME");// Do Not Include the .exe part
    ProcessModule mainModule;
    int GAMEBaseAddress; // Base Address
    int bytesReadSize; // out Value not used
    Where ever you have your C# dll or Form in my case loaded add code like this.
    Code:
    private void Form1_Load(object sender, EventArgs e)
            {
                try
                {
                    mainModule = MyProcess[0].MainModule;
                    GAMEBaseAddress = (int)mainModule.BaseAddress;//get base address
                    Reader.ReadProcess = MyProcess[0];
                    Reader.OpenProcess();
                }
                catch (Exception)
                {
                    MessageBox.Show("Please Start GAMENAME\nBefore running this hack.", "Error: 120");//dont run unles the game is running
                    Application.Exit();
                }
            }
    Now you are able to do what ever you would nomally do in C++, just with a twist.

    For something like a loop on its own thread I would reccomend Timers set to around 100-200ms.

    For an example I will just use a button to make things simpler:
    Code:
    byte[] health;
    health = Reader.ReadProcessMemory((IntPtr)(GAMEBaseAddress + 0xA3DA3C), 4, out bytesReadSize);
    It follows this, ReadProcessMemory((IntPtr)(Address), sizeof, out bytesReadSize);

    For Writeprocessmemory its simple the same.
    Code:
    Reader.WriteProcessMemory((IntPtr)(GAMEBaseAddress + 0x75D534), BitConverter.GetBytes((float)10), out bytesReadSize); // Writes a int32, BitConverter Converts it to a byte array which can be writen.
    WriteProcessMemory Follows this ((IntPtr)Address, Value2Write, out BytesReadSize)

    You can do many diffrent types of pointers with this simple method aswell, I am not 100% sure how to do pointers but this method works just fine.

    Code:
    int pointer1 = BitConverter.ToInt32(Reader.ReadProcessMemory((IntPtr)(GAMEBaseAddress + 0xA3DA3C), 4, out bytesReadSize), 0);
    Reader.WriteProcessMemory((IntPtr)(pointer1 + 0x75D5E8), BitConverter.GetBytes((float)8), out bytesReadSize);
    I hope this helps someone, Thank you Unknown-Cheats for helping me with an assortment of C++ problems (I'm not too perfect with C++ like I am with C#)
    d1gitalSLR is offline
    Reply With Quote

    Old 1st February 2009, 10:19 AM   #2
    TeNsIOn
    A God

    TeNsIOn's Avatar

    Join Date: Nov 2008
    Posts: 183
    Reputation: 0
    Rep Power: 0
    TeNsIOn has a near-average in quality posting ability
    Nice effort.
    TeNsIOn is offline
    Reply With Quote

    Old 1st February 2009, 06:11 PM   #3
    Stevepwns
    A Legend

    Stevepwns's Avatar

    Join Date: Feb 2007
    Posts: 262
    Reputation: 608
    Rep Power: 422
    Stevepwns has Private Hacks You Want!Stevepwns has Private Hacks You Want!Stevepwns has Private Hacks You Want!Stevepwns has Private Hacks You Want!Stevepwns has Private Hacks You Want!Stevepwns has Private Hacks You Want!
    Recognitions Members who have contributed financial support towards UnKnoWnCheaTs. Donator (1)
    Award symbolizing a retired staff member who dedicated a notable amount of time and effort to their past staff position. Former Staff
    very nice, +1 thanks for the contribution
    __________________
    (\_/)
    (O.o)
    (> <)
    This is [UC Bunny]. Copy [UC Bunny] into your signature to help him on his way to world domination :]
    Stevepwns is offline
    Reply With Quote

    Old 20th March 2009, 07:48 PM   #4
    Anasha
    Junior Member

    Anasha's Avatar

    Join Date: Sep 2008
    Posts: 48
    Reputation: 106
    Rep Power: 0
    Anasha is officially drafted by UCAnasha is officially drafted by UC
    GJ Dude. +1 rep
    Anasha is offline
    Reply With Quote

    Old 21st March 2009, 10:41 AM   #5
    JoshRose
    retired moderator

    JoshRose's Avatar

    Join Date: Nov 2007
    Posts: 1,370
    Reputation: 2308
    Rep Power: 416
    JoshRose is a legend in the cheating communityJoshRose is a legend in the cheating communityJoshRose is a legend in the cheating communityJoshRose is a legend in the cheating communityJoshRose is a legend in the cheating communityJoshRose is a legend in the cheating communityJoshRose is a legend in the cheating communityJoshRose is a legend in the cheating communityJoshRose is a legend in the cheating communityJoshRose is a legend in the cheating communityJoshRose is a legend in the cheating community
    Recognitions Award symbolizing a retired staff member who dedicated a notable amount of time and effort to their past staff position. Former Staff
    Good, but could do with some more comments aboout the code, rather than just "Paste this after" if you see what i mean.

    +rep anyway
    JoshRose is offline
    Reply With Quote
    Reply


    Similar Threads
    Thread Thread Starter Forum Replies Last Post
    [Discuss] Some stuff leaked from a pay hack site for Killing Floor d2hacker88 Other FPS Games 1 16th January 2011 07:40 AM
    [Information] 3D stuff botex General Graphics 17 29th November 2010 11:53 AM
    [Help] Help with C++ and stuff! wildgreg0012 Programming for Beginners 3 1st May 2009 09:20 PM
    New To This Stuff Nunzio CounterStrike 1.5, 1.6 and Mods 3 9th July 2004 11:02 PM

    Tags
    hack, stuff, vb or c#net


    Forum Jump


    All times are GMT. The time now is 07:46 PM.

    Contact Us - Toggle Dark Theme
    Terms of Use Information Privacy Policy Information
    Copyright ©2000-2024, Unknowncheats™
    Hack Stuff in C# (VB/C#.NET) Hack Stuff in C# (VB/C#.NET)
    sponsored advertisement
    no new posts