private static void Triggerbot() { while (Options.TriggerbotIsEnabled) { if (PinvokeWrapper.GetTheKeyState(KeyCodes.ALT_KEY) == 0) { continue; } //We get the local player var localPlayer = Utils.GetLocalPlayer(); //We get the crosshair ID var crosshairId = PinvokeWrapper.ReadAddInt((IntPtr)localPlayer.BaseAddress + Offsets.m_iCrosshairId, Utils.CsgoHandle); if (crosshairId > 0 && crosshairId <= 64) { //We get the enemy at our crosshair var enemy = new Player(PinvokeWrapper.ReadAddInt(Utils.ClientBaseAddress + Offsets.dwEntityList + ((crosshairId - 1) * 0x10), Utils.CsgoHandle)); //If the enemy is alive and is not one of our teammates if (enemy.GetHealth() > 0 && localPlayer.GetTeam() != enemy.GetTeam()) { //We shoot PinvokeWrapper.DoubleClick(); } } //Sleep for 3 milliseconds Thread.Sleep(3); } }
private static void Aimbot() { while (Options.AimbotIsEnabled) { if (PinvokeWrapper.GetTheKeyState(KeyCodes.ALT_KEY) != 0) { //We get all players var players = Utils.GetPlayers(); //We get the closest player to our crosshair var closestPlayer = GetClosestEnemy(players); //If a player has been found and is not dead if (closestPlayer != null && closestPlayer.GetHealth() > 0) { //We aim at him AimAt((int)closestPlayer.GetBonePos((int)_aimbotBone).X, (int)closestPlayer.GetBonePos((int)_aimbotBone).Y); } } Thread.Sleep(7); } }
public static void Main() { //We get all processes with the name csgo var csgoProcesses = Process.GetProcessesByName("csgo"); //If there is none if (!csgoProcesses.Any()) { //we display that the csgo game is not found Console.WriteLine("CS:GO Not Found!"); //We wait for user's approval Console.ReadKey(); //we terminate the program return; } //We get our csgo handle Utils.CsgoHandle = csgoProcesses[0].Handle; //We loop through all csgo modules foreach (ProcessModule module in csgoProcesses[0].Modules) { //If we find the client_panorama.dll module if (Path.GetFileName(module.FileName) == "client_panorama.dll") { //We save client_panorama.dll base address Utils.ClientBaseAddress = module.BaseAddress; } } //If the client base address is zero, that means that we didn't find it if (Utils.ClientBaseAddress == IntPtr.Zero) { //We display that to the user Console.WriteLine("client_panorama.dll Not Found!"); //We wait for user's approval Console.ReadKey(); //we terminate the program return; } //Get the screen height Utils.ScreenHeight = Convert.ToInt32(SystemParameters.PrimaryScreenHeight); //Get the screen width Utils.ScreenWidth = Convert.ToInt32(SystemParameters.PrimaryScreenWidth); while (true) { if (PinvokeWrapper.GetTheKeyState(KeyCodes.VK_F1) != 0) { if (!Options.EspIsEnabled) { Options.EspIsEnabled = true; } else { Options.EspIsEnabled = false; } Esp(); } else if (PinvokeWrapper.GetTheKeyState(KeyCodes.VK_F2) != 0) { if (!Options.GlowHackIsEnabled) { Options.GlowHackIsEnabled = true; Thread wallHack = new Thread(WallHack); wallHack.Start(); } else { Options.GlowHackIsEnabled = false; } } else if (PinvokeWrapper.GetTheKeyState(KeyCodes.VK_F3) != 0) { if (!Options.AimbotIsEnabled) { Options.AimbotIsEnabled = true; Thread aimbot = new Thread(Aimbot); aimbot.Start(); } else { Options.AimbotIsEnabled = false; } } else if (PinvokeWrapper.GetTheKeyState(KeyCodes.VK_F4) != 0) { if (!Options.TriggerbotIsEnabled) { Options.TriggerbotIsEnabled = true; Thread triggerbot = new Thread(Triggerbot); triggerbot.Start(); } else { Options.TriggerbotIsEnabled = false; } } else if (PinvokeWrapper.GetTheKeyState(KeyCodes.VK_F6) != 0) { if (!Options.NoFlashIsEnabled) { Options.NoFlashIsEnabled = true; Thread noFlash = new Thread(NoFlash); noFlash.Start(); } else { Options.NoFlashIsEnabled = false; } } else if (PinvokeWrapper.GetTheKeyState(KeyCodes.VK_F7) != 0) { switch (_aimbotBone) { case Utils.PlayerBones.Head: _aimbotBone = Utils.PlayerBones.Body; break; case Utils.PlayerBones.Body: _aimbotBone = Utils.PlayerBones.Pelvis; break; case Utils.PlayerBones.Pelvis: _aimbotBone = Utils.PlayerBones.RightFoot; break; case Utils.PlayerBones.RightFoot: _aimbotBone = Utils.PlayerBones.LeftFoot; break; case Utils.PlayerBones.LeftFoot: _aimbotBone = Utils.PlayerBones.Head; break; } } //Clear console Console.Clear(); //Print the selected options Console.WriteLine(String.Concat($"F1 - ESP: \t\t{Options.EspIsEnabled}")); Console.WriteLine(String.Concat($"F2 - Glow Hack: \t{Options.GlowHackIsEnabled}")); Console.WriteLine(String.Concat($"F3 - Aimbot: \t\t{Options.AimbotIsEnabled}")); Console.WriteLine(String.Concat($"F7 - Aimbot Bone: \t{_aimbotBone.ToString()}")); Console.WriteLine(String.Concat($"F4 - Triggerbot: \t{Options.TriggerbotIsEnabled}")); Console.WriteLine(String.Concat($"F6 - No Flash: \t\t{Options.NoFlashIsEnabled}")); //We sleep for 200 milliseconds Thread.Sleep(200); } }