public void TriggerBot() { if (d.eTrigger) { if (GetAsyncKeyState(d.keyTrigger) != 0) { int myTeam = d.myTeam; int playerInCross = vam.ReadInt32((IntPtr)d.aCrossHairID); if (playerInCross > 0 && playerInCross < 65) { int address = bClient + Signatures.dwEntityList + ((playerInCross - 1) * d.oEntityLoopDistance); // look for the player in your crosshair int ptrToEnemy = vam.ReadInt32((IntPtr)address); address = ptrToEnemy + Netvars.m_iHealth; // health of enemy int enemyHealth = vam.ReadInt32((IntPtr)address); address = ptrToEnemy + Netvars.m_iTeamNum; int enemyTeam = vam.ReadInt32((IntPtr)address); if ((enemyTeam != myTeam) && (enemyTeam > 1) && (enemyHealth > 0)) { vam.WriteInt32((IntPtr)d.fAttack1, 1); Thread.Sleep(1); vam.WriteInt32((IntPtr)d.fAttack1, 4); } } } } }
static void Main(string[] args) { VAMemory vam = new VAMemory(process); if (GetModuleAddy()) { int fjump = bClient + aJump; aLocalPlayer = bClient + aLocalPlayer; int LocalPlayer = vam.ReadInt32((IntPtr)aLocalPlayer); int aFlags = LocalPlayer + oFlags; while (true) { while (GetAsyncKeyState(32) > 0) { int Flags = vam.ReadInt32((IntPtr)aFlags); if (Flags == 257) { vam.WriteInt32((IntPtr)fjump, 5); Thread.Sleep(10); vam.WriteInt32((IntPtr)fjump, 4); } } } } }
public static void dwBunnyHop() { int aLocalPlayer = 0xAAFFFC; if (GetModuleAddress()) { int fJump = Client + signatures.dwForceJump; aLocalPlayer = Client + signatures.dwLocalPlayer; int LocalPlayer = vam.ReadInt32((IntPtr)aLocalPlayer); int aFlags = LocalPlayer + netvars.m_fFlags; while (true) { if (HackStats.bunnyhop_use) { int spacekey = GetAsyncKeyState(32); if (spacekey <= -32768) { if (vam.ReadInt32((IntPtr)aFlags) == 257) { vam.WriteInt32((IntPtr)fJump, 5); Thread.Sleep(10); vam.WriteInt32((IntPtr)fJump, 4); } } } Thread.Sleep(1); } } }
private void InjectResolution(int targetWidth, int targetHeight) { Process[] processes = Process.GetProcessesByName("DEEMO -Reborn-"); if (processes.Length > 0) { IntPtr BaseAddress = GetModuleBaseAddress(processes[0], "UnityPlayer.dll"); if (BaseAddress != IntPtr.Zero) { var ResWidthOffsets = new int[] { 0xD8, 0x28, 0x0, 0x194 }; var ResHeightOffsets = new int[] { 0xE0, 0x18, 0x10, 0xC8 }; VAMemory vam = new VAMemory("DEEMO -Reborn-"); var ResolutionWidthBaseAddr = vam.ReadInt64((IntPtr)BaseAddress + 0x01604030); var ResolutionHeightBaseAddr = vam.ReadInt64((IntPtr)BaseAddress + 0x01604030); var widthBuffer = vam.ReadInt64((IntPtr)(ResolutionWidthBaseAddr + ResWidthOffsets[0])); var heightBuffer = vam.ReadInt64((IntPtr)(ResolutionHeightBaseAddr + ResHeightOffsets[0])); for (int offset = 1; offset < ResWidthOffsets.Length - 1; offset++) { widthBuffer = vam.ReadInt64((IntPtr)(widthBuffer + ResWidthOffsets[offset])); heightBuffer = vam.ReadInt64((IntPtr)(heightBuffer + ResHeightOffsets[offset])); } IntPtr ResolutionWidth = (IntPtr)(widthBuffer + ResWidthOffsets[ResWidthOffsets.Length - 1]); IntPtr ResolutionHeight = (IntPtr)(heightBuffer + ResHeightOffsets[ResHeightOffsets.Length - 1]); vam.WriteInt32(ResolutionWidth, targetWidth); vam.WriteInt32(ResolutionHeight, targetHeight); } } }
private static void Bhop() { while (true) { int i = GetAsyncKeyState((int)Keys.Space); if ((memory.ReadInt32((IntPtr)LocalPlayer + Offsets.dwForceJump) == 0) && ((i == 1) || (i == Int16.MinValue))) { memory.WriteInt32((IntPtr)module + Offsets.dwForceJump, 6); } } }
static void Main(string[] args) { VAMemory vam = new VAMemory("ac_client"); Base = vam.ReadInt32((IntPtr)Base); while (true) { int Helfaddress = Base + healf; if (Helfaddress != 1337) { vam.WriteInt32((IntPtr)Helfaddress, 1337); } int PistalAmmoaddress = Base + pistelammo; if (PistalAmmoaddress != 1337) { vam.WriteInt32((IntPtr)PistalAmmoaddress, 1337); } int DPPistelammo = Base + DPpistelammo; if (DPPistelammo != 1337) { vam.WriteInt32((IntPtr)DPPistelammo, 1337); } int lmgammoddress = Base + lmgammo; if (lmgammoddress != 1337) { vam.WriteInt32((IntPtr)lmgammoddress, 1337); } int Pistalreloadaddress = Base + pistelreload; if (Pistalreloadaddress != 88) { vam.WriteInt32((IntPtr)Pistalreloadaddress, 88); } int DPPistelReloadaddres = Base + DPpistelreload; if (Pistalreloadaddress != 88) { vam.WriteInt32((IntPtr)DPPistelReloadaddres, 88); } int lmgreloadddress = Base + lmgreload; if (lmgreloadddress != 88) { vam.WriteInt32((IntPtr)lmgreloadddress, 88); } int neightsammount = Base + neights; if (neightsammount != 1337) { vam.WriteInt32((IntPtr)neightsammount, 1337); } int kevlerammount = Base + kevler; if (kevlerammount != 888) { vam.WriteInt32((IntPtr)kevlerammount, 888); } System.Threading.Thread.Sleep(100); } }
private void DebughudCheckbox_CheckedChanged(object sender, EventArgs e) { VAMemory debughud = new VAMemory(processName); if (DebughudCheckbox.Checked) { debughud.WriteInt32((IntPtr)Offset98 + 0xad0, 1); } else { debughud.WriteInt32((IntPtr)Offset98 + 0xad0, 0); } }
private void RDCCheckbox_CheckedChanged(object sender, EventArgs e) { VAMemory RDC = new VAMemory(processName); if (RDCCheckbox.Checked) { RDC.WriteInt32((IntPtr)Offset98 + 0x12e8, 1); } else { RDC.WriteInt32((IntPtr)Offset98 + 0x12e8, 0); } }
private void GodmodeCheckBox_CheckedChanged(object sender, EventArgs e) { VAMemory god = new VAMemory(processName); if (GodmodeCheckBox.Checked) { god.WriteInt32((IntPtr)Offset98 + 0x5b0, 1); } else { god.WriteInt32((IntPtr)Offset98 + 0x5b0, 0); } }
private void NoclipCheckbox_CheckedChanged(object sender, EventArgs e) { VAMemory noclip = new VAMemory(processName); if (NoclipCheckbox.Checked) { noclip.WriteInt32((IntPtr)Offset98 + 0x5b4, 1); } else { noclip.WriteInt32((IntPtr)Offset98 + 0x5b4, 0); } }
private void InfStamCheckbox_CheckedChanged(object sender, EventArgs e) { VAMemory stamina = new VAMemory(processName); if (InfStamCheckbox.Checked) { stamina.WriteInt32((IntPtr)Offset98 + 0x924, 1); } else { stamina.WriteInt32((IntPtr)Offset98 + 0x924, 0); } }
private void WireframeCheckbox_CheckedChanged(object sender, EventArgs e) { VAMemory wire = new VAMemory(processName); if (WireframeCheckbox.Checked) { wire.WriteInt32((IntPtr)WireframeOffset1 + 0x23f, 1); } else { wire.WriteInt32((IntPtr)WireframeOffset1 + 0x23f, 0); } }
private void checkbox1_CheckedChanged(object sender, EventArgs e) { if (checkbox1.Checked) { int LocalPlayer = vam.ReadInt32((IntPtr)BASE); int hpadress = LocalPlayer + health; vam.WriteInt32((IntPtr)hpadress, 999999); } else if (checkbox1.Checked == false) { int LocalPlayer = vam.ReadInt32((IntPtr)BASE); int hpadress = LocalPlayer + health; vam.WriteInt32((IntPtr)hpadress, 100); } }
private void checkBox4_CheckedChanged(object sender, EventArgs e) { if (checkBox4.Checked) { VAMemory vam = new VAMemory("ac_client"); IntPtr acBase = Process.GetProcessesByName("ac_client").FirstOrDefault().MainModule.BaseAddress + 0x0003D3A4; IntPtr off = IntPtr.Add((IntPtr)vam.ReadInt32(acBase), 0x108); int readEdit = vam.ReadInt32((IntPtr)off); vam.WriteInt32((IntPtr)off, 16777472); //string showEdit = readEdit.ToString(); //MessageBox.Show(showEdit); } else if (checkBox4.Checked == false) { VAMemory vam = new VAMemory("ac_client"); IntPtr acBase = Process.GetProcessesByName("ac_client").FirstOrDefault().MainModule.BaseAddress + 0x0003D3A4; IntPtr off = IntPtr.Add((IntPtr)vam.ReadInt32(acBase), 0x108); int readEdit = vam.ReadInt32((IntPtr)off); vam.WriteInt32((IntPtr)off, 0); //string showEdit = readEdit.ToString(); //MessageBox.Show(showEdit); } }
public static void RMain() { if (bAddress != 0) { VAMemory mem = new VAMemory(MainClass.injProc); int fjump = bAddress + Offsets.J; int ALocalPlayer = bAddress + Offsets.LP; int LocalPlayer = mem.ReadInt32((IntPtr)ALocalPlayer); int AJFlag = LocalPlayer + Offsets.JF; while (true && RabbitStatus) { while (GetAsyncKeyState(32) != 0) { int JStat = mem.ReadInt32((IntPtr)AJFlag); if (JStat == 257) { mem.WriteInt32((IntPtr)fjump, 6); } } } } }
static void Main(string[] args) { VAMemory vam = new VAMemory("ac_client"); Console.Write("Assault Cube Founded !"); int LocalPlayer = vam.ReadInt32((IntPtr)0x00509b74); while (true) { int address = LocalPlayer + Health; vam.WriteInt32((IntPtr)address, 12341); address = LocalPlayer + SniperAmmo; vam.WriteInt32((IntPtr)address, 12341); } }
static void Main(string[] args) { VAMemory vam = new VAMemory(process); if (GetModuleAddy()) { int fAttack = bClient + oAttack; while (true) { Console.Clear(); Console.Write("Not Hitting Target", Console.ForegroundColor = ConsoleColor.Red); int address = bClient + oLocalPlayer; int localplayer = vam.ReadInt32((IntPtr)address); address = localplayer + oTeam; int MyTeam = vam.ReadInt32((IntPtr)address); address = localplayer + oCrossHairID; int PlayerInCross = vam.ReadInt32((IntPtr)address); if (PlayerInCross > 0 && PlayerInCross < 65) { address = bClient + oEntityList + (PlayerInCross - 1) * oEntityLoopDistance; int PtrToPIC = vam.ReadInt32((IntPtr)address); address = PtrToPIC + oHealth; int PICHealth = vam.ReadInt32((IntPtr)address); address = PtrToPIC + oTeam; int PICTeam = vam.ReadInt32((IntPtr)address); if ((PICTeam != MyTeam) && (PICTeam > 1) && (PICHealth > 0)) { Console.Clear(); Console.Write("Hitting Target", Console.ForegroundColor = ConsoleColor.Green); vam.WriteInt32((IntPtr)fAttack, 1); Thread.Sleep(1); vam.WriteInt32((IntPtr)fAttack, 4); } } Thread.Sleep(50); } } }
static void Main(string[] args) { // using VAMemory.dll to read memory from the game VAMemory vam = new VAMemory("ac_client"); // declaring some int to read value of pointer we put before the program int LocalPlayer1 = vam.ReadInt32((IntPtr)Base); // array for the different offset for Ammo var AmmoOffset = new int[] { 0x378, 0x14, 0x0 }; while (true) { // Changing the health of player int HealthAddress = LocalPlayer1 + Health; vam.WriteInt32((IntPtr)HealthAddress, 9999); // changing the armor of player int ArmorAddress = LocalPlayer1 + Armor; vam.WriteInt32((IntPtr)ArmorAddress, 9999); // loop for add offset to the playerbase addres IntPtr pointer = IntPtr.Add((IntPtr)vam.ReadInt32((IntPtr)PlayerBase), AmmoOffset[0]); for (int i = 1; i < AmmoOffset.Length; i++) { pointer = IntPtr.Add((IntPtr)vam.ReadInt32(pointer), AmmoOffset[i]); } vam.WriteInt32((IntPtr)pointer, 9999); Console.WriteLine(" value: " + vam.ReadInt32(pointer)); Thread.Sleep(500); } }
static void Main(string[] args) { VAMemory vam = new VAMemory("hl2"); int serverdllAddress = 0; int pointerHealth = 0x633AFC; int pointerArmor = 0x633AFC; int pointerAUX = 0x633AFC; Process[] p = Process.GetProcessesByName("hl2"); if (p.Length > 0) { foreach (ProcessModule processModule in p[0].Modules) { if (processModule.ModuleName == "server.dll") { serverdllAddress = (int)processModule.BaseAddress; } } } while (true) { IntPtr firstAddressHealth = IntPtr.Add((IntPtr)serverdllAddress, pointerHealth); IntPtr firstAddressHealthValue = (IntPtr)vam.ReadInt32(firstAddressHealth); IntPtr healthAddress = IntPtr.Add(firstAddressHealthValue, HealthOffset); vam.WriteInt32((IntPtr)healthAddress, 1337); IntPtr firstAddressArmor = IntPtr.Add((IntPtr)serverdllAddress, pointerArmor); IntPtr firstAddressArmorValue = (IntPtr)vam.ReadInt32(firstAddressArmor); IntPtr armorAddress = IntPtr.Add(firstAddressArmorValue, ArmorOffset); vam.WriteInt32((IntPtr)armorAddress, 1337); IntPtr firstAddressAux = IntPtr.Add((IntPtr)serverdllAddress, pointerAUX); IntPtr firstAddressAuxValue = (IntPtr)vam.ReadInt32(firstAddressAux); IntPtr auxAddress = IntPtr.Add(firstAddressAuxValue, AUXOffset); vam.WriteInt32((IntPtr)auxAddress, 1120403456); Thread.Sleep(100); } }
private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e) { int forceAttack = client + offsetAttack; int localPlayer = VAM.ReadInt32((IntPtr)(client + offsetLocalPlayer)); int myTeam = VAM.ReadInt32((IntPtr)(localPlayer + offsetTeam)); int PICPointer; int PICHealth; int PICTeam; int playerInCrosshair; while (true && enabled) { playerInCrosshair = VAM.ReadInt32((IntPtr)(localPlayer + offsetCrosshairID)); if (playerInCrosshair > 0 && playerInCrosshair < 65) { PICPointer = VAM.ReadInt32((IntPtr)(client + offsetEntityList + (playerInCrosshair - 1) * offsetEntityLoopDist)); PICHealth = VAM.ReadInt32((IntPtr)(PICPointer + offsetHealth)); PICTeam = VAM.ReadInt32((IntPtr)(PICPointer + offsetTeam)); if ((PICTeam != myTeam) && (PICTeam > 1) && (PICHealth > 0)) { MethodInvoker mi = delegate() { prgFiring.ForeColor = Color.Green; }; this.Invoke(mi); VAM.WriteInt32((IntPtr)forceAttack, 5); Thread.Sleep(1); VAM.WriteInt32((IntPtr)forceAttack, 4); } Thread.Sleep(10); } if (prgFiring.ForeColor != Color.Red) { MethodInvoker mi = delegate() { prgFiring.ForeColor = Color.Red; }; this.Invoke(mi); } } }
static void Main(string[] args) { VAMemory vam = new VAMemory(process); if (getModule()) { int fJump = baseAdress + dwForceJump; dwLocalPlayer = baseAdress + dwLocalPlayer; int localPlayer = vam.ReadInt32((IntPtr)dwLocalPlayer); int a_flags = localPlayer + m_flags; while (true) { while (GetAsyncKeyState(32) > 0) { int flags = vam.ReadInt32((IntPtr)a_flags); if (flags == 257) //stay { vam.WriteInt32((IntPtr)fJump, 5); //jump Thread.Sleep(20); vam.WriteInt32((IntPtr)fJump, 4); //stay Console.Clear(); Console.WriteLine("JUMP", Console.ForegroundColor = ConsoleColor.Green); } } Console.Clear(); Console.WriteLine("STAY", Console.ForegroundColor = ConsoleColor.Green); Thread.Sleep(20); } } }
public static void SetAnvilCost() { int staticPointerOffset = 0x035F9470; int[] offsets = new int[] { 0x70, 0xBC0, 0x38, 0x10, 0x30, 0x50, 0xA8 }; Console.WriteLine("Setting Anvil Cost to 1 for 10 seconds. You may need to click the side of the interface to update the price."); for (int x = 0; x <= 20; x++) { var pointer = FindPointer(baseAddress, staticPointerOffset, offsets); var value = vam.ReadInt32(pointer); vam.WriteInt32(pointer, 1); //while (true) //{ // Console.WriteLine(pointer.AsHex()); // Thread.Sleep(5000); //} Thread.Sleep(500); } }
private void Button1_Click(object sender, EventArgs e) { int LocalPlayer = vam.ReadInt32((IntPtr)Base); test = !test; while (test) { Console.Write("Test"); vam.WriteInt32((IntPtr)0x00DDA268, 1000); System.Threading.Thread.Sleep(100); } }
public void ProcessWriteMemory(string ProcName, IntPtr addr, string value) { VAM = new VAMemory(ProcName); if (VAM.CheckProcess()) { VAM.WriteInt32(addr, Convert.ToInt32(value)); } else { MessageBox.Show("Please Open the Game first !"); } }
public static void SetAnvilCost() { if (AnvilIsOn) { AnvilIsOn = false; return; } int staticPointerOffset = 0x036A0278; int[] offsets = new int[] { 0x0, 0x18, 0x80, 0x5A8, 0x50, 0x20, 0xA8 }; Console.WriteLine("Setting Anvil Cost to 1 for 20 seconds. You may need to click the side of the interface to update the price."); for (int x = 0; x <= 40; x++) { var pointer = FindPointer(baseAddress, staticPointerOffset, offsets); var value = vam.ReadInt32(pointer); vam.WriteInt32(pointer, 1); Thread.Sleep(500); } }
/// <summary>The main entry point for the application.</summary> static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var f = new Form1(); f.Show(); VAMemory vam = new VAMemory("ac_client"); int localplayer = vam.ReadInt32((IntPtr)Pbase); while (f.Visible) //loop while form is not closed { int address = localplayer + fly; float aimlock = vam.ReadFloat((IntPtr)address); vam.WriteFloat((IntPtr)address, -5); address = localplayer + Health; vam.WriteInt32((IntPtr)address, 1337); address = localplayer + mgammo; vam.WriteInt32((IntPtr)address, +1337); Application.DoEvents(); //Yield control to the message loop } }
private void BtnAddMoney_Click(object sender, EventArgs e) { if (gameOn) { vam = new VAMemory(procName); baseAddress = (int)Process.GetProcessesByName(procName)[0].MainModule.BaseAddress; moneyBaseAddress = vam.ReadInt32((IntPtr)baseAddress + moneyAddress); money = moneyBaseAddress + moneyPointer; vam.WriteInt32((IntPtr)money, 900000); // this just overwrites the old value, it does not add up } else { } }
static void Main(string[] args) { Random rnd = new Random(); VAMemory vam = new VAMemory(process); Thread.Sleep(2000); int time = vam.ReadInt32((IntPtr)TmForeverBaseAdress + 0x0096847C); int time1 = vam.ReadInt32((IntPtr)time + 0x100); int time2 = vam.ReadInt32((IntPtr)time1 + 0x5B4); int time3 = vam.ReadInt32((IntPtr)time2 + 0x24); int time4 = vam.ReadInt32((IntPtr)time3 + 0x30C); string driveInstructions; StringBuilder sb = new StringBuilder("", 60); for (int i = 0; i < 60; i++) { sb.Append(rnd.Next(3).ToString()); } driveInstructions = sb.ToString(); //Comment this out : ) driveInstructions = "000020001011022000000000000001110000000000000111"; driveInstructions = "00002000101102200000000001110000000001000111"; Console.WriteLine("Currently using custom string"); // Console.WriteLine("CURRENT INSTRUCTION: " + driveInstructions + "\nRestart the round, then restart it again when timer is past 0.5 (1.0 to be safe)"); while (true) { if (vam.ReadInt32((IntPtr)time4 + 0x4B0) == 0) { while (true) { Thread.Sleep(500); vam.WriteInt32((IntPtr)DINPUT8 + 0x32348, 128); if (vam.ReadInt32((IntPtr)time4 + 0x4B0) == 0) { foreach (char c in driveInstructions) { Console.Write(c); Drive(c, 500); } } } } } }
static void BHop() { VAMemory vam = new VAMemory(process); if (GetModuleAddy()) { int fJump = Client + aJump; aLocalPlayer = Client + aLocalPlayer; int LocalPlayer = vam.ReadInt32((IntPtr)aLocalPlayer); int aFlags = LocalPlayer + oFlags; int i = 0; while (true) { while (GetAsyncKeyState(32) != 0) { int Flags = vam.ReadInt32((IntPtr)aFlags); if (Flags == 257) { vam.WriteInt32((IntPtr)fJump, 5); Thread.Sleep(10); vam.WriteInt32((IntPtr)fJump, 4); Console.Clear(); Console.WriteLine("Jumping", Console.ForegroundColor = ConsoleColor.Green); // TODO: CONSOLE } } Console.Clear(); Console.WriteLine("Standing", Console.ForegroundColor = ConsoleColor.Yellow); Thread.Sleep(10); } } }
private void checkBox6_CheckedChanged(object sender, EventArgs e) { if (checkBox6.Checked) { VAMemory vam = new VAMemory("ac_client"); IntPtr grenadeBase = Process.GetProcessesByName("ac_client").FirstOrDefault().MainModule.BaseAddress + 0x00109B74; IntPtr grenadeOffset = IntPtr.Add((IntPtr)vam.ReadInt32(grenadeBase), grenade); vam.WriteInt32((IntPtr)grenadeOffset, 9999999); } else if (checkBox6.Checked == false) { VAMemory vam = new VAMemory("ac_client"); IntPtr grenadeBase = Process.GetProcessesByName("ac_client").FirstOrDefault().MainModule.BaseAddress + 0x00109B74; IntPtr grenadeOffset = IntPtr.Add((IntPtr)vam.ReadInt32(grenadeBase), grenade); vam.WriteInt32((IntPtr)grenadeOffset, 0); } }