Exemple #1
0
        static void Main(string[] args)
        {
            //IPEndPoint authServer = new IPEndPoint(IPAddress.Parse("37.114.57.220"), 11000);
            //IPEndPoint loginServer = new IPEndPoint(IPAddress.Parse("37.114.57.220"), 13030);

            IPEndPoint authServer  = new IPEndPoint(IPAddress.Parse("149.202.214.144"), 11000);
            IPEndPoint loginServer = new IPEndPoint(IPAddress.Parse("149.202.214.144"), 13010);

            VirtualClient virtualClient = new VirtualClient(authServer, loginServer, Encoding.UTF8.GetBytes("LV,ZEuzy5A_[{LF!"));

            virtualClient.LoginSuccessCallback       += VirtualClient_LoginSuccessCallback;
            virtualClient.LoginFailCallback          += VirtualClient_LoginFailCallback;
            virtualClient.ShopSearchFinishedCallback += VirtualClient_ShopSearchFinishedCallback;
            virtualClient.ItemSlotChangedCallback    += VirtualClient_ItemSlotChangedCallback;
            virtualClient.Logger.LogLevel             = LogLevel.Info;
            virtualClient.Login("testbenutzername", "testpasswort");
            vc             = virtualClient;
            timer.Elapsed += Timer_Elapsed;
            while (true)
            {
                Console.ReadLine();
            }



            //Decrypt output from smartsniff with this code.

            //byte[] defkey = Encoding.UTF8.GetBytes("LV,ZEuzy5A_[{LF!");
            //byte[] enkey = new byte[] { 0xB1, 0x5A, 0xF7, 0x21, 0xE2, 0x2B, 0x63, 0x76, 0x26, 0x3F, 0xD6, 0x68, 0x8F, 0x0D, 0xCC, 0x49 };
            ////byte[] enkey = new byte[] { 0xAA, 0xAA, 0xAA, 0xAA, 0xBB, 0xBB, 0xBB, 0xBB, 0xCC, 0xCC, 0xCC, 0xCC, 0xDD, 0xDD, 0xDD, 0xDD };
            //byte[] chinakey = CryptoUtils.GetKey_20050304Myevan();
            //byte[] dekey = TinyEncryptionAlgorithm.Encrypt(enkey, chinakey);

            //while (true)
            //{
            //    String input;
            //    byte[] bytes = new byte[0];
            //    do
            //    {
            //        input = Console.ReadLine();
            //        if (String.IsNullOrWhiteSpace(input))
            //            break;
            //        String line = input.Substring(10);
            //        int endpos = line.IndexOf("   ");
            //        line = line.Substring(0, endpos);
            //        String hex = line.Replace(" ", "");
            //        byte[] b = Enumerable.Range(0, hex.Length)
            //             .Where(x => x % 2 == 0)
            //             .Select(x => Convert.ToByte(hex.Substring(x, 2), 16))
            //             .ToArray();
            //        bytes = bytes.Concat(b).ToArray();
            //    } while (input.Length > 0);

            //    byte[] dec = TinyEncryptionAlgorithm.Decrypt(bytes, defkey);

            //    Logger l = new Logger();
            //    l.LogInfo("Input: ", dec);
            //    Console.ReadLine();
            //}
        }
Exemple #2
0
        static void Main(string[] args)
        {
            IPEndPoint authServer  = new IPEndPoint(IPAddress.Parse("37.114.57.220"), 11000);
            IPEndPoint loginServer = new IPEndPoint(IPAddress.Parse("37.114.57.220"), 13010);
            //IPEndPoint gameServer = new IPEndPoint(IPAddress.Parse("37.114.57.220"), 13094);
            VirtualClient vc = new VirtualClient(authServer, loginServer, Encoding.UTF8.GetBytes("LV,ZEuzy5A_[{LF!"));

            vc.LoginSuccessCallback += Vc_LoginSuccessCallback;
            vc.LoginFailCallback    += Vc_LoginFailCallback;
            vc.Login("hackxlawl", "asdasdasd");

            byte[] key = Encoding.UTF8.GetBytes("LV,ZEuzy5A_[{LF!");
            //byte[] enckey = new byte[] { 0x7D, 0x6E, 0x78, 0x5F, 0x82, 0x01, 0x9E, 0x5B, 0xCB, 0x2C, 0x75, 0x62, 0xEC, 0xF5, 0xCF, 0x7A };

            //byte[] key = CryptoUtils.GetKey_20050304Myevan();
            //byte[] decryptKey = TinyEncryptionAlgorithm.Encrypt(enckey, key);

            //byte[] data = { 0x95, 0x0C, 0x18, 0x3C, 0xE3, 0x19, 0xD7, 0x01 };


            ////TinyEncryptionAlgorithm tea = new TinyEncryptionAlgorithm();
            //byte[] de = TinyEncryptionAlgorithm.Decrypt(data, decryptKey);

            //Logger l = new Logger();
            //l.Log("hddmod", de);
            //Console.ReadLine();
        }