Thread: Aug Class

Results 1 to 9 of 9
  1. #1
    Silent's Avatar
    Join Date
    Jan 2015
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    5,070
    Reputation
    2172
    Thanks
    8,474
    My Mood
    Bitchy

    Aug Class

    Here is my aug class sausage sorce
    The code is messsy(realy realy messy)
    and my addresses are not here soz


    Code:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.Linq;
    using System.Runtime.InteropServices;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    
    namespace mw3_Aug_Class_Hack
    {
        public partial class Form1 : Form
        {
            public Form1()
            {
                InitializeComponent();
            }
    
    
            #region class things
            #region hotkeys class
            [DllImport("user32.dll")]
            public static extern int GetAsyncKeyState(Keys vKeys);
            #endregion
            #region Basic Stuff
            [DllImport("kernel32.dll", SetLastError = true)]
            public static extern bool VirtualProtectEx(IntPtr hProcess, IntPtr lpAddress, UInt32 dwSize, uint flNewProtect, out uint lpflOldProtect);
    
            [DllImport("kernel32.dll")]
            private static extern Int32 ReadProcessMemory(IntPtr hProcess, IntPtr lpBaseAddress, [In, Out] byte[] buffer, UInt32 size, out IntPtr lpNumberOfBytesWritten);
    
            [DllImport("kernel32.dll")]
            private static extern Int32 WriteProcessMemory(IntPtr hProcess, IntPtr lpBaseAddress, [In, Out] byte[] buffer, UInt32 size, out IntPtr lpNumberOfBytesWritten);
            IntPtr pHandel;
            public bool Process_Handle(string ProcessName)
            {
                try
                {
                    Process[] ProcList = Process.GetProcessesByName(ProcessName);
                    if (ProcList.Length == 0)
                        return false;
                    else
                    {
                        pHandel = ProcList[0].Handle;
                        return true;
                    }
                }
                catch (Exception ex)
                { Console.Beep(); Console.WriteLine("Process_Handle - " + ex.Message); return false; }
            }
            private byte[] Read(int Address, int Length)
            {
                byte[] Buffer = new byte[Length];
                IntPtr Zero = IntPtr.Zero;
                ReadProcessMemory(pHandel, (IntPtr)Address, Buffer, (UInt32)Buffer.Length, out Zero);
                return Buffer;
            }
            private void Write(int Address, int Value)
            {
                byte[] Buffer = BitConverter.GetBytes(Value);
                IntPtr Zero = IntPtr.Zero;
                WriteProcessMemory(pHandel, (IntPtr)Address, Buffer, (UInt32)Buffer.Length, out Zero);
            }
            #endregion
            #region Write Functions (Integer & String)
            public void WriteDouble(int address, double value)
            {
                byte[] Buffer = BitConverter.GetBytes(value);
                IntPtr Zero = IntPtr.Zero;
                WriteProcessMemory(pHandel, (IntPtr)address, Buffer, (UInt32)Buffer.Length, out Zero);
            }
            public void WriteInteger(int Address, int Value)
            {
                Write(Address, Value);
            }
            public void WriteString(int Address, string Text)
            {
                byte[] Buffer = new ASCIIEncoding().GetBytes(Text);
                IntPtr Zero = IntPtr.Zero;
                WriteProcessMemory(pHandel, (IntPtr)Address, Buffer, (UInt32)Buffer.Length, out Zero);
            }
            public void WriteBytes(int Address, byte[] Bytes)
            {
                IntPtr Zero = IntPtr.Zero;
                WriteProcessMemory(pHandel, (IntPtr)Address, Bytes, (uint)Bytes.Length, out Zero);
            }
            public void WriteNOP(int Address)
            {
                byte[] Buffer = new byte[] { 0x90, 0x90, 0x90, 0x90, 0x90 };
                IntPtr Zero = IntPtr.Zero;
                WriteProcessMemory(pHandel, (IntPtr)Address, Buffer, (UInt32)Buffer.Length, out Zero);
            }
            private void WriteFloat(int Address, float Value)
            {
                byte[] Buffer = BitConverter.GetBytes(Value);
                IntPtr Zero = IntPtr.Zero;
                WriteProcessMemory(pHandel, (IntPtr)Address, Buffer, (UInt32)Buffer.Length, out Zero);
            }
            public float ReadFloat(int address)
            {
                return BitConverter.ToSingle(ReadBytes(address, 8), 0);
            }
            public void WriteFloat_Protected(int Address, float Value)
            {
                uint OldProtection;
                VirtualProtectEx(pHandel, (IntPtr)Address, (uint)sizeof(float), 0x40, out OldProtection);
                WriteFloat(Address, Value);
                VirtualProtectEx(pHandel, (IntPtr)Address, (uint)sizeof(float), OldProtection, out OldProtection);
            }
    
    
    
            #endregion
            #region Read Functions (Integer & String)
            public int ReadInteger(int Address, int Length = 4)
            {
                return BitConverter.ToInt32(Read(Address, Length), 0);
            }
            public string ReadString(int Address, int Length = 4)
            {
                return new ASCIIEncoding().GetString(Read(Address, Length));
            }
            public byte[] ReadBytes(int Address, int Length)
            {
                return Read(Address, Length);
            }
            public double ReadDouble(int address)
            {
                byte[] buffer = new byte[sizeof(double)];
    
                IntPtr Zero = IntPtr.Zero;
                ReadProcessMemory(pHandel, (IntPtr)address, buffer, (UInt32)buffer.Length, out Zero);
                return BitConverter.ToDouble(buffer, 0);
            }
    
            #endregion
            #region name faker
            class NameFaker
            {
                [DllImport("kernel32.dll")]
                private static extern IntPtr OpenProcess(UInt32 dwDesiredAccess, bool bInheritHandle, int dwProcessId);
                [DllImport("kernel32.dll")]
                private static extern Int32 ReadProcessMemory(IntPtr hProcess, IntPtr lpBaseAddress, [In, Out] byte[] buffer, UInt32 size, out IntPtr lpNumberOfBytesRead);
                [DllImport("kernel32.dll")]
                private static extern Int32 WriteProcessMemory(IntPtr hProcess, IntPtr lpBaseAddress, [In, Out] byte[] buffer, UInt32 size, out IntPtr lpNumberOfBytesWritten);
                public void WriteString(int Address, string Text)
                {
                    byte[] Buffer = new ASCIIEncoding().GetBytes(Text);
                    IntPtr Zero = IntPtr.Zero;
                    Convert.ToByte(10);
                    WriteProcessMemory(Open_Memory(), (IntPtr)Address, Buffer, (UInt32)25, out Zero);
                }
    
                private uint ReadInt(uint Addr)
                {
                    byte[] buffer = new byte[4];
                    IntPtr R;
                    ReadProcessMemory(Open_Memory(), (IntPtr)Addr, buffer, 4, out R);
                    return BitConverter.ToUInt32(buffer, 0);
                }
    
                private IntPtr Open_Memory()
                {
                    if (Process.GetProcessesByName("iw5mp").Length != 0)
                    {
                        return OpenProcess(0x1F0FFF, true, Process.GetProcessesByName("iw5mp")[0].Id);
                    }
                    else return (IntPtr)0x0;
                }
    
                private uint BaseAddress(string Module_Name)
                {
                    if (Process.GetProcessesByName("iw5mp").Length != 0)
                    {
                        foreach (ProcessModule Mod in Process.GetProcessesByName("iw5mp")[0].Modules)
                        {
                            if (Mod.ModuleName == Module_Name)
                                return (uint)Mod.BaseAddress.ToInt32();
                        }
                        return 0;
                    }
                    else return 0;
                }
    
                public NameFaker(string Name)
                {
                    uint Base = BaseAddress("steam_api.dll") + 0x0001824C;
                    uint Runner = ReadInt(Base) + 0x0;
                    Runner = ReadInt(Runner) + 0x4;
                    Runner = ReadInt(Runner) + 0x8;
                    Runner = ReadInt(Runner) + 0x10;
                    Runner = ReadInt(Runner) + 0x7e;
                    WriteString((int)Runner, Name);
                }
            }
            #endregion
            #endregion
    
            protected override void OnFormClosing(FormClosingEventArgs e)
            {
                Application.Exit();
            }
    
            private void Form1_Load(object sender, EventArgs e)
            {
                #region Aug Load Shit
                comboBox_AugClassSelect.Items.Add("Class 1");
                comboBox_AugClassSelect.Items.Add("Class 2");
                comboBox_AugClassSelect.Items.Add("Class 3");
                comboBox_AugClassSelect.Items.Add("Class 4");
                comboBox_AugClassSelect.Items.Add("Class 5");
                comboBox_AugClassSelect.Items.Add("Class 6");
                comboBox_AugClassSelect.Items.Add("Class 7");
                comboBox_AugClassSelect.Items.Add("Class 8");
                comboBox_AugClassSelect.Items.Add("Class 9");
                comboBox_AugClassSelect.Items.Add("Class 10");
                comboBox_AugClassSelect.Items.Add("Class 11");
                comboBox_AugClassSelect.Items.Add("Class 12");
                comboBox_AugClassSelect.Items.Add("Class 13");
                comboBox_AugClassSelect.Items.Add("Class 14");
                comboBox_AugClassSelect.Items.Add("Class 15");
    
                comboBox_AtatchmentSelect.Items.Add("Red Dot");
                comboBox_AtatchmentSelect.Items.Add("Silencer");
                comboBox_AtatchmentSelect.Items.Add("Grip");
                comboBox_AtatchmentSelect.Items.Add("Acog");
                comboBox_AtatchmentSelect.Items.Add("RapidFire");
                comboBox_AtatchmentSelect.Items.Add("ExtendedMags");
                comboBox_AtatchmentSelect.Items.Add("Thermal");
                #endregion
    
                comboBox1.Items.Add("Class One");
                comboBox1.Items.Add("Class Two");
                comboBox1.Items.Add("Class Three");
                comboBox1.Items.Add("Class Four");
                comboBox1.Items.Add("Class Five");
                comboBox1.Items.Add("All");
            }
    
            private void timer1_Tick(object sender, EventArgs e)
            {
                if(Process_Handle(Proc_Name))
                {
                    button41.Enabled = true;
                    button1.Enabled = true;
                    button1.Text = "Set";
                }
                else
                {
                    button41.Enabled = false;
                    button1.Enabled = false;
                    button1.Text = "Waiting for iw5mp";
    
                }
            }
    
            private void button1_Click(object sender, EventArgs e)
            {
                if(comboBox1.Text == "Class One")
                {
                    if (Process_Handle(Proc_Name))
                    {
                        WriteBytes(Class_One, AugClass);
                    }
                }
    
                if (comboBox1.Text == "Class Two")
                {
                    if (Process_Handle(Proc_Name))
                    {
                        WriteBytes(Class_Two, AugClass);
                    }
                }
    
                if (comboBox1.Text == "Class Three")
                {
                    if (Process_Handle(Proc_Name))
                    {
                        WriteBytes(Class_Three, AugClass);
                    }
                }
    
                if (comboBox1.Text == "Class Four")
                {
                    if (Process_Handle(Proc_Name))
                    {
                        WriteBytes(Main_Class + (3 * Class_Size), AugClass);
                    }
                }
    
                if (comboBox1.Text == "Class Five")
                {
                    if (Process_Handle(Proc_Name))
                    {
                        WriteBytes(Main_Class + (4 * Class_Size), AugClass);
                    }
                }
    
                if (comboBox1.Text == "All")
                {
                    if (Process_Handle(Proc_Name))
                    {
                        for (int i = 0; i != 14; i++ )
                            WriteBytes(Main_Class + (i * Class_Size), AugClass);
                    }
                }
    
            }
    
            private void button41_Click(object sender, EventArgs e)
            {
                if (Process_Handle(Proc_Name))
                {
                    #region aug class shit
    
                    if (comboBox_AtatchmentSelect.Text == "Red Dot")
                    {
                        AugClass[2] = 0x1;
                    }
    
                    if (comboBox_AtatchmentSelect.Text == "Silencer")
                    {
                        AugClass[2] = 0x11;
                    }
    
                    if (comboBox_AtatchmentSelect.Text == "Grip")
                    {
                        AugClass[2] = 0x3;
                    }
    
                    if (comboBox_AtatchmentSelect.Text == "Acog")
                    {
                        AugClass[2] = 0x2;
                    }
    
                    if (comboBox_AtatchmentSelect.Text == "RapidFire")
                    {
                        AugClass[2] = 0xA;
                    }
    
                    if (comboBox_AtatchmentSelect.Text == "ExtendedMags")
                    {
                        AugClass[2] = 0x9;
                    }
    
                    if (comboBox_AtatchmentSelect.Text == "Thermal")
                    {
                        AugClass[2] = 0x5;
                    }
    
                    if (comboBox_AugClassSelect.Text == "Class 1")
                    {
                        WriteBytes(Class_One, AugClass);
                    }
    
                    if (comboBox_AugClassSelect.Text == "Class 2")
                    {
                        WriteBytes(Class_One + (1 * Class_Size), AugClass);
                    }
    
                    if (comboBox_AugClassSelect.Text == "Class 3")
                    {
                        WriteBytes(Class_One + (1 * Class_Size), AugClass);
                    }
    
                    if (comboBox_AugClassSelect.Text == "Class 4")
                    {
                        WriteBytes(Class_One + (3 * Class_Size), AugClass);
                    }
    
                    if (comboBox_AugClassSelect.Text == "Class 5")
                    {
                        WriteBytes(Class_One + (4 * Class_Size), AugClass);
                    }
    
                    if (comboBox_AugClassSelect.Text == "Class 6")
                    {
                        WriteBytes(Class_One + (5 * Class_Size), AugClass);
                    }
    
                    if (comboBox_AugClassSelect.Text == "Class 7")
                    {
                        WriteBytes(Class_One + (6 * Class_Size), AugClass);
                    }
    
                    if (comboBox_AugClassSelect.Text == "Class 8")
                    {
                        WriteBytes(Class_One + (7 * Class_Size), AugClass);
                    }
    
                    if (comboBox_AugClassSelect.Text == "Class 9")
                    {
                        WriteBytes(Class_One + (8 * Class_Size), AugClass);
                    }
    
                    if (comboBox_AugClassSelect.Text == "Class 10")
                    {
                        WriteBytes(Class_One + (9 * Class_Size), AugClass);
                    }
    
                    if (comboBox_AugClassSelect.Text == "Class 11")
                    {
                        WriteBytes(Class_One + (10 * Class_Size), AugClass);
                    }
    
                    if (comboBox_AugClassSelect.Text == "Class 12")
                    {
                        WriteBytes(Class_One + (11 * Class_Size), AugClass);
                    }
    
                    if (comboBox_AugClassSelect.Text == "Class 13")
                    {
                        WriteBytes(Class_One + (12 * Class_Size), AugClass);
                    }
    
                    if (comboBox_AugClassSelect.Text == "Class 14")
                    {
                        WriteBytes(Class_One + (13 * Class_Size), AugClass);
                    }
    
                    if (comboBox_AugClassSelect.Text == "Class 15")
                    {
                        WriteBytes(Class_One + (14 * Class_Size), AugClass);
                    }
    
                    #endregion
                }
            }
    
            private void button2_Click(object sender, EventArgs e)
            {
                Application.Exit();
            }
    
            private void button3_Click(object sender, EventArgs e)
            {
                this.WindowState = FormWindowState.Minimized;
            }
        }
    }
    Click Here to visit the official MPGH wiki! Keep up with the latest news and information on games and MPGH! To check out pages dedicated to games, see the links below!











    dd/mm/yyyy
    Member - 31/01/2015
    Premium - 12/09/2016
    Call of Duty minion - 05/11/2016 - 05/11/2019
    BattleOn minion - 28/02/2017 - 05/11/2019
    Battlefield minion - 30/05/2017 - 05/11/2019
    Other Semi-Popular First Person Shooter Hacks minion - 21/09/2017 - 17/09/2019
    Publicist - 07/11/2017 - 02/08/2018
    Cock Sucker - 01/12/2017 - Unknown
    Minion+ - 06/03/2018 - 05/11/2019
    Fortnite minion - 08/05/2018 - 05/11/2019
    Head Publicist - 08/10/2018 - 10/01/2020
    Developer Team - 26/10/2019 - 10/01/2020
    Former Staff - 10/01/2020



  2. The Following User Says Thank You to Silent For This Useful Post:

    type9500 (12-20-2015)

  3. #2
    AuT03x3C's Avatar
    Join Date
    Nov 2014
    Gender
    male
    Location
    kernel32.dll
    Posts
    453
    Reputation
    11
    Thanks
    4,561
    My Mood
    Sleepy

    /2short

  4. The Following User Says Thank You to AuT03x3C For This Useful Post:

    aresdGHERhgerdherhrh (08-15-2015)

  5. #3
    TonyMane()'s Avatar
    Join Date
    Jan 2015
    Gender
    male
    Location
    3ncrypted
    Posts
    258
    Reputation
    168
    Thanks
    4,575
    My Mood
    Amused
    lol .

  6. #4
    81|DrizZle's Avatar
    Join Date
    Dec 2014
    Gender
    male
    Posts
    145
    Reputation
    12
    Thanks
    630
    My Mood
    Aggressive
    I highly suggest you to use Switchcase.
    This code looks like..
    And give everything names. Ugh. Like that you need 2 read the whole code to understand what the button is for.
    Last edited by 81|DrizZle; 08-16-2015 at 06:17 PM.

  7. #5
    Silent's Avatar
    Join Date
    Jan 2015
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    5,070
    Reputation
    2172
    Thanks
    8,474
    My Mood
    Bitchy
    Quote Originally Posted by 81|DrizZle View Post
    I highly suggest you to use Switchcase.
    This code looks like..
    And give everything names. Ugh. Like that you need 2 read the whole code to understand what the button is for.
    I made it like 1 month ago, and i was in a hurry
    Click Here to visit the official MPGH wiki! Keep up with the latest news and information on games and MPGH! To check out pages dedicated to games, see the links below!











    dd/mm/yyyy
    Member - 31/01/2015
    Premium - 12/09/2016
    Call of Duty minion - 05/11/2016 - 05/11/2019
    BattleOn minion - 28/02/2017 - 05/11/2019
    Battlefield minion - 30/05/2017 - 05/11/2019
    Other Semi-Popular First Person Shooter Hacks minion - 21/09/2017 - 17/09/2019
    Publicist - 07/11/2017 - 02/08/2018
    Cock Sucker - 01/12/2017 - Unknown
    Minion+ - 06/03/2018 - 05/11/2019
    Fortnite minion - 08/05/2018 - 05/11/2019
    Head Publicist - 08/10/2018 - 10/01/2020
    Developer Team - 26/10/2019 - 10/01/2020
    Former Staff - 10/01/2020



  8. #6
    81|DrizZle's Avatar
    Join Date
    Dec 2014
    Gender
    male
    Posts
    145
    Reputation
    12
    Thanks
    630
    My Mood
    Aggressive
    Quote Originally Posted by eithan1231 View Post
    I made it like 1 month ago, and i was in a hurry
    Why do you release it then? Take your time.

  9. #7
    Silent's Avatar
    Join Date
    Jan 2015
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    5,070
    Reputation
    2172
    Thanks
    8,474
    My Mood
    Bitchy
    Quote Originally Posted by 81|DrizZle View Post
    Why do you release it then? Take your time.
    because somone wanted it done, so i just rushed it and... it got the job done. kinda
    Click Here to visit the official MPGH wiki! Keep up with the latest news and information on games and MPGH! To check out pages dedicated to games, see the links below!











    dd/mm/yyyy
    Member - 31/01/2015
    Premium - 12/09/2016
    Call of Duty minion - 05/11/2016 - 05/11/2019
    BattleOn minion - 28/02/2017 - 05/11/2019
    Battlefield minion - 30/05/2017 - 05/11/2019
    Other Semi-Popular First Person Shooter Hacks minion - 21/09/2017 - 17/09/2019
    Publicist - 07/11/2017 - 02/08/2018
    Cock Sucker - 01/12/2017 - Unknown
    Minion+ - 06/03/2018 - 05/11/2019
    Fortnite minion - 08/05/2018 - 05/11/2019
    Head Publicist - 08/10/2018 - 10/01/2020
    Developer Team - 26/10/2019 - 10/01/2020
    Former Staff - 10/01/2020



  10. #8
    Bunbunbunz's Avatar
    Join Date
    Apr 2015
    Gender
    male
    Location
    hop hop hop
    Posts
    592
    Reputation
    64
    Thanks
    369
    My Mood
    Blah
    Lol, looks not bad but, add your address please i'ma ddose you bb!

  11. #9
    81|DrizZle's Avatar
    Join Date
    Dec 2014
    Gender
    male
    Posts
    145
    Reputation
    12
    Thanks
    630
    My Mood
    Aggressive
    Quote Originally Posted by Mitch. View Post
    Lol, looks not bad but, add your address please i'ma ddose you bb!
    I should still got the offsets somewhere. Well for TeknoMW3.

Similar Threads

  1. [Release] Mw3 Aug Class Hack (Steam)
    By Silent in forum Call of Duty 8 - Modern Warfare 3 (MW3) Hacks & Cheats
    Replies: 6
    Last Post: 09-07-2015, 08:13 AM
  2. [Release] Aug Class Update
    By Silent in forum Call of Duty 8 - Modern Warfare 3 (MW3) Hacks & Cheats
    Replies: 7
    Last Post: 08-12-2015, 05:24 PM
  3. Guild Wars New Classes
    By Chronologix in forum General Gaming
    Replies: 24
    Last Post: 07-23-2006, 08:46 AM
  4. AUG switch for sniper
    By AdamWest in forum WarRock - International Hacks
    Replies: 9
    Last Post: 02-10-2006, 05:43 AM
  5. [Tutorial]Change class without respawn
    By vir2000 in forum Game Hacking Tutorials
    Replies: 0
    Last Post: 01-04-2006, 01:47 PM