static void Main(string[] args) { Memory.Mem m = new Memory.Mem(); Console.Title = "t5mHax"; Console.ForegroundColor = ConsoleColor.Red; ascii("t5mHax"); Console.WriteLine("\n\nMessage IcyJake#1200 on Discord for help/questions."); Console.Write("\nPlease enter the amount of money you would like: "); int amountOfMoney = int.Parse(Console.ReadLine()); m.OpenProcess(Process.GetProcessesByName("t5m").FirstOrDefault().Id); if (amountOfMoney > 2147483647) { Console.Write("Please enter a little bit of a smaller number: "); int amountOfMoney2 = int.Parse(Console.ReadLine()); if (amountOfMoney2 > 2147483647) { Console.WriteLine("\nAn error has occurred! Please restart t5mHax."); Console.ReadKey(); } else { m.WriteMemory("t5m.exe+024C4FE0,A0", "int", Convert.ToString(amountOfMoney2)); Console.WriteLine("\nSuccessfully transfered: $" + amountOfMoney2); Console.ReadKey(); } } else { m.WriteMemory("t5m.exe+024C4FE0,A0", "int", Convert.ToString(amountOfMoney)); Console.WriteLine("\nSuccessfully transfered: $" + amountOfMoney); Console.ReadKey(); } }
public void Zoom(bool Enable) { switch (Enable) { case true: UserFov = mem.ReadInt(fovPointer).ToString(); UserHideHand = mem.ReadInt(hidehandPointer).ToString(); UserSensitivity = mem.ReadInt(sensitivityPointer).ToString(); bool isFovChanged = mem.WriteMemory(fovPointer, "int", "1106247680"); // '1106247680' is 30 fov if (Properties.Settings.Default.hide_hand) { bool isHideHandChanged = mem.WriteMemory(hidehandPointer, "int", "1"); } if (Properties.Settings.Default.change_sens) { bool isSensitivityChanged = mem.WriteMemory(sensitivityPointer, "int", "0"); } break; case false: mem.WriteMemory(fovPointer, "int", UserFov); // '1106247680' is 30 fov if (Properties.Settings.Default.hide_hand) { bool isHideHandChanged = mem.WriteMemory(hidehandPointer, "int", UserHideHand); } if (Properties.Settings.Default.change_sens) { bool isSensitivityChanged = mem.WriteMemory(sensitivityPointer, "int", UserSensitivity); } break; } }
private void button1_Click(object sender, EventArgs e) { // Speed: memory.OpenProcess(Process.GetProcessesByName("Among Us").FirstOrDefault().Id); memory.WriteMemory("GameAssembly.dll+014B20F0,5C,14,14", "float", setSpeedTextBox.Text); }
private void timer1_Tick(object sender, EventArgs e) { //move overlay GetWindowRect(handle, out rect); this.Size = new Size(rect.right - rect.left, rect.bottom - rect.top); this.Top = rect.top; this.Left = rect.left; //update HUD coordsLabel.Text = "X: " + Convert.ToString(memory.ReadFloat(Pointers.PlayerX)) + " Y: " + Convert.ToString(memory.ReadFloat(Pointers.PlayerY)); if (SpeedButton.Checked) { speedLabel.Text = "Speed: " + Convert.ToString(memory.ReadFloat(Pointers.PlayerSpeed)); } MeetingBar.Maximum = (int)(memory.Read2Byte(Pointers.EmergencyCD) * 10); if (MeetingCDButton.Checked && memory.ReadFloat(Pointers.EmergencyCDlive) >= 0 && memory.ReadFloat(Pointers.EmergencyCDlive) <= memory.Read2Byte(Pointers.EmergencyCD)) { MeetingBar.Visible = true; MeetingBar.Value = (int)(memory.ReadFloat(Pointers.EmergencyCDlive) * 10); } else { MeetingBar.Visible = false; } //hotkeys //speed if (GetAsyncKeyState(Keys.ShiftKey) < 0 && ShiftSprintButton.Checked) { if (Spressed == false) { Spressed = true; oldS = memory.ReadFloat(Pointers.PlayerSpeed); memory.WriteMemory(Pointers.PlayerSpeed, "float", Convert.ToString(oldS * 2)); } } else { if (Spressed == true) { Spressed = false; memory.WriteMemory(Pointers.PlayerSpeed, "float", Convert.ToString(oldS)); } } //Teleport //Console.WriteLine(Convert.ToString(GetCoords(rect, MousePosition.X, MousePosition.Y))); if (GetAsyncKeyState(Keys.RButton) < 0 && ClickTeleportButton.Checked) { if (Mpressed == false) { Mpressed = true; memory.WriteMemory(Pointers.PlayerX, "float", Convert.ToString(GetCoords(rect, MousePosition.X, MousePosition.Y).Item1)); memory.WriteMemory(Pointers.PlayerY, "float", Convert.ToString(GetCoords(rect, MousePosition.X, MousePosition.Y).Item2)); } } else { Mpressed = false; } //Menu if (GetAsyncKeyState(Keys.ControlKey) < 0) { if (STRGpressed == false) { STRGpressed = true; SetWindowLong(this.Handle, -20, 851976); MenuPanel.Visible = true; } } else { if (STRGpressed == true) { SetWindowLong(this.Handle, -20, 852008); MenuPanel.Visible = false; SetForegroundWindow(AmongUSProcess.MainWindowHandle); } STRGpressed = false; } }