Ejemplo n.º 1
0
        /// <summary>
        /// Main aimbot thread.
        /// </summary>
        public void Run()
        {
            // Run the main routine.
            while (true)
            {
                if (MouseHelper.GetAsyncKeyState(SettingsManager.Widowbot.AimKey) < 0)
                {
                    // Get the screen capture.
                    var screenCapture = ScreenHelper.GetScreenCapture(MyFov.FieldOfView);

                    // Search for a target.
                    var coordinates = SearchHelper.SearchColor(ref screenCapture, SettingsManager.Widowbot.TargetColor, 12);

                    // Only continue if a healthbar was found.
                    if (coordinates.X != 0 || coordinates.Y != 0)
                    {
                        coordinates = ScreenHelper.GetAbsoluteCoordinates(coordinates, MyFov.FieldOfView);

                        MouseHelper.Move(ref MyFov, coordinates, true);
                    }

                    // Destroy the bitmap.
                    screenCapture.Dispose();
                    screenCapture = null;
                }

                Thread.Sleep(1);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Main trigger thread.
        /// </summary>
        public void Run()
        {
            while (true)
            {
                if (SettingsManager.Triggerbot.IsEnabled)
                {
                    if (MouseHelper.GetAsyncKeyState(SettingsManager.Triggerbot.AimKey) < 0)
                    {
                        // Get the screen capture.
                        var screenCapture = ScreenHelper.GetScreenCapture(MyFov.FieldOfView);

                        // Search for a target.
                        var coordinates = SearchHelper.SearchColor(ref screenCapture, SettingsManager.Triggerbot.TargetColor, 100);

                        if (coordinates.X != 0 || coordinates.Y != 0)
                        {
                            MouseHelper.Click();
                        }

                        // Destroy the bitmap.
                        screenCapture.Dispose();
                        screenCapture = null;
                    }
                }

                Thread.Sleep(1);
            }
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Main aimbot thread.
        /// </summary>
        public void Run()
        {
            // Retrieve the Fov.
            var myFov = Fovs.First(x => x.Resolution == new Point(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height));

            // Run the main routine.
            while (true)
            {
                if (MouseHelper.GetAsyncKeyState(Settings.Widowbot.AimKey) < 0)
                {
                    // Get the screen capture.
                    var screenCapture = ScreenHelper.GetScreenCapture(myFov.FieldOfView);

                    // Search for a target.
                    var coordinates = SearchHelper.SearchColor(ref screenCapture, Settings.Widowbot.TargetColor, 12);

                    // Only continue if a healthbar was found.
                    if (coordinates.X != 0 || coordinates.Y != 0)
                    {
                        coordinates = ScreenHelper.GetAbsoluteCoordinates(coordinates, myFov.FieldOfView);

                        MouseHelper.Move(ref myFov, coordinates, true);
                    }

                    // Destroy the bitmap.
                    screenCapture.Dispose();
                    screenCapture = null;
                }

                Thread.Sleep(1);
            }
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Main trigger thread.
        /// </summary>
        public void Run()
        {
            // Retrieve the Fov.
            var myFov = Fovs.First(x => x.Resolution == new Point(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height));

            while (true)
            {
                if (MouseHelper.GetAsyncKeyState(Settings.Triggerbot.AimKey) < 0)
                {
                    // Get the screen capture.
                    var screenCapture = ScreenHelper.GetScreenCapture(myFov.FieldOfView);

                    // Search for a target.
                    var coordinates = SearchHelper.SearchColor(ref screenCapture, Settings.Triggerbot.TargetColor, 100);

                    if (coordinates.X != 0 || coordinates.Y != 0)
                    {
                        MouseHelper.Click();
                    }

                    // Destroy the bitmap.
                    screenCapture.Dispose();
                    screenCapture = null;
                }

                Thread.Sleep(1);
            }
        }
Ejemplo n.º 5
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.");

            var MouseProxy = new MouseProxy();

            MouseHelper.Proxy = MouseProxy;

            // 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 "close":
                        MouseProxy.Close();
                        Process.GetCurrentProcess().Close();
                        break;

                    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(0x71) < 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(0x70) < 0) // Numpad2
                {
                    drawhelper.ToggleFov();
                    // MouseHelper.keybd_event(0x62, 0, 0x2, 0);
                    Thread.Sleep(200);
                }

                Thread.Sleep(1);
            }
        }