Exemplo n.º 1
0
        /// <summary>
        /// Entry point.
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            // Set the title of the window.
            Console.Title = "Dropbox";

            // Start the aimbot.
            Aimbot _Aimbot = new Aimbot();
            //Triggerbot _Triggerbot = new Triggerbot();
            Widowbot _Widowbot = new Widowbot();
            Anabot   _Anabot   = new Anabot();

            new Thread(delegate()
            {
                while (true)
                {
                    string cmd = Console.ReadLine();

                    if (cmd == "aimbot.antishake")
                    {
                        if (!Settings.Aimbot.AntiShake)
                        {
                            Settings.Aimbot.AntiShake = true;
                        }
                        else
                        {
                            Settings.Aimbot.AntiShake = !Settings.Aimbot.AntiShake;
                        }
                        Console.WriteLine("Anti shake: {0}", Settings.Aimbot.AntiShake);
                    }
                    if (cmd == "anabot.toggle")
                    {
                        if (!Settings.Anabot.IsEnabled)
                        {
                            Settings.Anabot.IsEnabled = true;
                        }
                        else
                        {
                            Settings.Anabot.IsEnabled = !Settings.Anabot.IsEnabled;
                        }
                        Console.WriteLine("Anabot: {0}", Settings.Anabot.IsEnabled);
                    }
                }
            }).Start();

            while (true)
            {
                // Register keypresses here.
                if (MouseHelper.GetAsyncKeyState(0x61) < 0) // Numpad1
                {
                    Settings.Aimbot.ForceHeadshot = !Settings.Aimbot.ForceHeadshot;
                    Console.WriteLine("Force headshot: {0}", Settings.Aimbot.ForceHeadshot);

                    MouseHelper.keybd_event(0x61, 0, 0x2, 0);
                    Thread.Sleep(200);
                }

                Thread.Sleep(1);
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Entry point.
        /// </summary>
        /// <param name="args"></param>
        private static void Main(string[] args)
        {
            // Set the title of the window.
            Console.Title = "Dropbox";

            LogInfo("Initializing settings.");
            var settingsManager = new SettingsManager();

            settingsManager.LoadSettingsFromDefaultPath();
            LogInfo("Settings loaded successfully.");

            // Start the aimbot.
            var aimbot     = new Aimbot();
            var triggerbot = new Triggerbot();
            var widowbot   = new Widowbot();
            var anabot     = new Anabot();
            var drawhelper = new DrawHelper(aimbot); // aimbot default


            LogInfo("Initialization complete. If you're lost, type help in this console.");

            new Thread(delegate()
            {
                while (true)
                {
                    var commandArgs = Console.ReadLine()?.ToLower().Split(' ').ToList();

                    if (commandArgs == null)
                    {
                        continue;
                    }

                    var commandRoot = commandArgs[0];
                    commandArgs.RemoveAt(0);

                    switch (commandRoot)
                    {
                    case "aimbot":
                    case "aim":
                        aimbot.HandleCommand(commandArgs);
                        break;

                    case "anabot":
                    case "ana":
                        anabot.HandleCommand(commandArgs);
                        break;

                    case "widowbot":
                    case "widow":
                        widowbot.HandleCommand(commandArgs);
                        break;

                    case "triggerbot":
                    case "trigger":
                        triggerbot.HandleCommand(commandArgs);
                        break;

                    case "settings":
                        settingsManager.HandleCommand(commandArgs);
                        break;

                    case "help":
                        LogInfo("\nSoftware written by syscall78 and updated by Roast.\nIf you paid money for this, you've been scammed!\n\n" +
                                "Available commands:\n" +
                                "aimbot, aim\t\t- Send commands to aimbot\n" +
                                "anabot, ana\t\t- Send commands to anabot\n" +
                                "widowbot, widow\t\t- Send commands to widowbot\n" +
                                "triggerbot, trigger\t- Send commands to triggerbot\n" +
                                "settings\t\t- Send commands to settings manager\n" +
                                "clear, cls\t\t- Clear the console window\n" +
                                "help\t\t\t- Print this text again.\n");
                        break;

                    case "clear":
                    case "cls":
                        Console.Clear();
                        break;

                    default:
                        LogError($"No command matching '{commandRoot}', please enter a valid command or type 'help'.");
                        break;
                    }
                }
            }).Start();

            while (true)
            {
                // Register keypresses here.
                if (MouseHelper.GetAsyncKeyState(0x61) < 0) // Numpad1
                {
                    SettingsManager.Aimbot.ForceHeadshot = !SettingsManager.Aimbot.ForceHeadshot;
                    LogInfo($"Force headshot: { SettingsManager.Aimbot.ForceHeadshot}");

                    MouseHelper.keybd_event(0x61, 0, 0x2, 0);
                    Thread.Sleep(200);
                }

                // toggle Fov box
                if (MouseHelper.GetAsyncKeyState(0x62) < 0) // Numpad2
                {
                    drawhelper.ToggleFov();
                    MouseHelper.keybd_event(0x62, 0, 0x2, 0);
                    Thread.Sleep(200);
                }

                Thread.Sleep(1);
            }
        }