Thread: C# Hack Example

Results 1 to 5 of 5
  1. #1
    Antrix2k's Avatar
    Join Date
    Mar 2013
    Gender
    male
    Posts
    13
    Reputation
    10
    Thanks
    0

    C# Hack Example

    Hi all! Can anyone write (upload) sources of simple GTA Online C# Hack (wanted level for example)?

  2. #2
    Antrix2k's Avatar
    Join Date
    Mar 2013
    Gender
    male
    Posts
    13
    Reputation
    10
    Thanks
    0
    I've found a tutor. There is a ready two classes:
    CheatEngine.Win32
    CheatEngine.Memory

    Here is the link - matejtomcik . com/Download/?n=CheatEngineCSharpHelpers

    Code:
    namespace Trainer 
    { 
        public partial class Form1 : Form 
        {            
            public Form1() 
            { 
                InitializeComponent();            
            } 
    
            private void Form1_Load(object sender, EventArgs e) 
            { 
    
            } 
    
            private void button1_Click(object sender, EventArgs e) 
            { 
                Process[] processes = Process.GetProcessesByName("GTA5"); 
                if (processes.Length > 0) 
                { 
                    using (Utilities.Memory memory = new Utilities.Memory(processes[0])) 
                    {                    
                        IntPtr address = memory.GetAddress("GTA5.exe+02399160+5d8"); 
                        memory.ReadUInt32(address); 
                        MessageBox.Show(address.ToString()); 
                    } 
                } 
            } 
        } 
    }
    And when i tryin' to read it there is "An unhandled exception of type 'System.AccessViolationException' occurred. Attempted to read or write protected memory". Address that im tryin to read is 100% correct (checked it in CE and C++ Trainer).

  3. #3
    RyuHewlett's Avatar
    Join Date
    Jul 2013
    Gender
    male
    Location
    Italy
    Posts
    104
    Reputation
    13
    Thanks
    15
    My Mood
    Twisted
    Quote Originally Posted by Antrix2k View Post
    I've found a tutor. There is a ready two classes:
    CheatEngine.Win32
    CheatEngine.Memory

    Here is the link - matejtomcik . com/Download/?n=CheatEngineCSharpHelpers

    Code:
    namespace Trainer 
    { 
        public partial class Form1 : Form 
        {            
            public Form1() 
            { 
                InitializeComponent();            
            } 
    
            private void Form1_Load(object sender, EventArgs e) 
            { 
    
            } 
    
            private void button1_Click(object sender, EventArgs e) 
            { 
                Process[] processes = Process.GetProcessesByName("GTA5"); 
                if (processes.Length > 0) 
                { 
                    using (Utilities.Memory memory = new Utilities.Memory(processes[0])) 
                    {                    
                        IntPtr address = memory.GetAddress("GTA5.exe+02399160+5d8"); 
                        memory.ReadUInt32(address); 
                        MessageBox.Show(address.ToString()); 
                    } 
                } 
            } 
        } 
    }
    And when i tryin' to read it there is "An unhandled exception of type 'System.AccessViolationException' occurred. Attempted to read or write protected memory". Address that im tryin to read is 100% correct (checked it in CE and C++ Trainer).
    Are you sure GTA-V addresses are not encrypted?

  4. #4
    damiansharma's Avatar
    Join Date
    Jan 2016
    Gender
    male
    Posts
    395
    Reputation
    10
    Thanks
    695
    My Mood
    Drunk
    Quote Originally Posted by Antrix2k View Post
    I've found a tutor. There is a ready two classes:
    CheatEngine.Win32
    CheatEngine.Memory

    Here is the link - matejtomcik . com/Download/?n=CheatEngineCSharpHelpers

    Code:
    namespace Trainer 
    { 
        public partial class Form1 : Form 
        {            
            public Form1() 
            { 
                InitializeComponent();            
            } 
    
            private void Form1_Load(object sender, EventArgs e) 
            { 
    
            } 
    
            private void button1_Click(object sender, EventArgs e) 
            { 
                Process[] processes = Process.GetProcessesByName("GTA5"); 
                if (processes.Length > 0) 
                { 
                    using (Utilities.Memory memory = new Utilities.Memory(processes[0])) 
                    {                    
                        IntPtr address = memory.GetAddress("GTA5.exe+02399160+5d8"); 
                        memory.ReadUInt32(address); 
                        MessageBox.Show(address.ToString()); 
                    } 
                } 
            } 
        } 
    }
    And when i tryin' to read it there is "An unhandled exception of type 'System.AccessViolationException' occurred. Attempted to read or write protected memory". Address that im tryin to read is 100% correct (checked it in CE and C++ Trainer).
    dumbfuck you have C++ and C# fucking MIxed

  5. #5
    Antrix2k's Avatar
    Join Date
    Mar 2013
    Gender
    male
    Posts
    13
    Reputation
    10
    Thanks
    0
    Are you sure GTA-V addresses are not encrypted?
    I've found a problem.. there is an int32 was in procssmemorywrite class. I've changed it to Int64 and it works now perfectly

    dumbfuck you have C++ and C# fucking MIxed
    Do me a favour... gfys. Thank you!

Similar Threads

  1. [Discussion] hacks for money 4 example inst....k 2.0
    By BMW e39 in forum Call of Duty Modern Warfare 3 Discussions
    Replies: 5
    Last Post: 02-22-2012, 04:02 AM
  2. [Release] Save/Load custom hack settings! [Save & Load] Example used: Setspeed
    By john404 in forum Minecraft Tutorials
    Replies: 2
    Last Post: 02-07-2012, 03:52 PM
  3. frostbite hack examples?
    By gruez in forum Battlefield 3 (BF3) Hacks & Cheats
    Replies: 11
    Last Post: 10-31-2011, 08:52 AM
  4. Replies: 23
    Last Post: 12-09-2010, 04:03 PM
  5. Cheat Engine Hacking (Example: Minesweeper)
    By ColdThunder in forum Game Hacking Tutorials
    Replies: 0
    Last Post: 04-24-2007, 07:30 AM